Introduction to regression 3C. Least-squares regression.

Slides:



Advertisements
Similar presentations
AP Statistics.  Least Squares regression is a way of finding a line that summarizes the relationship between two variables.
Advertisements

Linear regression and correlation
Correlation and Regression
Simple Linear Regression and Correlation (Part II) By Asst. Prof. Dr. Min Aung.
Chapter 10 Regression. Defining Regression Simple linear regression features one independent variable and one dependent variable, as in correlation the.
LINEAR REGRESSION: What it Is and How it Works Overview What is Bivariate Linear Regression? The Regression Equation How It’s Based on r.
LINEAR REGRESSION: What it Is and How it Works. Overview What is Bivariate Linear Regression? The Regression Equation How It’s Based on r.
Bivariate Regression CJ 526 Statistical Analysis in Criminal Justice.
Simple Linear Regression Statistics 700 Week of November 27.
REGRESSION Predict future scores on Y based on measured scores on X Predictions are based on a correlation from a sample where both X and Y were measured.
Least Squares Regression
Haroon Alam, Mitchell Sanders, Chuck McAllister- Ashley, and Arjun Patel.
Regression and Correlation BUSA 2100, Sect , 3.5.
Regression, Residuals, and Coefficient of Determination Section 3.2.
Chapter 21 Correlation. Correlation A measure of the strength of a linear relationship Although there are at least 6 methods for measuring correlation,
Regression Basics For Business Analysis If you've ever wondered how two or more things relate to each other, or if you've ever had your boss ask you to.
Linear Regression.
Chapter 12 Correlation and Regression Part III: Additional Hypothesis Tests Renee R. Ha, Ph.D. James C. Ha, Ph.D Integrative Statistics for the Social.
Chapter 11 Simple Regression
1 Chapter 3: Examining Relationships 3.1Scatterplots 3.2Correlation 3.3Least-Squares Regression.
Chapter 6 & 7 Linear Regression & Correlation
12a. Regression Analysis, Part 1 CSCI N207 Data Analysis Using Spreadsheet Lingma Acheson Department of Computer and Information Science,
AP STATISTICS LESSON 3 – 3 LEAST – SQUARES REGRESSION.
© 2014 by Pearson Higher Education, Inc Upper Saddle River, New Jersey All Rights Reserved HLTH 300 Biostatistics for Public Health Practice, Raul.
1.6 Linear Regression & the Correlation Coefficient.
Section 5.2: Linear Regression: Fitting a Line to Bivariate Data.
Example 1: page 161 #5 Example 2: page 160 #1 Explanatory Variable - Response Variable - independent variable dependent variable.
Max temp v min temp. It can be seen from the scatterplot that there is a correlation between max temp and min temp. Generally, as min temp increases,
Equations of Linear Relationships
Linear Regression Handbook Chapter. Experimental Testing Data are collected, in scientific experiments, to test the relationship between various measurable.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 4 Section 2 – Slide 1 of 20 Chapter 4 Section 2 Least-Squares Regression.
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
Section 12.3 Regression Analysis HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant Systems, Inc. All.
Chapter 11 Correlation and Simple Linear Regression Statistics for Business (Econ) 1.
Scatter Diagrams Objective: Draw and interpret scatter diagrams. Distinguish between linear and nonlinear relations. Use a graphing utility to find the.
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,
Scatter Plots, Correlation and Linear Regression.
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,
Least Squares Regression.   If we have two variables X and Y, we often would like to model the relation as a line  Draw a line through the scatter.
Least Squares Regression Lines Text: Chapter 3.3 Unit 4: Notes page 58.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Section 1.6 Fitting Linear Functions to Data. Consider the set of points {(3,1), (4,3), (6,6), (8,12)} Plot these points on a graph –This is called a.
Introduction to Regression
Chapter 8 Linear Regression. Fat Versus Protein: An Example 30 items on the Burger King menu:
SOCW 671 #11 Correlation and Regression. Uses of Correlation To study the strength of a relationship To study the direction of a relationship Scattergrams.
Method 3: Least squares regression. Another method for finding the equation of a straight line which is fitted to data is known as the method of least-squares.
Chapters 8 Linear Regression. Correlation and Regression Correlation = linear relationship between two variables. Summarize relationship with line. Called.
Linear Graphs and Modelling Plotting straight line graphs Plotting linear graphs on the calculator Finding gradients of straight lines Equations of straight.
AP STATISTICS LESSON 3 – 3 (DAY 2) The role of r 2 in regression.
Use Linear Equations in Slope- Intercept Form Lesson 5.2 OBJ: to write an equation of a line using points on the line.
GOAL: I CAN USE TECHNOLOGY TO COMPUTE AND INTERPRET THE CORRELATION COEFFICIENT OF A LINEAR FIT. (S-ID.8) Data Analysis Correlation Coefficient.
PreCalculus 1-7 Linear Models. Our goal is to create a scatter plot to look for a mathematical correlation to this data.
Correlation & Linear Regression Using a TI-Nspire.
1 Objective Given two linearly correlated variables (x and y), find the linear function (equation) that best describes the trend. Section 10.3 Regression.
Calculating the correlation coefficient
Correlation & Regression
LEAST – SQUARES REGRESSION
Linear Regression Special Topics.
Creating Scatterplots
2. Find the equation of line of regression
Creating Scatterplots
LEAST – SQUARES REGRESSION
AP STATISTICS LESSON 3 – 3 (DAY 2)
Scatter Plots and Best-Fit Lines
Chapter 12 Linear Regression and Correlation
Least-Squares Regression
7.1 Draw Scatter Plots & Best-Fitting Lines
Performing a regression analysis
Regression and Correlation of Data
3.2 Correlation Pg
Presentation transcript:

Introduction to regression 3C. Least-squares regression

Another method for finding the equation of a straight line is the least-squares regression. Least-squares works by mathematically balancing the distance that points are away from the regression line. Easy to work out using CAS calculator.

Using CAS Input data into spreadsheet on Lists & Spreadsheet. Create scatterplot in Data & Statistics Then, – MENU – 4: Analyse – 6: Regression – 1: Show Linear (mx+b) – [or 2: Show Linear (a+bx)]

To find r and r 2 – Go back to Lists & Spreadsheet page – MENU – 4: Statistics – 1: Stat Calculations – 3: Linear Regression (mx+b) – Fill in the table with X List as the independent variable and Y List as the dependent variable.

Example Exercise 3C, Q.1 Then, you do Q.2 and Q.3

Calculating least-squares regression by hand If you are given a summary of the data rather than the data itself, you may need to calculate the least-squares regression by hand.

Summary data: – the mean of the independent variable – the mean of the dependent variable – s x the standard deviation of the independent variable – s y the standard deviation of the dependent variable – r Pearson’s product-moment correlation coefficient

The formulae The general form of the least-squares regression line is where: – The slope of the regression line is – The y-intercept of the regression line is

Example Ex 3C, Q.4 Then, you do – 5(a)(d), 7, 10, 11, 12, 13