SlideShare une entreprise Scribd logo
1  sur  51
Simple Linear Regression 1. review of least squares procedure 2. inference for least squares lines
Introduction ,[object Object],[object Object],[object Object],[object Object]
The Model House size House Cost Most  lots sell  for $25,000 Building a house costs  about   $75 per square foot.  House cost = 25000 + 75(Size) The model has a deterministic and a probabilistic components
The Model House cost = 25000 + 75(Size) House size House Cost Most lots sell  for $25,000   However, house cost vary even among same size houses! Since cost behave unpredictably,  we add a random component.
The Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],x y  0 Run Rise     = Rise/Run  0  and   1  are unknown population parameters, therefore are estimated  from the data.
Estimating the Coefficients ,[object Object],[object Object],[object Object],[object Object],          Question: What should be  considered a good line? x y
The Least Squares (Regression) Line A good line is one that minimizes  the sum of squared differences between the  points and the line.
The Least Squares (Regression) Line 3 3     4 4 (1,2) 2 2 (2,4) (3,1.5) Sum of squared differences = (2 - 1) 2  + (4 - 2) 2  + (1.5 - 3) 2  + (4,3.2) (3.2 - 4) 2  = 6.89 2.5 Let us compare two lines The second line is horizontal The smaller the sum of  squared differences the better the fit of the  line to the data. 1 1 Sum of squared differences = (2 -2.5) 2  + (4 - 2.5) 2  + (1.5 - 2.5) 2  + (3.2 - 2.5) 2  = 3.99
The Estimated Coefficients To calculate the estimates of the slope and intercept of the least squares line , use the formulas:  The regression equation that estimates the equation of the first order linear model is:  Alternate formula for the slope b 1
[object Object],[object Object],[object Object],[object Object],Independent  variable  x Dependent  variable  y The Simple Linear Regression Line
The Simple Linear Regression Line ,[object Object],[object Object],where  n = 100.
The Simple Linear Regression Line ,[object Object],[object Object],1. Scatterplot 2. Trend function 3. Tools > Data Analysis > Regression
The Simple Linear Regression Line
Interpreting the Linear Regression -Equation This is the slope of the line. For each additional mile on the odometer, the price decreases by an average of $0.0623 The intercept is b 0  = $17067. 0 No data Do not interpret the intercept as the  “ Price of cars that have not been driven” 17067
Error Variable: Required Conditions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Normality of   From the first three assumptions we have: y is normally distributed with mean E(y) =   0  +   1 x, and a constant standard deviation      x 1 x 2 x 3     The standard deviation remains constant, but the mean value changes with x  0  +   1 x 1  0  +   1 x 2  0  +   1 x 3 E(y|x 2 ) E(y|x 3 ) E(y|x 1 )
Assessing the Model ,[object Object],[object Object],[object Object]
[object Object],[object Object],Sum of Squares for Errors ,[object Object]
[object Object],[object Object],[object Object],[object Object],Standard Error of Estimate
[object Object],[object Object],[object Object],Standard Error of Estimate, Example It is hard to assess the model based  on s    even when compared with the  mean value of y.
Testing the slope ,[object Object],  Different inputs (x) yield different outputs (y). No linear relationship. Different inputs (x) yield the same output (y). The slope is not equal to zero The slope is equal to zero Linear relationship. Linear relationship. Linear relationship. Linear relationship.                                                                                                              
[object Object],[object Object],[object Object],[object Object],[object Object],Testing the Slope where The standard error of b 1 .
[object Object],[object Object],Testing the Slope, Example
[object Object],[object Object],[object Object],Testing the Slope, Example
Testing the Slope, Example ,[object Object],There is overwhelming evidence to infer that the odometer reading affects the  auction selling price.
[object Object],Coefficient of determination Note that the coefficient of determination is r 2
Coefficient of determination ,[object Object],Overall variability in y The regression model The error Remains, in part, unexplained Explained in part by
Coefficient of determination x 1 x 2 y 1 y 2 Two data points (x 1 ,y 1 ) and (x 2 ,y 2 )  of a certain sample are shown. Total variation in y = Variation explained by the  regression line + Unexplained variation (error) Variation in y = SSR + SSE y
Coefficient of determination ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],Coefficient of determination, Example
Coefficient of determination ,[object Object],65% of the variation in the auction selling price is explained by the  variation in odometer reading.  The rest (35%) remains unexplained by this model.
Using the Regression Equation ,[object Object],[object Object],[object Object],[object Object],[object Object]
Point Prediction ,[object Object],[object Object],[object Object],[object Object],A point prediction
Interval Estimates ,[object Object],[object Object],[object Object],[object Object],[object Object]
Interval Estimates, Example ,[object Object],[object Object],[object Object],[object Object],[object Object]
Interval Estimates, Example ,[object Object],[object Object],t .025,98 Approximately
[object Object],[object Object],[object Object],Interval Estimates, Example
[object Object],The effect of the given x g  on the length of the interval
[object Object],The effect of the given x g  on the length of the interval
[object Object],The effect of the given x g  on the length of the interval
Regression Diagnostics - I ,[object Object],[object Object],[object Object],[object Object],[object Object]
Residual Analysis ,[object Object],[object Object],[object Object],[object Object],[object Object]
For each residual we calculate  the standard deviation as follows: A Partial list of Standard residuals  Residual Analysis Standardized residual ‘i’ = Residual ‘i’  Standard deviation
It seems the residual are normally distributed with mean zero Residual Analysis
Heteroscedasticity ,[object Object],[object Object],+ + + + + + + + + + + + + + + + + + + + + + + + y ^ Residual The spread increases with y ^ ^ y + + + + + + + + + + + + + + + + + + + + + + +
Homoscedasticity ,[object Object],[object Object]
Non Independence of Error Variables ,[object Object],[object Object],[object Object],[object Object]
Patterns in the appearance of the residuals over time indicates that autocorrelation exists. + + + + + + + + + + + + + + + + + + + + + + + + + Time Residual Residual Time + + + Note the runs of positive residuals, replaced by runs of negative residuals Note the oscillating behavior of the  residuals around zero.  0 0 Non Independence of Error Variables
Outliers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
+ + + + + + + + + + + + + + + + The outlier causes a shift in the regression line …  but, some outliers  may be very influential An outlier An influential observation + + + + + + + + + + +
Procedure for Regression Diagnostics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Contenu connexe

