Topic 2: An Example. Leaning Tower of Pisa Construction began in 1173 and by 1178 (2 nd floor), it began to sink Construction resumed in 1272. To compensate.

Slides:



Advertisements
Similar presentations
Topic 9: Remedies.
Advertisements

The %LRpowerCorr10 SAS Macro Power Estimation for Logistic Regression Models with Several Predictors of Interest in the Presence of Covariates D. Keith.
Chapter 12 Simple Linear Regression
Experimental design and analyses of experimental data Lesson 2 Fitting a model to data and estimating its parameters.
EPI 809/Spring Probability Distribution of Random Error.
Objectives (BPS chapter 24)
Chapter 12 Simple Linear Regression
Topic 3: Simple Linear Regression. Outline Simple linear regression model –Model parameters –Distribution of error terms Estimation of regression parameters.
Partial Regression Plots. Life Insurance Example: (nknw364.sas) Y = the amount of life insurance for the 18 managers (in $1000) X 1 = average annual income.
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.
Multiple regression analysis
Chapter 11: Inferential methods in Regression and Correlation
Matrix A matrix is a rectangular array of elements arranged in rows and columns Dimension of a matrix is r x c  r = c  square matrix  r = 1  (row)
Regression Diagnostics Using Residual Plots in SAS to Determine the Appropriateness of the Model.
More Linear Regression Outliers, Influential Points, and Confidence Interval Construction.
Example: Price Analysis for Diamond Rings in Singapore Variables Response Variable: Price in Singapore dollars (Y) Explanatory Variable: Weight of diamond.
This Week Continue with linear regression Begin multiple regression –Le 8.2 –C & S 9:A-E Handout: Class examples and assignment 3.
Statistics 350 Lecture 17. Today Last Day: Introduction to Multiple Linear Regression Model Today: More Chapter 6.
1 1 Slide Simple Linear Regression Chapter 14 BA 303 – Spring 2011.
SAS Lecture 5 – Some regression procedures Aidan McDermott, April 25, 2005.
Topic 18: Model Selection and Diagnostics
Topic 16: Multicollinearity and Polynomial Regression.
Topic 28: Unequal Replication in Two-Way ANOVA. Outline Two-way ANOVA with unequal numbers of observations in the cells –Data and model –Regression approach.
© 2002 Prentice-Hall, Inc.Chap 14-1 Introduction to Multiple Regression Model.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation.
Topic 7: Analysis of Variance. Outline Partitioning sums of squares Breakdown degrees of freedom Expected mean squares (EMS) F test ANOVA table General.
Lecture 4 SIMPLE LINEAR REGRESSION.
Topic 14: Inference in Multiple Regression. Outline Review multiple linear regression Inference of regression coefficients –Application to book example.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation Note: Homework Due Thursday.
6-3 Multiple Regression Estimation of Parameters in Multiple Regression.
+ Chapter 12: Inference for Regression Inference for Linear Regression.
Regression For the purposes of this class: –Does Y depend on X? –Does a change in X cause a change in Y? –Can Y be predicted from X? Y= mX + b Predicted.
Copyright © Cengage Learning. All rights reserved. 12 Simple Linear Regression and Correlation
Topic 17: Interaction Models. Interaction Models With several explanatory variables, we need to consider the possibility that the effect of one variable.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
Inference for Regression Chapter 14. Linear Regression We can use least squares regression to estimate the linear relationship between two quantitative.
6-1 Introduction To Empirical Models Based on the scatter diagram, it is probably reasonable to assume that the mean of the random variable Y is.
Lesson Multiple Regression Models. Objectives Obtain the correlation matrix Use technology to find a multiple regression equation Interpret the.
1 Multiple Regression A single numerical response variable, Y. Multiple numerical explanatory variables, X 1, X 2,…, X k.
1 Fourier Series (Spectral) Analysis. 2 Fourier Series Analysis Suitable for modelling seasonality and/or cyclicalness Identifying peaks and troughs.
Topic 6: Estimation and Prediction of Y h. Outline Estimation and inference of E(Y h ) Prediction of a new observation Construction of a confidence band.
6-3 Multiple Regression Estimation of Parameters in Multiple Regression.
Topic 13: Multiple Linear Regression Example. Outline Description of example Descriptive summaries Investigation of various models Conclusions.
Topic 23: Diagnostics and Remedies. Outline Diagnostics –residual checks ANOVA remedial measures.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 13-1 Introduction to Regression Analysis Regression analysis is used.
Topic 30: Random Effects. Outline One-way random effects model –Data –Model –Inference.
Topic 25: Inference for Two-Way ANOVA. Outline Two-way ANOVA –Data, models, parameter estimates ANOVA table, EMS Analytical strategies Regression approach.
Topic 4: Statistical Inference. Outline Statistical inference –confidence intervals –significance tests Statistical inference for β 1 Statistical inference.
ANOVA: Graphical. Cereal Example: nknw677.sas Y = number of cases of cereal sold (CASES) X = design of the cereal package (PKGDES) r = 4 (there were 4.
Simple Linear Regression. Data available : (X,Y) Goal : To predict the response Y. (i.e. to obtain the fitted response function f(X)) Least Squares Fitting.
1 Experimental Statistics - week 12 Chapter 12: Multiple Regression Chapter 13: Variable Selection Model Checking.
Topic 20: Single Factor Analysis of Variance. Outline Analysis of Variance –One set of treatments (i.e., single factor) Cell means model Factor effects.
Regression. Height Weight How much would an adult female weigh if she were 5 feet tall? She could weigh varying amounts – in other words, there is a distribution.
1 Statistics 262: Intermediate Biostatistics Regression Models for longitudinal data: Mixed Models.
Chapter 12 Simple Linear Regression n Simple Linear Regression Model n Least Squares Method n Coefficient of Determination n Model Assumptions n Testing.
Experimental Statistics - week 9
Chapter 8: Using Basic Statistical Procedures “33⅓% of the mice used in the experiment were cured by the test drug; 33⅓% of the test population were unaffected.
1 Experimental Statistics - week 12 Chapter 11: Linear Regression and Correlation Chapter 12: Multiple Regression.
Chapter 26: Inference for Slope. Height Weight How much would an adult female weigh if she were 5 feet tall? She could weigh varying amounts – in other.
1 Experimental Statistics - week 11 Chapter 11: Linear Regression and Correlation.
1 Linear Regression Model. 2 Types of Regression Models.
Lecture 11: Simple Linear Regression
Inference for Regression (Chapter 14) A.P. Stats Review Topic #3
CHAPTER 12 More About Regression
6-1 Introduction To Empirical Models
Chapter 14 Inference for Regression
CHAPTER 12 More About Regression
CHAPTER 12 More About Regression
Presentation transcript:

Topic 2: An Example

Leaning Tower of Pisa Construction began in 1173 and by 1178 (2 nd floor), it began to sink Construction resumed in To compensate for tilt, engineers built upper levels with one side taller Seventh floor completed in 1319 with bell tower added in 1372 Tilt continued to grow over time and was monitored. Closed in Stabilization completed in 2008 by removing ground from taller side

Leaning Tower of Pisa Response variable the lean (Y) –Lean in tenths of mm past 2.9 meters Explanatory variable year (X) Construct scatterplot –Can we use a line to describe relationship? Want to predict the future lean

SAS Data Step data a1; input year lean cards; ; data a1p; set a1; if lean ne.; run;

SAS Output Settings Version 9.3: all output is by default in HTML May prefer output in RTF or listing format to cut and paste in editor (e.g., Microsoft Word) ods html close; ods rtf file="H:\pisa.rtf"; ….SAS commands…. ods rtf close;

Proc Print proc print data=a1; run; Specify the data set to use Will print all variables if none are specified using var statement

Obsyearlean The data set arranged in columns. First row provides names for variables

Proc Gplot symbol1 v=circle i=sm70; proc gplot data=a1p; plot lean*year; run; symbol1 v=circle i=rl; proc gplot data=a1p; plot lean*year; run; Requests a smoothed curve be added to the plot Requests the least- squares regression line be added to the plot

Smoothed curve

Regression line

Proc Reg proc reg data=a1; model lean=year / clb p r; output out=a2 p=pred r=resid; id year; run;

Parameter Estimates VariableDF Parameter Estimate Standard Errort ValuePr > |t| 95% Confidence Limits Intercept year < Root MSE R-Square Dependent Mean Adj R-Sq Coeff Var

Output Statistics Obsyear Dependent Variable Predicted Value Std Error Mean PredictResidual Std Error Residual Student Residual Cook's D | |** | | *| | | | | | | | | *| | | |* | | |* | | **| | | | | | **| | | ***| | | | | | |**** |

Background Reading Appendix A. –A.3 : random variables –A.4 : probability distributions Chapter 1 –1.3 : simple linear regression –1.6 : estimation of regression function –1.7 : estimation of error variance –1.8 : normal error regression model