Linear Regression.

Slides:



Advertisements
Similar presentations
Section 10-3 Regression.
Advertisements

Chapter 12 Simple Linear Regression
1-4 curve fitting with linear functions
Bivariate Data – Scatter Plots and Correlation Coefficient…… Section 3.1 and 3.2.
Correlation Correlation is the relationship between two quantitative variables. Correlation coefficient (r) measures the strength of the linear relationship.
5-7: Scatter Plots & Lines of Best Fit. What is a scatter plot?  A graph in which two sets of data are plotted as ordered pairs  When looking at the.
Correlation and Regression. Correlation What type of relationship exists between the two variables and is the correlation significant? x y Cigarettes.
All about Regression Sections Section 10-4 regression Objectives ◦Compute the equation of the regression line ◦Make a prediction using the.
4.3 Systems of Equations - Elimination Objective: The student will be able to: Solve systems of equations using elimination with addition and subtraction.
The Line of Best Fit Linear Regression. Definition - A Line of Best or a trend line is a straight line on a Scatter plot that comes closest to all of.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Simple Linear Regression Analysis Chapter 13.
EQT 272 PROBABILITY AND STATISTICS
Linear Regression Section 3.3. Warm Up In many communities there is a strong positive correlation between the amount of ice cream sold in a given month.
Warm Up 13, 13, 15, 9, 9, 12, 13, 15, 11 1.Find Q1, Median, and Q3 2.Find the IQR 3.Find the mean. 4.Find the mean absolute deviation.
CHAPTER curve fitting with linear functions.
Scatter Plots, Correlation and Linear Regression.
S CATTERPLOTS Correlation, Least-Squares Regression, Residuals Get That Program ANSCOMBE CRICKETS GESSEL.
Scatterplots and Linear Regressions Unit 8. Warm – up!! As you walk in, please pick up your calculator and begin working on your warm – up! 1. Look at.
Day 102 – Linear Regression Learning Targets: Students can represent data on a scatter plot, and describe how the variables are related and fit a linear.
Discovering Mathematics Week 9 – Unit 6 Graphs MU123 Dr. Hassan Sharafuddin.
Bivariate Data – Scatter Plots and Correlation Coefficient……
Warm-up Get a sheet of computer paper/construction paper from the front of the room, and create your very own paper airplane. Try to create planes with.
Warm Up Scatter Plot Activity.
Writing Linear Equations
Objective I can solve systems of equations using elimination with addition and subtraction.
Slope-Intercept and Standard Form of a Linear Equation.
Linear Regression Special Topics.
Practice. Practice Practice Practice Practice r = X = 20 X2 = 120 Y = 19 Y2 = 123 XY = 72 N = 4 (4) 72.
SCATTERPLOTS, ASSOCIATION AND RELATIONSHIPS
Warm Up 13, 13, 15, 9, 9, 12, 13, 15, 11 Find Q1, Median, and Q3
Equations of Lines.
Chapter 5 STATISTICS (PART 4).
The Least-Squares Regression Line
Describe the association’s Form, Direction, and Strength
Write an Equation in Slope-Intercept Form
CHAPTER 10 Correlation and Regression (Objectives)
Section 9-3   We already know how to calculate the correlation coefficient, r. The square of this coefficient is called the coefficient of determination.
Basic Algebra 2 Teacher – Mrs. Volynskaya
Writing Linear Equations When Given a Point and the Slope
Section 4.2 How Can We Define the Relationship between two
Objective The student will be able to:
Warm Up.
Graphing Linear Equations
Ice Cream Sales vs Temperature
Warm Up Please sit down and clear your desk. Do not talk. You will have until lunch to finish your quiz.
Lesson 4.1 Bivariate Data Today, we will learn to …
Writing Equations in Slope-Intercept Form
The student will be able to:
Scatterplots 40 points.
Chapter 5 LSRL.
Least-Squares Regression
Solving Systems of Equations
4.3 Graphing Equations of Lines From Intercepts
Graphing Linear Equations
y = mx + b Linear Regression line of best fit REMEMBER:
Warm Up 13, 13, 15, 9, 9, 12, 13, 15, 11 Find Q1, Median, and Q3
Objective The student will be able to:
Solving Systems of Equations
Warm-Up 1 Write the equation of a line in slope intercept form that has a slope of -3 and a y-intercept of 2. Write the equation of a line in slope intercept.
Sleeping and Happiness
Linear Models We will determine and use linear models, and use correlation coefficients.
Standard Form to Slope-Intercept Form.
The student will be able to:
Section 9-3   We already know how to calculate the correlation coefficient, r. The square of this coefficient is called the coefficient of determination.
Chapter 14 Multiple Regression
ALGEBRA I - REVIEW FOR TEST 2-1
Regression Part II.
Scatter Plots Learning Goals
Step 1: Put the equations in Standard Form. Standard Form: Ax + By = C
Graphing Data Section 1-3.
Presentation transcript:

