Write python code that will display a chart of the average

Assignment Help Other Subject
Reference no: EM133676190

Programming AI for Business Analytics

Assessment - Skills-Building: Causal AI with Python

Assessment - Practical Python Causal Artificial Intelligence Coding

Task

In class, Follow the steps within the Google Colab notebook to complete a Python code.

Background
Imagine that you are a Business Analyst in a top consulting firm and that you have been tasked with the identification of factors that cause Australian macroeconomic changes.

This skills-building exercise is a workflow that has been designed to simulate this use case and consolidate your practical knowledge of Python, Google Colab, and machine-learning approaches for causal inference.

Assessment Instructions

Section #1: Machine Learning
1A: Installation & Module Imports

Step 1: Install Python libraries and import Python modules.
Run all the codes that will install and import the necessary Python libraries and models.

Step 2: Load and import macroeconomic data as a dataframe.
Load data: read csv file containing macroeconomic data. Create a suitable variable name for the dataframe.
Write the Python code that displays information about the dataframe.

1B: Ordinary Least Squares

Step 1: Basic Dataframe Operations
Perform the necessary steps to transform the dataframe in a format ready for machine learning.

Step 2: Perform Ordinary Least Squares
Perform Ordinary Least Squares (OLS) and answer the following question: what proportion of the outcome variable could be explained by the predictor, or feature, variables?

1C: Gradient Boosting Method

Step 1: XGBoost Machine Learning Algorithm
Create an XGBoost ML model in Python. Create a suitable variable name for the model.

Section #2: Explainable Machine Learning

2A: SHAP

Step 1: Create a SHAP Waterfall Plot of XGBoost ML
What are the Top 5 features that are correlated with the outcome variable?

Step 2: Create a SHAP Force Plot of XGBoost ML
Write no more than one paragraph summary of the insights shown by the SHAP force plot.

2B: Partial Dependence Plots (PDPs)

Step 1: Create a PDP of one feature against the outcome variable
Select one data feature and create a Python code that will display the PDP chart showing effects of this feature on the outcome.

Step 2: Select a second data feature and create a PDP against the outcome variable Select another, different, data feature and create a Python code that will display the PDP chart showing effects of this feature on the outcome.

Section #3: Predict Causal Factors

Step 1: Use EconML AI Causal Learner
Create a suitable variable name for the causal machine learner.
Complete the Python code to create an EconML causal learner.

Step 2: ATE Chart - Visualisation of Causal Factors
Write Python code that will display a chart of the Average Treatment Effect (ATE) magnitudes, or values, for all the data features.
Which of the data features are macroeconomic causal factors?
Given the macroeconomic causal factors, what recommendations would you make to the Australian government?

Important:

Complete the notebook within the allocated time of 3 hours during workshop.
Create a new "text/markdown" cell in Google Colab to record your answers. There's no need to create a separate report.
Email your version of the Google Colab Python notebook as a sharable link. Note: ensure that you create the correct "share" settings.

Reference no: EM133676190

Questions Cloud

Governed by regulated health professions act : If a healthcare professional is governed by the Regulated Health Professions Act, it signifies that they are mandated by law to meet specific training criteri
How to build and foster them with children : Understand and analyse the importance of relationships and how to build and foster them with children, families, staff and the community respecting
To what degree should family members or legal guardians have : To what degree should family members or legal guardians have full capacity to make decisions or give consent on behalf of those under their care?
Describe hypertension using language and terminology : Describe hypertension using language and terminology that Josephine can understand. Josephine asks what caused her increased blood pressure.
Write python code that will display a chart of the average : Create a PDP of one feature against the outcome variable - create a Python code that will display the PDP chart showing effects of this feature on the outcome
Client requested complimentary alternative medicine : Which resources would you recommend if the client requested complimentary alternative medicine (CAM) as part of her treatment strategy?
Why social determinants of health are in globalization : Define and describe why social determinants of health are important in globalization research.
Basic principles of the food standards code : What are three basic principles of the Food Standards Code - Your answer must include Three (3) principles outlined in the Food Standards Code
Different professional practice models in nursing : Compare two different professional practice models in nursing. Share which PPM attracts you more than others and why.

Reviews

Write a Review

Other Subject Questions & Answers

  Discuss opportunities that exist within egyptian healthcare

Compare and contrast opportunities that exist within the Egyptian healthcare system that have the potential to improve healthcare access.

  Hawaiian bobtail squid-virus reassortment and endophytes

Bonnie Bassler explains the relationship between the Hawaiian Bobtail squid and it's endosymbiont, the bacterium Vibrio fisheri.

  Report on a new method of presenting oral presentations

Pecha Kucha essay. The purpose of the essay is to write a report on a new method of presenting oral presentations "Pecha Kucha".

  What would not be considered curtilage

Define curtilage and give an example of area that would and what would not be considered curtilage.

  An engine system consist of three main components

An engine system consist of three main components in a series, all having the same reliablity. Determine the level of reliablity required for each of the components if the engine is to have the reliablity of 0.998

  Review of hr managers on the role of internal communication

critical review of a journal article - The views of Spanish HR managers on the role of internal communication in translating HR strategies into HRM systems

  Given the way in which many forces have affected drug

Given the way in which many forces have affected drug use in the past, develop your own projection into the future - to the year 2025 - of the nature of our society's drug use problems, based on some of the social, political, economic, law enforce..

  Importance of conducting a workflow analysis

Discuss the purpose and importance of conducting a workflow analysis prior to the implementation of a patient portal.

  Which case management services

The text describes four methods by which case management services are delivered. How are these methods of case management different?

  Identify as being most affected by assessment finding

The nurse provides care for a client who has a body mass index of 16.2. Which health problem will nurse identify as being most affected by assessment finding?

  Examine unintended consequences of the war on drugs

For this Discussion, you examine unintended consequences of the War on Drugs and whether or not society has benefited from this war.

  What were the penalties and what remediation efforts

What were the penalties and what remediation efforts were required to be put in place to ensure that the breach would not occur again

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd