Day 7 Linear Regression.

Slides:



Advertisements
Similar presentations
Heteroskedasticity Hill et al Chapter 11. Predicting food expenditure Are we likely to be better at predicting food expenditure at: –low incomes; –high.
Advertisements

Apr-15H.S.1 Stata: Linear Regression Stata 3, linear regression Hein Stigum Presentation, data and programs at: courses.
Kin 304 Regression Linear Regression Least Sum of Squares
1 1 Chapter 5: Multiple Regression 5.1 Fitting a Multiple Regression Model 5.2 Fitting a Multiple Regression Model with Interactions 5.3 Generating and.
Forecasting Using the Simple Linear Regression Model and Correlation
BA 275 Quantitative Business Methods
Graphs in HLM. Model setup, Run the analysis before graphing Sector = 0 public school Sector = 1 private school.
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
LINEAR REGRESSION: Evaluating Regression Models Overview Assumptions for Linear Regression Evaluating a Regression Model.
LINEAR REGRESSION: Evaluating Regression Models. Overview Assumptions for Linear Regression Evaluating a Regression Model.
STAT 104 Section 6 Daniel Moon. Agenda Review Midterm 1 Practice Problems.
Regression Diagnostics Checking Assumptions and Data.
Ch. 14: The Multiple Regression Model building
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
Statistics 350 Lecture 17. Today Last Day: Introduction to Multiple Linear Regression Model Today: More Chapter 6.
Simple Linear Regression Analysis
9 - 1 Intrinsically Linear Regression Chapter Introduction In Chapter 7 we discussed some deviations from the assumptions of the regression model.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
Applied Quantitative Analysis and Practices LECTURE#23 By Dr. Osman Sadiq Paracha.
Multiple Regression and Model Building Chapter 15 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Regression Analysis Week 8 DIAGNOSTIC AND REMEDIAL MEASURES Residuals The main purpose examining residuals Diagnostic for Residuals Test involving residuals.
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 12 Multiple Linear Regression and Certain Nonlinear Regression Models.
Univariate Linear Regression Problem Model: Y=  0 +  1 X+  Test: H 0 : β 1 =0. Alternative: H 1 : β 1 >0. The distribution of Y is normal under both.
Maths Study Centre CB Open 11am – 5pm Semester Weekdays
© Buddy Freeman, Independence of error assumption. In many business applications using regression, the independent variable is TIME. When the data.
“Numbers are like people… torture them long enough and they’ll tell you anything...” Linear transformation.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 13-1 Introduction to Regression Analysis Regression analysis is used.
REGRESSION DIAGNOSTICS Fall 2013 Dec 12/13. WHY REGRESSION DIAGNOSTICS? The validity of a regression model is based on a set of assumptions. Violation.
1 Preparation for Final Exam How to answer question related to computer output?
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Simple Linear Regression Analysis Chapter 13.
Stat 112 Notes 14 Assessing the assumptions of the multiple regression model and remedies when assumptions are not met (Chapter 6).
Multiple Regression Analysis Regression analysis with two or more independent variables. Leads to an improvement.
Variance Stabilizing Transformations. Variance is Related to Mean Usual Assumption in ANOVA and Regression is that the variance of each observation is.
Occasionally, we are able to see clear violations of the constant variance assumption by looking at a residual plot - characteristic “funnel” shape… often.
Maths Study Centre CB Open 11am – 5pm Semester Weekdays
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Multiple Regression Chapter 14.
Lecturer: Ing. Martina Hanová, PhD.. Regression analysis Regression analysis is a tool for analyzing relationships between financial variables:  Identify.
Scatter Plots & Lines of Best Fit To graph and interpret pts on a scatter plot To draw & write equations of best fit lines.
Statistics 350 Review. Today Today: Review Simple Linear Regression Simple linear regression model: Y i =  for i=1,2,…,n Distribution of errors.
Introductory Statistics. Inference for Bivariate Data Intro to Inference in Regression Requirements for Linear Regression Linear Relationship Constant.
Chapter 20 Linear and Multiple Regression
Chapter 12 Multiple Linear Regression and Certain Nonlinear Regression Models.
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
What is normal anyway?! Disclaimer: I am not an expert!
Multiple Linear Regression
Kin 304 Regression Linear Regression Least Sum of Squares
Multiple Regression and Model Building
Chapter 12: Regression Diagnostics
BPK 304W Regression Linear Regression Least Sum of Squares
(Residuals and
BIVARIATE REGRESSION AND CORRELATION
بحث في التحليل الاحصائي SPSS بعنوان :
Model diagnostics Tim Paine, modified from Zarah Pattison’s slides
Diagnostics and Transformation for SLR
1. An example for using graphics
BA 275 Quantitative Business Methods
Multiple Regression A curvilinear relationship between one variable and the values of two or more other independent variables. Y = intercept + (slope1.
Linear Regression.
Linear Regression.
Residuals The residuals are estimate of the error
Tutorial 8 Table 3.10 on Page 76 shows the scores in the final examination F and the scores in two preliminary examinations P1 and P2 for 22 students in.
Regression diagnostics
Chapter 10 Re-expression Day 1.
Ch11 Curve Fitting II.
Checking the data and assumptions before the final analysis.
Day 68 Agenda: 30 minute workday on Hypothesis Test --- you have 9 worksheets to use as practice Begin Ch 15 (last topic)
Adequacy of Linear Regression Models
Diagnostics and Transformation for SLR
2k Factorial Design k=2 Ex:.
Presentation transcript:

Day 7 Linear Regression

Linear Regression Can we predict total charges from length of stay? regress totchg los regress rtotchg loglos Which model? Assumption: Residuals are normally distributed with constant variance

Saving Residuals and Fitted Values Plotting fitted line predict fity graph fity rtotchg loglos, s(io) c(l.) ylab xlab Making a residual plot predict resid, res graph resid loglos, xlab ylab yline(0)

Multiple Linear Regression Should we adjust for age? complications? mortality? gender? regress rtotchg loglos age mortality sept reint R-squared

Pros and Cons of Transform Violation of linearity assumption versus Ease of interpretation