Tendances

Tendances (20)

Ols
OlsOls
Ols
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Maximum Likelihood Estimation
Maximum Likelihood EstimationMaximum Likelihood Estimation
Maximum Likelihood Estimation
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Non Linear Equation
Non Linear EquationNon Linear Equation
Non Linear Equation
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Chapter 6 simple regression and correlation
Chapter 6 simple regression and correlationChapter 6 simple regression and correlation
Chapter 6 simple regression and correlation
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Point Estimation
Point Estimation Point Estimation
Point Estimation
 
Ml3 logistic regression-and_classification_error_metrics
Ml3 logistic regression-and_classification_error_metricsMl3 logistic regression-and_classification_error_metrics
Ml3 logistic regression-and_classification_error_metrics
 
Basics of Regression analysis
 Basics of Regression analysis Basics of Regression analysis
Basics of Regression analysis
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
regression assumption by Ammara Aftab
regression assumption by Ammara Aftabregression assumption by Ammara Aftab
regression assumption by Ammara Aftab
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regression
 
Ols by hiron
Ols by hironOls by hiron
Ols by hiron
 

En vedette

Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)Harsh Upadhyay
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regressionMaria Theresa
 
Simple Linear Regression (simplified)
Simple Linear Regression (simplified)Simple Linear Regression (simplified)
Simple Linear Regression (simplified)Haoran Zhang
 
Linear regression
Linear regressionLinear regression
Linear regressionTech_MX
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionSumit Prajapati
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis pptElkana Rorio
 
Optimization: A Framework for Predictive Analytics
Optimization: A Framework for Predictive AnalyticsOptimization: A Framework for Predictive Analytics
Optimization: A Framework for Predictive AnalyticsNYC Predictive Analytics
 
Lesson07_new
Lesson07_newLesson07_new
Lesson07_newshengvn
 
NIPS2010: optimization algorithms in machine learning
NIPS2010: optimization algorithms in machine learningNIPS2010: optimization algorithms in machine learning
NIPS2010: optimization algorithms in machine learningzukun
 
