Download presentation
Presentation is loading. Please wait.
Published byEdgar Hoover Modified over 9 years ago
1
STAT E100 Section Week 3 - Regression
2
Review Descriptive Statistics versus Hypothesis Testing Outliers Sample vs. Population Residual Plots
3
Key Equations and Graphs: Residual = observed value (y) - predicted value (ŷ)
4
Key Concepts: Correlation ≠ Causation R 2 is the coefficient of determination that tells the proportion of variability in y that can be explained by x. Leverage refers to data points whose x-values stand away from the mean of x. These points are said to exert leverage on a linear model. High-leverage points pull the line close to them, and so they can have a large effect on the line.
5
Homework Tips: from http://stattrek.com/statistics/charts/boxplot.aspx
6
SAMPLE QUESTION #1 1) Data comes from: http://www.cbssports.com/mlb/salaries/teams. Data was collected on the opening day payroll (in millions of $) and the number of wins that year for the 30 major league baseball (MLB) teams in 2010. Below are the histograms of the 2 variables: a) Based on these histograms, describe the distribution of each of these variables. The scatterplot of y = wins vs. x = payroll is on the next slide.
7
SAMPLE QUESTION #1
8
1) Data comes from: http://www.cbssports.com/mlb/salaries/teams. Data was collected on the opening day payroll (in millions of $) and the number of wins that year for the 30 major league baseball (MLB) teams in 2010. Below are the histograms of the 2 variables: a)Based on these histograms, describe the distribution of each of these variables. The scatterplot of y = wins vs. x = payroll is on the next slide. It seems that the distributions are more or less symmetrical (although there is a slight skewness in the variable wins). Also, note the isolated point on the payroll histogram.
9
SAMPLE QUESTION #1 1) Data comes from: http://www.cbssports.com/mlb/salaries/teams.http://www.cbssports.com/mlb/salaries/teams b) What do you think the correlation coefficient is between these 2 variables? Here is some more SPSS output:
10
SAMPLE QUESTION #1 1) Data comes from: http://www.cbssports.com/mlb/salaries/teams.http://www.cbssports.com/mlb/salaries/teams b) What do you think the correlation coefficient is between these 2 variables? Here is some more SPSS output: Correlation coefficient = 0.536
11
SAMPLE QUESTION #1 1) Data comes from: http://www.cbssports.com/mlb/salaries/teams.http://www.cbssports.com/mlb/salaries/teams c) What is the equation for the best fit line for this data? For your reference (probably should show how to run the regression and correlation in SPSS): d) What is the estimated number of wins for a team with a payroll of $120.1 million (the Red Sox)? How would this be predicted to change if it increased by $10 million?
12
SAMPLE QUESTION #1 1) Data comes from: http://www.cbssports.com/mlb/salaries/teams.http://www.cbssports.com/mlb/salaries/teams c) What is the equation for the best fit line for this data? For your reference (probably should show how to run the regression and correlation in SPSS): d) What is the estimated number of wins for a team with a payroll of $120.1 million (the Red Sox)? How would this be predicted to change if it increased by $10 million?
13
SAMPLE QUESTION #1 1) Data comes from: http://www.cbssports.com/mlb/salaries/teams.http://www.cbssports.com/mlb/salaries/teams c) What is the equation for the best fit line for this data? y wins = 0.167 x payroll + 67.982 For your reference (probably should show how to run the regression and correlation in SPSS): d) What is the estimated number of wins for a team with a payroll of $120.1 million (the Red Sox)? How would this be predicted to change if it increased by $10 million?
14
SAMPLE QUESTION #1
15
1) Data comes from: http://www.cbssports.com/mlb/salaries/teams.http://www.cbssports.com/mlb/salaries/teams e) The Red Sox actually won 86 games in 2010. Calculate their residual. f) What is R2 for this model? What is its interpretation? g) Based on the scatterplot, do you have any concerns for the using this regression model? h) How the regression line change if the Yankees were removed (payroll = $194.66 million, wins = 97)?
16
SAMPLE QUESTION #1
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.