Lab 11: Simple Linear Regression
|
|
- Jewel Dickerson
- 7 years ago
- Views:
Transcription
1 Lab 11: Simple Linear Regression Objective: In this lab, you will examine relationships between two quantitative variables using a graphical tool called a scatterplot. You will interpret scatterplots in terms of form, direction, and strength of the relationship, and use it to assess the appropriateness of using a simple linear regression model to describe the relationship between the two variables. If appropriate, you can then perform a simple linear regression analysis to produce an estimated model that can be used to predict the value of the response y for a given value of the predictor x. You will learn how to perform hypothesis tests and compute confidence intervals in regression; including learning how to check the assumptions needed for these inference procedures to be valid Application: Pam believes that the number of Facebook friends a person has could interfere with the number of hours they spends socializing offline. She wants to be able to predict the number of hours a person spends socializing offline for a given number of Facebook friends. She will collect data from her friends and examine the relationship between these two variables. Pam will be able to fit a simple linear regression model if the relationship between these variables is linear. Overview: A regression model describes how the mean of one variable is thought to depend on the value of one or more other variables. If we think the number of Facebook friends may explain changes in the amount of time spent socializing online, we call the number of Facebook friends an explanatory variable (or predictor variable or independent variable) and the amount of time spent socializing offline is called the response variable (or dependent variable). To start, we use a scatterplot to display the relationship between two quantitative variables, plotting the number of Facebook friends on the x- axis and the amount of time spend socializing offline on the y- axis. In examining the relationship, Pam looks at the overall pattern showing the form, which appears to be linear. She notes that the direction of the form is negative and strength of the relationship is moderate. She notes that there are no apparent outliers. One of the many misconceptions about regression arises from the concept of association. Scatterplots can show the association between variables, but Pam should remember that correlation does not imply causation. For example: weekly flu medication sales and weekly sweater sales for an area with extreme seasons would exhibit a positive association because both tend to go up in winter and down in summer. However, neither causes the other. The observed association between two variables is sometimes due to other factors, such as confounding variables. This correlation value, r, explains the strength of the linear relationship between x and y. The correlation can take on values between - 1 and 1. The sign of the correlation also describes the direction of the linear relationship. The correlation between number of Facebook friends and time spent socializing offline is reported to be , which confirms what Pam observed in her scatterplot. The square of this correlation is known as the coefficient of determination and also has an important
2 interpretation. Pam calculates this coefficient to be and she can interpret this value by stating that 34.8% of the variation in the amount of time spent socializing online can be explained by the linear relationship between number of Facebook friends and time spent socializing online. Since Pam s scatterplot suggested that the dependence of amount of time spent socializing online on the number of Facebook friends can be summarized by a straight line, the least squares regression line can be calculated. The least squares regression line is the line that minimizes the sum of the squared vertical distances of the data points to the line hence the name least squares. This fitted line can be used to describe the linear relationship between the amount of time spent socializing offline and the number of Facebook friends and to predict the amount of time spent socializing online for a given number of Facebook friends. The distances from the observed amount of time spend socializing offline to the predicted amount of time spent socializing offline are known as the residuals. These residuals are estimates of the true error terms associated with Pam s model. Pam has fit a simple linear regression model, which is what will also be fit during the lab. Pam s regression is based on a linear model relating the number of Facebook friends to the mean amount of time spend socializing offline as follows: E(time spent socializing offline) = β 0 + β 1 (number of Facebook friends). Here β 0 and β 1 are parameters fixed but unknown constants. Specifically, β 0 is the population y- intercept (the amount of time spent socializing offline when the number of Facebook friends is zero) and β 1 is the population slope (the change in the mean time spent socializing offline for every additional Facebook friend). These two values are unknown, but can be estimated using the least squares criterion. The resulting estimated regression line is generally written as: y ˆ = b0 + b1( x). The estimates, b 0 and b 1 are referred to as the least squares estimates of β 0 and β 1. There are also several assumptions that Pam must check in order for inferences to be valid. First, the time spent socializing offline must have a normal distribution with a mean that varies linearly with the number of Facebook friends and a standard deviation that does not depend on the number of Facebook friends. To check her assumption Pam would create a residual plot: a plot with residuals on the y axis and the number of Facebook friends on the x axis. For this assumption to hold, the residuals be randomly scattered. Pam must also assume that the error terms are normally distributed and are identically distributed. To check this assumption about the normal distribution she will create a QQ plot of the residuals. To check if the errors are identically distributed, she will create a time plot of the residuals and look for stability.
3 Formula Card: Warm- Up: Check Your Understanding For which scatterplot(s) does a linear regression analysis seem appropriate? Plot 1 Plot 2 Plot 3
4 ILP: Using a Scatterplot to Display the Relationship Background: The local library is interested in determining if the time spent watching TV is taking over a young person s reading time. They are interested in predicting the number of books read the past year from the number of minutes spent watching TV on a typical week night. The library took a sample of young patrons and recorded this information. The data set TVandBooks.sav contains the number of books a patron has read yearly (Books) as well as the number of minutes the patron spends watching television on a weekly basis (TV). Task: Is there a relationship between the amount of time spent watching television and the number of books a person has read? Produce a scatterplot to help examine the plausibility of a linear relationship between minutes spent watching television and number of books read. Note: You are interested in predicting the number of books read from the number of minutes spent watching TV. Procedure: We have two variables being measured the number of books read (which is quantitative and playing the role of the response) and the number of minutes spent watching TV (which is also quantitative and plays the role of the explanatory variable). The goal is to assess the relationship between these two quantitative variables. The appropriate inference procedure for this scenario is simple linear regression. 1. Open the data set and produce a scatterplot: Graphs> Legacy Dialogs> Scatter/Dot. Note that your explanatory variable should be on the x- axis (independent), and your response variable should be on the y- axis (dependent). Sketch the general pattern of the plot below. Make sure to label your axes. 2. Based on the scatterplot, does there appear to be a linear relationship between minutes of television watched and the number of books read? Explain. From the scatterplot, we see that the overall pattern is approximately linear with a negative association. A straight line seems like it could approximate the data fairly well. 3. Are there any unusual observations or outliers present? There do not appear to be any unusual observations or outliers present, as almost all of the data points seem to be close to another point and follow a similar pattern. 4. Based on the scatterplot, which direction is the association between these two variables? The association is negative between amount of TV watched and number of books read. 5. Does there appear to be a strong relationship between the minutes of television watched and the number of books read? The scatterplot shows the points clustered around a negative, linear form. Because the points are relatively close to a linear form but still show some variability, the relationship between TV watched and books read appears to be fairly strong.
5 ILP: Describing a Linear Relationship with a Regression Line If we are satisfied that a linear model seems to describe the relationship between the minutes of television watched and the number of books read, we are ready to estimate that model and use it to predict Books on the basis of TV. Task: Fit a linear model to the data. If you have questions about the regression output after the activity, refer to Supplement 8 in this workbook for more details. 1. Obtain the linear regression output using Analyze> Regression> Linear. Make sure to enter the appropriate dependent and independent variables. Report the estimated regression line (predicting equation): _Predicted Books Read Last Year = *(Week Night TV Time (min)) 2. Interpret the estimated slope b 1 in terms of change in number of books read. The estimated slope of 0.15 means that we expect the number of books read last year to decrease by 0.15 books for each unit (1 min) increase in time spent watching TV on a week night, on average. 4. Report the coefficient of correlation, r, between Books and TV: r = _ Report the coefficient of determination, r 2, and interpret it: r 2 = Interpretation: The squared correlation, r 2, is 0.599, which means that 59.9% of the variation in the number of books read last year by a young patron of a library can be accounted for by the linear relationship between number of books read and the time spent watching TV on a weeknight. 6. Use the regression line to predict the yearly number of books read for a person who watches 100 minutes of television weekly. How does it compare to the observed yearly number of books read for the patron who has watched 100 minutes of television weekly? Predicted Number Books = *(TV time) = *(100) = 6.58 books The predicted number of books, 6.58, is fairly close to the actual number of books read by the patron who watches 100 minutes of television weekly, 6 books. However, the predicted and observed values are not the same.
6 ILP: Is There a Significant (Non- Zero) Linear Relationship Between TV Time and Books Read? Is the explanatory variable, time spent watching TV, a useful linear predictor for the number of books read? Is there a significant, non- zero linear relationship between time spent watching television (TV) and number of books read (Books)? Remember that another way to make inferences about the significance of the linear relationship is through a confidence interval for the population slope. Further, recall the basic form of a confidence interval: point estimate ± (a few) standard errors. Most standard computer regression output provides the slope estimate and its standard error, and the few will correspond to a t* value for the corresponding confidence level with degrees of freedom for regression of n 2. Since a confidence interval provides a range of reasonable values for the parameter, it can be used to perform two- sided hypothesis tests by seeing whether the hypothesized value falls in the interval or not. Task: Assess if the explanatory variable TV is significant in the linear model. Hypothesis Test: 1. State the Hypotheses: H 0 :!! = 0 and H a :!! 0, where!! represents: the population slope in the true regression equation for books read from TV time Determine Alpha: We were told to use a significance level of 5%. Remember: Your hypotheses and parameter definition should always be a statement about the population(s) under study. 2. Checking the Assumptions Assumptions: Covered in the next activity. 3. Compute the Test- Statistic and calculate the p- value: Test- Statistic a. Using the computer output, which two test statistics could you use to test these hypotheses? Give the value for each test statistic. t = b 1 /[s.e.(b 1 )] = 6.925; F = MSRegression / MSError = b. Which would not be appropriate for conducting a one- sided version of the alternative hypothesis? The F test statistic Calculate the p- Value: c. What is the reported p- value (for both test statistics)? 0.001
7 4. Evaluate the p- value and Conclusion Evaluate the p- value: What is your decision at a 5% significance level? Reject H 0 Fail to Reject H 0 Remember: Reject H 0 Results statistically significant Fail to Reject H 0 Results not statistically significant Conclusion: What is your conclusion in the context of the problem? We have sufficient evidence that week night TV time is a significant linear predictor of number of books read, i.e. that!! 0. Note: Conclusions should always include a reference to the population parameter(s) of interest. They should not be too strong; you can say that you have sufficient evidence, but do NOT say that we have proven anything true or false. 5. Confidence Intervals (CI): a. Generate the confidence interval for estimating the population slope using Analyze> Regression> Linear. Under Statistics, choose the Confidence intervals, which has a default level of 95%. Give the 95% confidence interval for the population slope. ( , ) b. Provide an interpretation of the resulting interval in context. This interval provides a range of reasonable values for the population slope. We are 95% confident that the population slope value for predicting number of books read using minutes of TV watched lies in the interval ( , ). c. Based on the confidence interval, would you reject the null hypothesis at a 5% significance level? Circle one: Yes No Explain. The 95% confidence interval for!! does not include 0. Did your conclusion here match the one you made in part 4? Yes ILP: Is the Linear Model Appropriate? Are the Assumptions Met for Inference? You will produce and examine the residuals from the regression line as well as create some plots to assess the fit of the linear model. This will also serve to evaluate the validity of the testing and confidence intervals performed in the earlier activities. Regression assumptions may be stated in terms of the response variable or in terms of the error terms. The statistical model for simple linear regression assumes that for each value of x, the observed values of the response are normally distributed with some mean (that may depend on x in a linear way) and a standard deviation σ that does not depend on x. For each x, Y is N(E(Y), σ), where E(Y) = β 0 + β 1 x. Thinking about the error terms, we can say the true error terms (those that we do not observe) are the difference of the response and the true mean (for a given x). These errors are to have a normal distribution with a mean of 0 and a standard deviation of σ (that does not depend on x).
8 Task: Obtain the residuals for the regression of Books on TV, and generate the appropriate plots to check the assumptions of the linear model. 1. Obtain the residuals in SPSS using Analyze> Regression> Linear, but instead of running it right away, click on the Save button. In the box that will open, select Unstandardized under the Residuals heading, and click Continue. This saves the residuals as a new variable. Now, construct a scatterplot of the residuals against the explanatory variable, TV. Sketch the general pattern of the plot. What assumption of the error terms does this plot help assess? The scatterplot of the residuals against the explanatory variable (or residual plot) is useful for checking if the standard deviation does not change with the explanatory variable. We would expect that the residuals scatter around the horizontal line around 0 with no apparent pattern. What conclusion can you draw from this plot? From this plot, we can see that there might be a decrease of standard deviation with larger TV times, but we cannot be certain about this with the small number of observations that we have. There do not appear to be any serious problems, so we can cautiously make this assumption. 2. Construct a Q- Q plot of the residuals. Sketch the general pattern of the plot. What assumption of the error terms does this plot help assess? With the Q- Q plot of the residuals, we are checking the normally distributed errors assumption of the linear model. Based on the plot what is your conclusion about this assumption? From this Q- Q plot, we can say that the normal model seems to be appropriate for the distribution of the errors in the linear model, since the points fall roughly along the 45- degree line.
9 Cool- Down: Think About It 1. Why would you not want to use this model to predict the yearly number of books read for a patron that watches 15 minutes of television weekly? It is usually not a good idea to use a regression equation to predict values far outside the range where the original data fell (extrapolation). All of the patrons observed watched at least 30 minutes of television on a typical weeknight, while this patron would watch 15 minutes. There is no guarantee that the relationship described by the regression will continue beyond the range for which we have observed data. 2. The library plans to report a few prediction intervals to predict the number of books read in a year for patrons who watch a given amount of television per week. What amount of television watched weekly would produce a prediction interval with the narrowest margin of error? The narrowest margin of error for a prediction interval will be found when the television watched weekly is minutes. This is because the margin of error for a prediction interval will only change based on the (!!)! term of the s.e.(fit) calculation. To achieve the narrowest margin of error, we want the smallest s.e.(fit) possible. This will occur when! =!, so that the term is 0. Because the mean TV watched weekly is minutes, we want x=71.43 minutes. 3. Which is the only test statistic you can use if you want to test if the explanatory variable television is a significant negative linear predictor of the number of books read per week? We can only use the t- test statistic, because the F- test statistic produces positive values with no way of separating the contributions to the p- value from the negative or positive linear predictors. Example Exam Question on Regression A doctor wanted to study the relationship between a male s age and HDL (so- called good) cholesterol. She randomly selects 18 male adult patients and records their x = age and y = HDL. A scatterplot of the data indicated an approximately linear relationship overall, so she performs a linear regression analysis using SPSS. Model Summary Model 1 Model 1 Model 1 Regression Residual Total (Constant) Age Adjusted Std. Error of R R Square R Square the Estimate ANOVA Sum of Squares df Mean Square F Sig Unstandardized Coefficients Coefficients Standardized Coefficients B Std. Error Beta t Sig We also have: = = 2883 x and S xx = ( x).131 x.
10 a. What is the correlation between age and HDL cholesterol levels? final answer: r = b. Provide the least square regression line for predicting HDL from age: final answer:! = ! - - OR predicted HDL = (age) c. Based on this model, predict HDL cholesterol for a male who is 30 years old. Predicted y = * 30 = final answer: d. Use a 1% significance level to assess if there is a significant linear relationship between the age and HDL cholesterol for male adults. State the hypotheses to be tested, the observed value of the test statistic, the corresponding p- value, and your decision. Hypotheses: H 0 :!! = 0 H a :!! 0 Test Statistic Value: _t = or F = 8.91 p- value: Decision: (circle) Fail to reject H 0 Reject H 0 e. Calculate a 95% confidence interval for the mean HDL cholesterol level for all 30- year- old male adults. s.e.(fit) = s 1 + n ( x x) 2 ( x x) i 2 = ( ) = 2.61! ±!!.!. (!"#) ± (2.12)(2.61) ± 5.53 (44.12, 55.18) final answer: (44.12, 55.18) f. Consider the residual plot provided below. Does this plot support the conclusion that the linear regression model is appropriate? Yes No Explain: The plot shows a random scatter of points in a horizontal band around 0 with no apparent pattern. This supports that the variance of the of the residuals/the response variable does not change with the explanatory variable Residual Age
SPSS Guide: Regression Analysis
SPSS Guide: Regression Analysis I put this together to give you a step-by-step guide for replicating what we did in the computer lab. It should help you run the tests we covered. The best way to get familiar
More informationSimple linear regression
Simple linear regression Introduction Simple linear regression is a statistical method for obtaining a formula to predict values of one variable from another where there is a causal relationship between
More informationUnit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression
Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression Objectives: To perform a hypothesis test concerning the slope of a least squares line To recognize that testing for a
More informationChapter 7: Simple linear regression Learning Objectives
Chapter 7: Simple linear regression Learning Objectives Reading: Section 7.1 of OpenIntro Statistics Video: Correlation vs. causation, YouTube (2:19) Video: Intro to Linear Regression, YouTube (5:18) -
More informationChapter 23. Inferences for Regression
Chapter 23. Inferences for Regression Topics covered in this chapter: Simple Linear Regression Simple Linear Regression Example 23.1: Crying and IQ The Problem: Infants who cry easily may be more easily
More informationChapter 13 Introduction to Linear Regression and Correlation Analysis
Chapter 3 Student Lecture Notes 3- Chapter 3 Introduction to Linear Regression and Correlation Analsis Fall 2006 Fundamentals of Business Statistics Chapter Goals To understand the methods for displaing
More information1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96
1 Final Review 2 Review 2.1 CI 1-propZint Scenario 1 A TV manufacturer claims in its warranty brochure that in the past not more than 10 percent of its TV sets needed any repair during the first two years
More informationChapter 5 Analysis of variance SPSS Analysis of variance
Chapter 5 Analysis of variance SPSS Analysis of variance Data file used: gss.sav How to get there: Analyze Compare Means One-way ANOVA To test the null hypothesis that several population means are equal,
More information2013 MBA Jump Start Program. Statistics Module Part 3
2013 MBA Jump Start Program Module 1: Statistics Thomas Gilbert Part 3 Statistics Module Part 3 Hypothesis Testing (Inference) Regressions 2 1 Making an Investment Decision A researcher in your firm just
More informationChapter 10. Key Ideas Correlation, Correlation Coefficient (r),
Chapter 0 Key Ideas Correlation, Correlation Coefficient (r), Section 0-: Overview We have already explored the basics of describing single variable data sets. However, when two quantitative variables
More informationHYPOTHESIS TESTING: CONFIDENCE INTERVALS, T-TESTS, ANOVAS, AND REGRESSION
HYPOTHESIS TESTING: CONFIDENCE INTERVALS, T-TESTS, ANOVAS, AND REGRESSION HOD 2990 10 November 2010 Lecture Background This is a lightning speed summary of introductory statistical methods for senior undergraduate
More informationSimple Linear Regression Inference
Simple Linear Regression Inference 1 Inference requirements The Normality assumption of the stochastic term e is needed for inference even if it is not a OLS requirement. Therefore we have: Interpretation
More informationUnivariate Regression
Univariate Regression Correlation and Regression The regression line summarizes the linear relationship between 2 variables Correlation coefficient, r, measures strength of relationship: the closer r is
More informationFormula for linear models. Prediction, extrapolation, significance test against zero slope.
Formula for linear models. Prediction, extrapolation, significance test against zero slope. Last time, we looked the linear regression formula. It s the line that fits the data best. The Pearson correlation
More informationExample: Boats and Manatees
Figure 9-6 Example: Boats and Manatees Slide 1 Given the sample data in Table 9-1, find the value of the linear correlation coefficient r, then refer to Table A-6 to determine whether there is a significant
More informationRegression Analysis: A Complete Example
Regression Analysis: A Complete Example This section works out an example that includes all the topics we have discussed so far in this chapter. A complete example of regression analysis. PhotoDisc, Inc./Getty
More informationAn analysis appropriate for a quantitative outcome and a single quantitative explanatory. 9.1 The model behind linear regression
Chapter 9 Simple Linear Regression An analysis appropriate for a quantitative outcome and a single quantitative explanatory variable. 9.1 The model behind linear regression When we are examining the relationship
More informationThe Dummy s Guide to Data Analysis Using SPSS
The Dummy s Guide to Data Analysis Using SPSS Mathematics 57 Scripps College Amy Gamble April, 2001 Amy Gamble 4/30/01 All Rights Rerserved TABLE OF CONTENTS PAGE Helpful Hints for All Tests...1 Tests
More information2. Simple Linear Regression
Research methods - II 3 2. Simple Linear Regression Simple linear regression is a technique in parametric statistics that is commonly used for analyzing mean response of a variable Y which changes according
More informationInteraction between quantitative predictors
Interaction between quantitative predictors In a first-order model like the ones we have discussed, the association between E(y) and a predictor x j does not depend on the value of the other predictors
More informationNCSS Statistical Software Principal Components Regression. In ordinary least squares, the regression coefficients are estimated using the formula ( )
Chapter 340 Principal Components Regression Introduction is a technique for analyzing multiple regression data that suffer from multicollinearity. When multicollinearity occurs, least squares estimates
More informationSection 14 Simple Linear Regression: Introduction to Least Squares Regression
Slide 1 Section 14 Simple Linear Regression: Introduction to Least Squares Regression There are several different measures of statistical association used for understanding the quantitative relationship
More informationLecture 11: Chapter 5, Section 3 Relationships between Two Quantitative Variables; Correlation
Lecture 11: Chapter 5, Section 3 Relationships between Two Quantitative Variables; Correlation Display and Summarize Correlation for Direction and Strength Properties of Correlation Regression Line Cengage
More informationUnit 26 Estimation with Confidence Intervals
Unit 26 Estimation with Confidence Intervals Objectives: To see how confidence intervals are used to estimate a population proportion, a population mean, a difference in population proportions, or a difference
More informationModule 5: Multiple Regression Analysis
Using Statistical Data Using to Make Statistical Decisions: Data Multiple to Make Regression Decisions Analysis Page 1 Module 5: Multiple Regression Analysis Tom Ilvento, University of Delaware, College
More informationSimple Regression Theory II 2010 Samuel L. Baker
SIMPLE REGRESSION THEORY II 1 Simple Regression Theory II 2010 Samuel L. Baker Assessing how good the regression equation is likely to be Assignment 1A gets into drawing inferences about how close the
More informationMultiple Regression in SPSS This example shows you how to perform multiple regression. The basic command is regression : linear.
Multiple Regression in SPSS This example shows you how to perform multiple regression. The basic command is regression : linear. In the main dialog box, input the dependent variable and several predictors.
More informationScatter Plots with Error Bars
Chapter 165 Scatter Plots with Error Bars Introduction The procedure extends the capability of the basic scatter plot by allowing you to plot the variability in Y and X corresponding to each point. Each
More informationMultiple Linear Regression
Multiple Linear Regression A regression with two or more explanatory variables is called a multiple regression. Rather than modeling the mean response as a straight line, as in simple regression, it is
More informationRelationships Between Two Variables: Scatterplots and Correlation
Relationships Between Two Variables: Scatterplots and Correlation Example: Consider the population of cars manufactured in the U.S. What is the relationship (1) between engine size and horsepower? (2)
More informationRegression and Correlation
Regression and Correlation Topics Covered: Dependent and independent variables. Scatter diagram. Correlation coefficient. Linear Regression line. by Dr.I.Namestnikova 1 Introduction Regression analysis
More information" Y. Notation and Equations for Regression Lecture 11/4. Notation:
Notation: Notation and Equations for Regression Lecture 11/4 m: The number of predictor variables in a regression Xi: One of multiple predictor variables. The subscript i represents any number from 1 through
More informationHomework 11. Part 1. Name: Score: / null
Name: Score: / Homework 11 Part 1 null 1 For which of the following correlations would the data points be clustered most closely around a straight line? A. r = 0.50 B. r = -0.80 C. r = 0.10 D. There is
More informationX X X a) perfect linear correlation b) no correlation c) positive correlation (r = 1) (r = 0) (0 < r < 1)
CORRELATION AND REGRESSION / 47 CHAPTER EIGHT CORRELATION AND REGRESSION Correlation and regression are statistical methods that are commonly used in the medical literature to compare two or more variables.
More informationCorrelation and Regression
Correlation and Regression Scatterplots Correlation Explanatory and response variables Simple linear regression General Principles of Data Analysis First plot the data, then add numerical summaries Look
More informationCorrelation key concepts:
CORRELATION Correlation key concepts: Types of correlation Methods of studying correlation a) Scatter diagram b) Karl pearson s coefficient of correlation c) Spearman s Rank correlation coefficient d)
More informationLinear Models in STATA and ANOVA
Session 4 Linear Models in STATA and ANOVA Page Strengths of Linear Relationships 4-2 A Note on Non-Linear Relationships 4-4 Multiple Linear Regression 4-5 Removal of Variables 4-8 Independent Samples
More informationIntroduction to Regression and Data Analysis
Statlab Workshop Introduction to Regression and Data Analysis with Dan Campbell and Sherlock Campbell October 28, 2008 I. The basics A. Types of variables Your variables may take several forms, and it
More informationIntroduction to Quantitative Methods
Introduction to Quantitative Methods October 15, 2009 Contents 1 Definition of Key Terms 2 2 Descriptive Statistics 3 2.1 Frequency Tables......................... 4 2.2 Measures of Central Tendencies.................
More information1. The parameters to be estimated in the simple linear regression model Y=α+βx+ε ε~n(0,σ) are: a) α, β, σ b) α, β, ε c) a, b, s d) ε, 0, σ
STA 3024 Practice Problems Exam 2 NOTE: These are just Practice Problems. This is NOT meant to look just like the test, and it is NOT the only thing that you should study. Make sure you know all the material
More informationDoing Multiple Regression with SPSS. In this case, we are interested in the Analyze options so we choose that menu. If gives us a number of choices:
Doing Multiple Regression with SPSS Multiple Regression for Data Already in Data Editor Next we want to specify a multiple regression analysis for these data. The menu bar for SPSS offers several options:
More informationCourse Objective This course is designed to give you a basic understanding of how to run regressions in SPSS.
SPSS Regressions Social Science Research Lab American University, Washington, D.C. Web. www.american.edu/provost/ctrl/pclabs.cfm Tel. x3862 Email. SSRL@American.edu Course Objective This course is designed
More informationPremaster Statistics Tutorial 4 Full solutions
Premaster Statistics Tutorial 4 Full solutions Regression analysis Q1 (based on Doane & Seward, 4/E, 12.7) a. Interpret the slope of the fitted regression = 125,000 + 150. b. What is the prediction for
More informationA full analysis example Multiple correlations Partial correlations
A full analysis example Multiple correlations Partial correlations New Dataset: Confidence This is a dataset taken of the confidence scales of 41 employees some years ago using 4 facets of confidence (Physical,
More informationDirections for using SPSS
Directions for using SPSS Table of Contents Connecting and Working with Files 1. Accessing SPSS... 2 2. Transferring Files to N:\drive or your computer... 3 3. Importing Data from Another File Format...
More informationChapter 15. Mixed Models. 15.1 Overview. A flexible approach to correlated data.
Chapter 15 Mixed Models A flexible approach to correlated data. 15.1 Overview Correlated data arise frequently in statistical analyses. This may be due to grouping of subjects, e.g., students within classrooms,
More informationCHAPTER 13 SIMPLE LINEAR REGRESSION. Opening Example. Simple Regression. Linear Regression
Opening Example CHAPTER 13 SIMPLE LINEAR REGREION SIMPLE LINEAR REGREION! Simple Regression! Linear Regression Simple Regression Definition A regression model is a mathematical equation that descries the
More informationPart 2: Analysis of Relationship Between Two Variables
Part 2: Analysis of Relationship Between Two Variables Linear Regression Linear correlation Significance Tests Multiple regression Linear Regression Y = a X + b Dependent Variable Independent Variable
More informationMain Effects and Interactions
Main Effects & Interactions page 1 Main Effects and Interactions So far, we ve talked about studies in which there is just one independent variable, such as violence of television program. You might randomly
More informationAnalysis of Variance ANOVA
Analysis of Variance ANOVA Overview We ve used the t -test to compare the means from two independent groups. Now we ve come to the final topic of the course: how to compare means from more than two populations.
More informationCOMPARISONS OF CUSTOMER LOYALTY: PUBLIC & PRIVATE INSURANCE COMPANIES.
277 CHAPTER VI COMPARISONS OF CUSTOMER LOYALTY: PUBLIC & PRIVATE INSURANCE COMPANIES. This chapter contains a full discussion of customer loyalty comparisons between private and public insurance companies
More informationCorrelation and Regression Analysis: SPSS
Correlation and Regression Analysis: SPSS Bivariate Analysis: Cyberloafing Predicted from Personality and Age These days many employees, during work hours, spend time on the Internet doing personal things,
More informationKSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management
KSTAT MINI-MANUAL Decision Sciences 434 Kellogg Graduate School of Management Kstat is a set of macros added to Excel and it will enable you to do the statistics required for this course very easily. To
More informationCorrelation and Simple Linear Regression
Correlation and Simple Linear Regression We are often interested in studying the relationship among variables to determine whether they are associated with one another. When we think that changes in a
More informationHypothesis testing - Steps
Hypothesis testing - Steps Steps to do a two-tailed test of the hypothesis that β 1 0: 1. Set up the hypotheses: H 0 : β 1 = 0 H a : β 1 0. 2. Compute the test statistic: t = b 1 0 Std. error of b 1 =
More informationAn analysis method for a quantitative outcome and two categorical explanatory variables.
Chapter 11 Two-Way ANOVA An analysis method for a quantitative outcome and two categorical explanatory variables. If an experiment has a quantitative outcome and two categorical explanatory variables that
More informationThis chapter will demonstrate how to perform multiple linear regression with IBM SPSS
CHAPTER 7B Multiple Regression: Statistical Methods Using IBM SPSS This chapter will demonstrate how to perform multiple linear regression with IBM SPSS first using the standard method and then using the
More informationABSORBENCY OF PAPER TOWELS
ABSORBENCY OF PAPER TOWELS 15. Brief Version of the Case Study 15.1 Problem Formulation 15.2 Selection of Factors 15.3 Obtaining Random Samples of Paper Towels 15.4 How will the Absorbency be measured?
More informationFinal Exam Practice Problem Answers
Final Exam Practice Problem Answers The following data set consists of data gathered from 77 popular breakfast cereals. The variables in the data set are as follows: Brand: The brand name of the cereal
More informationFairfield Public Schools
Mathematics Fairfield Public Schools AP Statistics AP Statistics BOE Approved 04/08/2014 1 AP STATISTICS Critical Areas of Focus AP Statistics is a rigorous course that offers advanced students an opportunity
More informationMULTIPLE REGRESSION EXAMPLE
MULTIPLE REGRESSION EXAMPLE For a sample of n = 166 college students, the following variables were measured: Y = height X 1 = mother s height ( momheight ) X 2 = father s height ( dadheight ) X 3 = 1 if
More informationExercise 1.12 (Pg. 22-23)
Individuals: The objects that are described by a set of data. They may be people, animals, things, etc. (Also referred to as Cases or Records) Variables: The characteristics recorded about each individual.
More informationDEPARTMENT OF PSYCHOLOGY UNIVERSITY OF LANCASTER MSC IN PSYCHOLOGICAL RESEARCH METHODS ANALYSING AND INTERPRETING DATA 2 PART 1 WEEK 9
DEPARTMENT OF PSYCHOLOGY UNIVERSITY OF LANCASTER MSC IN PSYCHOLOGICAL RESEARCH METHODS ANALYSING AND INTERPRETING DATA 2 PART 1 WEEK 9 Analysis of covariance and multiple regression So far in this course,
More informationLinear Regression. Chapter 5. Prediction via Regression Line Number of new birds and Percent returning. Least Squares
Linear Regression Chapter 5 Regression Objective: To quantify the linear relationship between an explanatory variable (x) and response variable (y). We can then predict the average response for all subjects
More informationSTAT 350 Practice Final Exam Solution (Spring 2015)
PART 1: Multiple Choice Questions: 1) A study was conducted to compare five different training programs for improving endurance. Forty subjects were randomly divided into five groups of eight subjects
More informationRegression III: Advanced Methods
Lecture 16: Generalized Additive Models Regression III: Advanced Methods Bill Jacoby Michigan State University http://polisci.msu.edu/jacoby/icpsr/regress3 Goals of the Lecture Introduce Additive Models
More informationThe correlation coefficient
The correlation coefficient Clinical Biostatistics The correlation coefficient Martin Bland Correlation coefficients are used to measure the of the relationship or association between two quantitative
More information1.5 Oneway Analysis of Variance
Statistics: Rosie Cornish. 200. 1.5 Oneway Analysis of Variance 1 Introduction Oneway analysis of variance (ANOVA) is used to compare several means. This method is often used in scientific or medical experiments
More informationSPSS Explore procedure
SPSS Explore procedure One useful function in SPSS is the Explore procedure, which will produce histograms, boxplots, stem-and-leaf plots and extensive descriptive statistics. To run the Explore procedure,
More informationSimple Linear Regression, Scatterplots, and Bivariate Correlation
1 Simple Linear Regression, Scatterplots, and Bivariate Correlation This section covers procedures for testing the association between two continuous variables using the SPSS Regression and Correlate analyses.
More informationWe are often interested in the relationship between two variables. Do people with more years of full-time education earn higher salaries?
Statistics: Correlation Richard Buxton. 2008. 1 Introduction We are often interested in the relationship between two variables. Do people with more years of full-time education earn higher salaries? Do
More informationSimple Predictive Analytics Curtis Seare
Using Excel to Solve Business Problems: Simple Predictive Analytics Curtis Seare Copyright: Vault Analytics July 2010 Contents Section I: Background Information Why use Predictive Analytics? How to use
More informationFactors affecting online sales
Factors affecting online sales Table of contents Summary... 1 Research questions... 1 The dataset... 2 Descriptive statistics: The exploratory stage... 3 Confidence intervals... 4 Hypothesis tests... 4
More informationChicago Booth BUSINESS STATISTICS 41000 Final Exam Fall 2011
Chicago Booth BUSINESS STATISTICS 41000 Final Exam Fall 2011 Name: Section: I pledge my honor that I have not violated the Honor Code Signature: This exam has 34 pages. You have 3 hours to complete this
More informationChapter Seven. Multiple regression An introduction to multiple regression Performing a multiple regression on SPSS
Chapter Seven Multiple regression An introduction to multiple regression Performing a multiple regression on SPSS Section : An introduction to multiple regression WHAT IS MULTIPLE REGRESSION? Multiple
More informationUsing R for Linear Regression
Using R for Linear Regression In the following handout words and symbols in bold are R functions and words and symbols in italics are entries supplied by the user; underlined words and symbols are optional
More informationBasic Statistics and Data Analysis for Health Researchers from Foreign Countries
Basic Statistics and Data Analysis for Health Researchers from Foreign Countries Volkert Siersma siersma@sund.ku.dk The Research Unit for General Practice in Copenhagen Dias 1 Content Quantifying association
More informationRegression step-by-step using Microsoft Excel
Step 1: Regression step-by-step using Microsoft Excel Notes prepared by Pamela Peterson Drake, James Madison University Type the data into the spreadsheet The example used throughout this How to is a regression
More informationHow To Check For Differences In The One Way Anova
MINITAB ASSISTANT WHITE PAPER This paper explains the research conducted by Minitab statisticians to develop the methods and data checks used in the Assistant in Minitab 17 Statistical Software. One-Way
More informationHomework 8 Solutions
Math 17, Section 2 Spring 2011 Homework 8 Solutions Assignment Chapter 7: 7.36, 7.40 Chapter 8: 8.14, 8.16, 8.28, 8.36 (a-d), 8.38, 8.62 Chapter 9: 9.4, 9.14 Chapter 7 7.36] a) A scatterplot is given below.
More informationLecture 13/Chapter 10 Relationships between Measurement (Quantitative) Variables
Lecture 13/Chapter 10 Relationships between Measurement (Quantitative) Variables Scatterplot; Roles of Variables 3 Features of Relationship Correlation Regression Definition Scatterplot displays relationship
More informationDescriptive Statistics
Descriptive Statistics Primer Descriptive statistics Central tendency Variation Relative position Relationships Calculating descriptive statistics Descriptive Statistics Purpose to describe or summarize
More informationEstimation of σ 2, the variance of ɛ
Estimation of σ 2, the variance of ɛ The variance of the errors σ 2 indicates how much observations deviate from the fitted surface. If σ 2 is small, parameters β 0, β 1,..., β k will be reliably estimated
More informationLAGUARDIA COMMUNITY COLLEGE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF MATHEMATICS, ENGINEERING, AND COMPUTER SCIENCE
LAGUARDIA COMMUNITY COLLEGE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF MATHEMATICS, ENGINEERING, AND COMPUTER SCIENCE MAT 119 STATISTICS AND ELEMENTARY ALGEBRA 5 Lecture Hours, 2 Lab Hours, 3 Credits Pre-
More informationWEB APPENDIX. Calculating Beta Coefficients. b Beta Rise Run Y 7.1 1 8.92 X 10.0 0.0 16.0 10.0 1.6
WEB APPENDIX 8A Calculating Beta Coefficients The CAPM is an ex ante model, which means that all of the variables represent before-thefact, expected values. In particular, the beta coefficient used in
More informationEconometrics Simple Linear Regression
Econometrics Simple Linear Regression Burcu Eke UC3M Linear equations with one variable Recall what a linear equation is: y = b 0 + b 1 x is a linear equation with one variable, or equivalently, a straight
More informationSession 7 Bivariate Data and Analysis
Session 7 Bivariate Data and Analysis Key Terms for This Session Previously Introduced mean standard deviation New in This Session association bivariate analysis contingency table co-variation least squares
More informationStatistics 2014 Scoring Guidelines
AP Statistics 2014 Scoring Guidelines College Board, Advanced Placement Program, AP, AP Central, and the acorn logo are registered trademarks of the College Board. AP Central is the official online home
More informationII. DISTRIBUTIONS distribution normal distribution. standard scores
Appendix D Basic Measurement And Statistics The following information was developed by Steven Rothke, PhD, Department of Psychology, Rehabilitation Institute of Chicago (RIC) and expanded by Mary F. Schmidt,
More informationOnce saved, if the file was zipped you will need to unzip it. For the files that I will be posting you need to change the preferences.
1 Commands in JMP and Statcrunch Below are a set of commands in JMP and Statcrunch which facilitate a basic statistical analysis. The first part concerns commands in JMP, the second part is for analysis
More informationStudy Guide for the Final Exam
Study Guide for the Final Exam When studying, remember that the computational portion of the exam will only involve new material (covered after the second midterm), that material from Exam 1 will make
More information2. What is the general linear model to be used to model linear trend? (Write out the model) = + + + or
Simple and Multiple Regression Analysis Example: Explore the relationships among Month, Adv.$ and Sales $: 1. Prepare a scatter plot of these data. The scatter plots for Adv.$ versus Sales, and Month versus
More informationMTH 140 Statistics Videos
MTH 140 Statistics Videos Chapter 1 Picturing Distributions with Graphs Individuals and Variables Categorical Variables: Pie Charts and Bar Graphs Categorical Variables: Pie Charts and Bar Graphs Quantitative
More informationDATA INTERPRETATION AND STATISTICS
PholC60 September 001 DATA INTERPRETATION AND STATISTICS Books A easy and systematic introductory text is Essentials of Medical Statistics by Betty Kirkwood, published by Blackwell at about 14. DESCRIPTIVE
More informationModule 3: Correlation and Covariance
Using Statistical Data to Make Decisions Module 3: Correlation and Covariance Tom Ilvento Dr. Mugdim Pašiƒ University of Delaware Sarajevo Graduate School of Business O ften our interest in data analysis
More informationIndependent t- Test (Comparing Two Means)
Independent t- Test (Comparing Two Means) The objectives of this lesson are to learn: the definition/purpose of independent t-test when to use the independent t-test the use of SPSS to complete an independent
More informationWe extended the additive model in two variables to the interaction model by adding a third term to the equation.
Quadratic Models We extended the additive model in two variables to the interaction model by adding a third term to the equation. Similarly, we can extend the linear model in one variable to the quadratic
More information1) Write the following as an algebraic expression using x as the variable: Triple a number subtracted from the number
1) Write the following as an algebraic expression using x as the variable: Triple a number subtracted from the number A. 3(x - x) B. x 3 x C. 3x - x D. x - 3x 2) Write the following as an algebraic expression
More information