Regression: A skin-deep dive
Regression: A skin-deep diveRegression: A skin-deep dive
Regression: A skin-deep diveabulyomon
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlationShakeel Nouman
 
Simple linear regression analysis
Simple linear  regression analysisSimple linear  regression analysis
Simple linear regression analysisNorma Mingo
 

En vedette (20)

Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Simple Linear Regression (simplified)
Simple Linear Regression (simplified)Simple Linear Regression (simplified)
Simple Linear Regression (simplified)
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Chapter13
Chapter13Chapter13
Chapter13
 
C2.1 intro
C2.1 introC2.1 intro
C2.1 intro
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And Regression
 
An Overview of Simple Linear Regression
An Overview of Simple Linear RegressionAn Overview of Simple Linear Regression
An Overview of Simple Linear Regression
 
Correlation and Simple Regression
Correlation  and Simple RegressionCorrelation  and Simple Regression
Correlation and Simple Regression
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Optimization: A Framework for Predictive Analytics
Optimization: A Framework for Predictive AnalyticsOptimization: A Framework for Predictive Analytics
Optimization: A Framework for Predictive Analytics
 
Lesson07_new
Lesson07_newLesson07_new
Lesson07_new
 
NIPS2010: optimization algorithms in machine learning
NIPS2010: optimization algorithms in machine learningNIPS2010: optimization algorithms in machine learning
NIPS2010: optimization algorithms in machine learning
 
Es272 ch5a
Es272 ch5aEs272 ch5a
Es272 ch5a
 
Regression: A skin-deep dive
Regression: A skin-deep diveRegression: A skin-deep dive
Regression: A skin-deep dive
 
Ch14
Ch14Ch14
Ch14
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlation
 
Chapter13
Chapter13Chapter13
Chapter13
 
Simple linear regression analysis
Simple linear  regression analysisSimple linear  regression analysis
Simple linear regression analysis
 

Similaire à Simple lin regress_inference

Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)Abhimanyu Dwivedi
 
regression-linearandlogisitics-220524024037-4221a176 (1).pdf
regression-linearandlogisitics-220524024037-4221a176 (1).pdfregression-linearandlogisitics-220524024037-4221a176 (1).pdf
regression-linearandlogisitics-220524024037-4221a176 (1).pdflisow86669
 
Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptxShivankAggatwal
 
Unit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxUnit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxAnusuya123
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationBrian Erandio
 
Statr session 23 and 24
Statr session 23 and 24Statr session 23 and 24
Statr session 23 and 24Ruru Chowdhury
 
Gradient Decent in Linear Regression.pptx
Gradient Decent in Linear Regression.pptxGradient Decent in Linear Regression.pptx
Gradient Decent in Linear Regression.pptxalphaomega55
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).pptMuhammadAftab89
 
Cr-and-Regress.ppt
Cr-and-Regress.pptCr-and-Regress.ppt
Cr-and-Regress.pptRidaIrfan10
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.pptkrunal soni
 

Similaire à Simple lin regress_inference (20)

Chapter05
Chapter05Chapter05
Chapter05
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
 
Regression
Regression  Regression
Regression
 
Regression
RegressionRegression
Regression
 
regression-linearandlogisitics-220524024037-4221a176 (1).pdf
regression-linearandlogisitics-220524024037-4221a176 (1).pdfregression-linearandlogisitics-220524024037-4221a176 (1).pdf
regression-linearandlogisitics-220524024037-4221a176 (1).pdf
 
Linear and Logistics Regression
Linear and Logistics RegressionLinear and Logistics Regression
Linear and Logistics Regression
 
Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptx
 
Regression
RegressionRegression
Regression
 
Unit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxUnit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptx
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
 
Statr session 23 and 24
Statr session 23 and 24Statr session 23 and 24
Statr session 23 and 24
 
Linear Regression
Linear RegressionLinear Regression
Linear Regression
 
Correlation
CorrelationCorrelation
Correlation
 
Gradient Decent in Linear Regression.pptx
Gradient Decent in Linear Regression.pptxGradient Decent in Linear Regression.pptx
Gradient Decent in Linear Regression.pptx
 
Corr And Regress
Corr And RegressCorr And Regress
Corr And Regress
 
