1 Simple Linear Regression Linear regression model Prediction Limitation Correlation.

Slides:



Advertisements
Similar presentations
Scatterplots and Correlation
Advertisements

Chapter 3 Bivariate Data
Chapter 6: Exploring Data: Relationships Lesson Plan
2nd Day: Bear Example Length (in) Weight (lb)
Chapter 8 Linear Regression © 2010 Pearson Education 1.
Scatter Diagrams and Linear Correlation
AP Statistics Chapters 3 & 4 Measuring Relationships Between 2 Variables.
CHAPTER 3 Describing Relationships
Correlation and Regression. Relationships between variables Example: Suppose that you notice that the more you study for an exam, the better your score.
Correlation & Regression
Chapters 8, 9, 10 Least Squares Regression Line Fitting a Line to Bivariate Data.
Descriptive Methods in Regression and Correlation
Chapter 6: Exploring Data: Relationships Chi-Kwong Li Displaying Relationships: Scatterplots Regression Lines Correlation Least-Squares Regression Interpreting.
Chapter 3: Examining relationships between Data
1 Chapter 3: Examining Relationships 3.1Scatterplots 3.2Correlation 3.3Least-Squares Regression.
Chapter 6: Exploring Data: Relationships Lesson Plan Displaying Relationships: Scatterplots Making Predictions: Regression Line Correlation Least-Squares.
Correlation Correlation measures the strength of the LINEAR relationship between 2 quantitative variables. Labeled as r Takes on the values -1 < r < 1.
AP Statistics Section 15 A. The Regression Model When a scatterplot shows a linear relationship between a quantitative explanatory variable x and a quantitative.
Ch 3 – Examining Relationships YMS – 3.1
Chapter 3 concepts/objectives Define and describe density curves Measure position using percentiles Measure position using z-scores Describe Normal distributions.
Notes Bivariate Data Chapters Bivariate Data Explores relationships between two quantitative variables.
CHAPTER 7: Exploring Data: Part I Review
1 Everyday is a new beginning in life. Every moment is a time for self vigilance.
Notes Bivariate Data Chapters Bivariate Data Explores relationships between two quantitative variables.
Scatterplot and trendline. Scatterplot Scatterplot explores the relationship between two quantitative variables. Example:
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 12: Analyzing the Association Between Quantitative Variables: Regression Analysis Section.
Aim: Review for Exam Tomorrow. Independent VS. Dependent Variable Response Variables (DV) measures an outcome of a study Explanatory Variables (IV) explains.
Relationships If we are doing a study which involves more than one variable, how can we tell if there is a relationship between two (or more) of the.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 3 Describing Relationships 3.2 Least-Squares.
Examining Bivariate Data Unit 3 – Statistics. Some Vocabulary Response aka Dependent Variable –Measures an outcome of a study Explanatory aka Independent.
Creating a Residual Plot and Investigating the Correlation Coefficient.
Chapter 4 Summary Scatter diagrams of data pairs (x, y) are useful in helping us determine visually if there is any relation between x and y values and,
Chapter 9: Correlation and Regression Analysis. Correlation Correlation is a numerical way to measure the strength and direction of a linear association.
Chapter 3-Examining Relationships Scatterplots and Correlation Least-squares Regression.
Essential Statistics Chapter 51 Least Squares Regression Line u Regression line equation: y = a + bx ^ –x is the value of the explanatory variable –“y-hat”
STA302: Regression Analysis. Statistics Objective: To draw reasonable conclusions from noisy numerical data Entry point: Study relationships between variables.
Chapter 2 Examining Relationships.  Response variable measures outcome of a study (dependent variable)  Explanatory variable explains or influences.
Correlation – Recap Correlation provides an estimate of how well change in ‘ x ’ causes change in ‘ y ’. The relationship has a magnitude (the r value)
SWBAT: Calculate and interpret the residual plot for a line of regression Do Now: Do heavier cars really use more gasoline? In the following data set,
Linear Regression Day 1 – (pg )
CHAPTER 3 Describing Relationships
What Do You See?. A scatterplot is a graphic tool used to display the relationship between two quantitative variables. How to Read a Scatterplot A scatterplot.
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
GOAL: I CAN USE TECHNOLOGY TO COMPUTE AND INTERPRET THE CORRELATION COEFFICIENT OF A LINEAR FIT. (S-ID.8) Data Analysis Correlation Coefficient.
Describing Relationships. Least-Squares Regression  A method for finding a line that summarizes the relationship between two variables Only in a specific.
Chapter 11 Linear Regression and Correlation. Explanatory and Response Variables are Numeric Relationship between the mean of the response variable and.
Week 2 Normal Distributions, Scatter Plots, Regression and Random.
Midterm Review IN CLASS. Chapter 1: The Art and Science of Data 1.Recognize individuals and variables in a statistical study. 2.Distinguish between categorical.
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
SCATTERPLOTS, ASSOCIATION AND RELATIONSHIPS
Chapter 6: Exploring Data: Relationships Lesson Plan
Happiness comes not from material wealth but less desire.
…Don’t be afraid of others, because they are bigger than you
Chapter 6: Exploring Data: Relationships Lesson Plan
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
The greatest blessing in life is
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Review of Chapter 3 Examining Relationships
CHAPTER 3 Describing Relationships
Presentation transcript:

