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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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