Practical python causal artificial intelligence coding

Assignment Help Python Programming
Reference no: EM133674525

Programming AI for Business Analytics

Assessment - Skills-Building: Causal AI with Python

Assessment - Practical Python Causal Artificial Intelligence Coding

Your 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.

The Google Colab notebook for this assessment will be provided on the day of the assessment.

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: EM133674525

Questions Cloud

How can the teacher support or guide adolescent students : How can the teacher support or guide adolescent students in restoring hope and concern for the common good within their community?
How can family-friends effect ones mental health postively : How can ones family and friends effect ones mental health postively and negatively?
Provide a report incorporating up to three themes : Provide a report, incorporating up to three themes that are shared in the development of SCRM as a discipline in the years between 2009-2013.
Explain differences in artistic expressions : Explain the emergence of artistic movements that gave rise to the album Distant Relatives. Explain differences in artistic expressions.
Practical python causal artificial intelligence coding : Practical Python Causal Artificial Intelligence Coding Assessment - Perform the necessary steps to transform the dataframe in a format ready for machine learnin
What type of play did you enjoy most as a child : What type of play did you enjoy most as a child? Why do you think you were drawn to that type of play?
Heavily relies on nonlinear optimization : ?The field of finance also heavily relies on nonlinear optimization. Portfolio optimization, option pricing, and risk management are areas
Assuming he makes no additional purchases on this card : Jason has $3,596.25 in credit card debt. assuming he makes no additional purchases on this card? assuming he makes no additional purchases on this card?
Discuss policy analysis process in detail : Discuss policy analysis process in detail and describe its components in your own words. Be specific and include references from our text and content materials.

Reviews

Write a Review

Python Programming Questions & Answers

  Construct a python function which expects one argument

Your task is to construct a Python function called symmetric which expects one argument: a two-dimensional table representing a square matrix.

  Create a given artisan 3D pancake

How many cubic units of batter (to some given degree of accuracy) is required to create a given artisan 3D pancake defined by a given blueprint

  Mathematical equation recognizer in python language

You need to prepare a mathematical equation recognizer in python language. Just need you to clear the errors and make it workable

  Analyze two different rankine power cycles

Create a class for a sprinkler head that includes the k value (i.e., Qsprinkler=k·p1/2) for each sprinkler and find the k values for the sprinklers

  Write a python function which takes as argument python list

Write a Python function, which takes as argument a Python list of characters in upper- and lower-cases, char_list, to determine the frequency of each unique.

  Use a for loop to display each element in a separate line

Use the range function to generate this sequence of integers: 5, 9, 13, 17 and 21. Save the numbers in a list. Display the list.

  Write a python program to add ded at the end of a given word

Write a Python program to add 'ded' at the end of a given word (length should be at least 3). If the given string already end with ‘ded' then add ‘ing' instead.

  Display an appropriate message if the variable owing number

Display an appropriate message if the variable, owing contains a number representing at least 100 dollars owing and a different message if it doesn't.

  Revise function compare_files to accomplish the work describ

Revise function "build_word_index" to accomplish the specified work. Revise function "compare_files" to accomplish the work described in the comments. Test the revised program using the sample documents.

  Results of the golf tournament played at the end of march

Write a program to gather, then display the results of the golf tournament played at the end of March. The Club president Mr. Martin has asked you to write two

  Overall architecture diagram of the external facing system

Design a Service Oriented Architecture-based solution for a given domain. You must show a good understanding of Service Oriented principles. In addition you must show knowledge and understanding of specific SOA techniques, practices and approaches..

  Why is python a great starter language

Why is Python a great starter language? Historically, one of the first programming languages we learn has been some variant of BASIC. This is no longer case.

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