1 Simple Linear Regression Linear regression model Prediction Limitation Correlation

2 Example: Computer Repair A company markets and repairs small computers. How fast (Time) an electronic component (Computer Unit) can be repaired is very important to the efficiency of the company. The Variables in this example are: Time and Units.

3 Humm… How long will it take me to repair this unit? Goal: to predict the length of repair Time for a given number of computer Units

4 Computer Repair Data UnitsMin’sUnitsMin’s

5 Scatterplot of response variable against explanatory variable What is the overall (average) pattern? What is the direction of the pattern? How much do data points vary from the overall (average) pattern? Any potential outliers? Graphical Summary of Two Quantitative Variable

6 Time is Linearly related with computer Units. (The length of) Time is Increasing as (the number of) Units increases. Data points are closed to the line. No potential outlier. Scatterplot (Time vs Units)Some Simple Conclusions Summary for Computer Repair Data

7 Numerical Summary of Two Quantitative Variable Regression Model Correlation

8 Linear Regression Model Y: the response variable X: the explanatory variable X Y Y=b 0 +b 1 X+error } b 0 } b 1 1

9 Linear Regression Model The regression line models the relationship between X and Y on average.

10 Prediction : Predicted value of Y for a given X value Regression equation: Eg. How long will it take to repair 3 computer units?

11 The Limitation of the Regression Equation The regression equation cannot be used to predict Y value for the X values which are (far) beyond the range in which data are observed. Eg. The predicted WT of a given HT: Given HT of 40”, the regression equation will give us WT of x40 = -5 pounds!!

12 The Unpredicted Part The value is the part the regression equation (model) cannot predict, and it is called “residual.”

13 residual {

14 Correlation between X and Y X and Y might be related to each other in many ways: linear or curved.

15 r=.98 Strong Linearity r=.71 Median Linearity Examples of Different Levels of Correlation

16 r=-.09 Nearly Uncorrelated Examples of Different Levels of Correlation r=.00 Nearly Curved

17 (Pearson) Correlation Coefficient of X and Y A measurement of the strength of the “LINEAR” association between X and Y The correlation coefficient of X and Y is:

18 Correlation Coefficient of X and Y -1< r < 1 The magnitude of r measures the strength of the linear association of X and Y The sign of r indicate the direction of the association: “-”  negative association “+”  positive association

19 Correlation Coefficient The value r is almost 0  the best line to fit the data points is exactly horizontal  the value of X won’t change our prediction on Y The value r is almost 1  A line fits the data points almost perfectly.

Goodness of Fit of SLR Model For a data point: residuals For the whole dataset: R^2 R^2 (=r^2) is the proportion o f variation in Y explained by (the variation in) X 20

21 i 12…n12…n ……. Total Table for Computing Mean, St. Deviation, and Corr. Coef.

22 Example: Computer Repair Time

23 (1) Fill the following table, then compute the mean and st. deviation of Y and X (2) Compute the corr. coef. of Y and X (3) Draw a scatterplot i Total0 *6.0* Exercise

24 The Influence of Outliers The slope becomes bigger (toward outliers) The r value becomes smaller (less linear)

25 The slope becomes clear (toward outliers) The | r | value becomes larger (more linear:  0.935) The Influence of Outliers