Linear Regression

Objective Find the Line of Regression Use Line of Regression to Make Predictions

Relevance To be able to find an equation to best represent quantitative data with 2 variables and use it to make predictions.

Warm Up In many communities there is a strong positive correlation between the amount of ice cream sold in a given month and the number of drownings that occur in that month. Does this mean that ice cream causes drowning? If not, can you think of other alternatives for the strong association?

Warm Up #2…… Explain why one would expect to find a positive correlation between the number of fire engines that respond to a fire and the amount of damage done in the fire.

Regression Line…… If the value of the correlation coefficient is significant, the next step is to find the equation of the regression line. Regression Line – The data’s line of best fit which is determined by the slope and y-intercept.

Regression Analysis…… It finds the equation of the line that best describes the relationship between the 2 variables. Primary Purpose: To Make Predictions *This is a test question.

Prediction Models……

Remember Algebra?...... The slope intercept form of a line was y = mx + b where m is the slope and b is the y-intercept Slope: The change in y over the change in x. y-intercept: where the line crosses the y-axis.

Line of Best Fit…… The equation used to find the line of best fit is y = ax + b where “a” = slope and “b” = y-intercept

Computational Formulas……y = ax + b To find a: To find b:

Example 1…… Find the equation of the line of best fit. Predict the # of sales when 5 ads are sold. # of ads # of sales 3 7 4 6 2 5 10 8

Go by the formula……These are the lists you will need.

First…… Find the mean of x and the mean of y and write it down. Put x’s in L1 – stat calc one var stats L1 Put y’s in L2 – stat calc one var stats L2

Means of x and y……

Let’s fill in the lists…… L5 =L3 x L4 L6 = L3 squared x y x - xbar y - ybar (x-xbar)(y-ybar) (x - xbar) squared 3 7 -0.8 -0.2 0.16 0.64 4 6 0.2 -1.2 -0.24 0.04 2 5 -1.8 -2.2 3.96 3.24 10 2.2 2.8 6.16 4.84 8 0.8 10.2 8.8

Compute “a”……

Compute “b”……

Plug into y = ax + b…… Answer: y = 1.16x + 2.8

Predict …… Predict the number of sales when 5 ads are sold. Y = 1.16(5) + 2.8 = 8.6 = 9 sales

Example 2…… A. Find the equation of the line of best fit. B. Predict hours of exercise if the person is 35 yrs old. C. Predict the age if they exercise 9 hours per week. Age Exercise 18 10 26 5 32 2 38 3 52 1.5 59 1

Find the means…… X-Values: Y-Values:

The lists…… L1 L2 L3 = L1 - 37.5 L4 = L2 - 3.75 L5 =L3 x L4 L6 = L3 squared x y x - xbar y - ybar (x-xbar)(y-ybar) (x - xbar) squared 18 10 -19.5 6.25 -121.9 380.25 26 5 -11.5 1.25 -14.38 132.25 32 2 -5.5 -1.75 9.625 30.25 38 3 0.5 -0.75 -0.375 0.25 52 1.5 14.5 -2.25 -32.63 210.25 59 1 21.5 -2.75 -59.13 462.25 -218.75 1215.5

Compute “a” and “b”……

Equation: y = mx + b Plug into the formula for the equation of the trend line. Y = -.18x + 10.50

Predictions…… Find y when x = 35. Y = -.18(35) + 10.50 Y = 4.2 hours Find x when y = 9. 9 = -.18x + 10.50 9-10.50 = -.18x -1.5 = -.18x X = 8.3 X = 8 years