LINEAR REGRESSION.pptx
LINEAR REGRESSION.pptxLINEAR REGRESSION.pptx
LINEAR REGRESSION.pptx
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Cr-and-Regress.ppt
Cr-and-Regress.pptCr-and-Regress.ppt
Cr-and-Regress.ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 

Dernier

Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessSeta Wicaksana
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Americas Got Grants
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationAnamaria Contreras
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyotictsugar
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxmbikashkanyari
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Peter Ward
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdfKhaled Al Awadi
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCRashishs7044
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfShashank Mehta
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCRashishs7044
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environmentelijahj01012
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
Appkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxAppkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxappkodes
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...ssuserf63bd7
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfrichard876048
 
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxFinancial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxsaniyaimamuddin
 

Dernier (20)

Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful Business
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement Presentation
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyot
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdf
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environment
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
Appkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxAppkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptx
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdf
 
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxFinancial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
 

Simple lin regress_inference

  • 1. Simple Linear Regression 1. review of least squares procedure 2. inference for least squares lines
  • 2.
  • 3. The Model House size House Cost Most lots sell for $25,000 Building a house costs about $75 per square foot. House cost = 25000 + 75(Size) The model has a deterministic and a probabilistic components
  • 4. The Model House cost = 25000 + 75(Size) House size House Cost Most lots sell for $25,000   However, house cost vary even among same size houses! Since cost behave unpredictably, we add a random component.
  • 5.
  • 6.
  • 7. The Least Squares (Regression) Line A good line is one that minimizes the sum of squared differences between the points and the line.
  • 8. The Least Squares (Regression) Line 3 3     4 4 (1,2) 2 2 (2,4) (3,1.5) Sum of squared differences = (2 - 1) 2 + (4 - 2) 2 + (1.5 - 3) 2 + (4,3.2) (3.2 - 4) 2 = 6.89 2.5 Let us compare two lines The second line is horizontal The smaller the sum of squared differences the better the fit of the line to the data. 1 1 Sum of squared differences = (2 -2.5) 2 + (4 - 2.5) 2 + (1.5 - 2.5) 2 + (3.2 - 2.5) 2 = 3.99
  • 9. The Estimated Coefficients To calculate the estimates of the slope and intercept of the least squares line , use the formulas: The regression equation that estimates the equation of the first order linear model is: Alternate formula for the slope b 1
  • 10.
  • 11.
  • 12.
  • 13. The Simple Linear Regression Line
  • 14. Interpreting the Linear Regression -Equation This is the slope of the line. For each additional mile on the odometer, the price decreases by an average of $0.0623 The intercept is b 0 = $17067. 0 No data Do not interpret the intercept as the “ Price of cars that have not been driven” 17067
  • 15.
  • 16. The Normality of  From the first three assumptions we have: y is normally distributed with mean E(y) =  0 +  1 x, and a constant standard deviation     x 1 x 2 x 3     The standard deviation remains constant, but the mean value changes with x  0 +  1 x 1  0 +  1 x 2  0 +  1 x 3 E(y|x 2 ) E(y|x 3 ) E(y|x 1 )
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28. Coefficient of determination x 1 x 2 y 1 y 2 Two data points (x 1 ,y 1 ) and (x 2 ,y 2 ) of a certain sample are shown. Total variation in y = Variation explained by the regression line + Unexplained variation (error) Variation in y = SSR + SSE y
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43. For each residual we calculate the standard deviation as follows: A Partial list of Standard residuals Residual Analysis Standardized residual ‘i’ = Residual ‘i’ Standard deviation
  • 44. It seems the residual are normally distributed with mean zero Residual Analysis
  • 45.
  • 46.
  • 47.
  • 48. Patterns in the appearance of the residuals over time indicates that autocorrelation exists. + + + + + + + + + + + + + + + + + + + + + + + + + Time Residual Residual Time + + + Note the runs of positive residuals, replaced by runs of negative residuals Note the oscillating behavior of the residuals around zero. 0 0 Non Independence of Error Variables
  • 49.
  • 50. + + + + + + + + + + + + + + + + The outlier causes a shift in the regression line … but, some outliers may be very influential An outlier An influential observation + + + + + + + + + + +
  • 51.