
Explore regression concepts and machine learning models using a Big Mac Index case study. Master least-squares regression, hypothesis testing, and Python-based forecasting for decision making.
Install Google Colab and connect it to your Google Drive, then mount the drive and authenticate with your Google account to organize notebooks in data science or time series folders.
Explore linear regression through a Big Mac index case study, using worldwide Big Mac prices and wages to illustrate cost-of-living comparisons and exchange-rate indicators.
Derive the least square regression line that links Big Mac price to hourly wages, compute the slope and intercept, and minimize the sum of squared errors to predict wages.
Load the Big Mac data in Google Colab and create a scatter plot of price vs wages in USD to reveal a linear relationship.
Learn to fit an ordinary least squares regression in Python using statsmodels, specifying a formula with a dependent variable wages and independent variable Big Mac, and interpret the model summary.
Explain a linear regression of wages on Big Mac price with 27 observations, show model df = 1, residual df = 25, and present y = -4.5397 + 4.7432 x.
Derive the fitted values from the linear regression model using the intercept and Big Mac coefficient to predict net hourly wages, and show the scatterplot with a red regression line.
Apply anova to partition total variance into between and within components, compute the f statistic and p value, and test null versus alternate hypotheses.
Compute f statistics from analysis of variance by using the regression sum of squares and its degrees of freedom to assess the model significance, illustrated with net hourly wages data.
learn how to compute r-squared by applying one minus a ratio, and verify a calculated value of 0.6616, as the lecturer confirms results manually.
Reveal a strong, significant relationship between Big Mac price and net hourly wages worldwide, with a correlation of 0.813 and an R-squared of 0.6616.
Welcome to the course "Statistical Decision Making in Data Science with a Case Study in Python"
This course is an introduction course where you will learn about the importance of Statistics and Machine Learning in Decision Making. I explained this course with a case study. We start with a problem statement and data then we build the machine learning model. Building a machine learning model is really not enough but getting a decision out of machine learning is the primary goal in Data Science. For that, we will use statistics.
What you will Learn?
Understand the Problem statement (Case Study on Big Mac Index with used in Forex Industry for Predicting Dollar value)
Asking Statistical Question.
Linear Regression (Least Square Regression)
Develop Least Square Regression in Python.
Understand the Outputs
MSE
Degree of Freedom
Hypothesis testing
t-test for coefficient significance
F-test for model significance
ANOVA
Correlation
R-Square
You will learn the approaches towards regression with case study. First we start with understanding linear equation and the optimization function value sum of squared errors. With that we find the values of the coefficient and makes least square regression. Then we starts building our linear regression in python.
For the model we build we necessary test like hypothesis testing.
t-test for coefficient significance
ANOVA and F-test for model significance.
And finally, we answer the question statically. Hope we are seeing you inside the course !!!