Correlation.

Slides:



Advertisements
Similar presentations
Lesson 10: Linear Regression and Correlation
Advertisements

Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Warm up Use calculator to find r,, a, b. Chapter 8 LSRL-Least Squares Regression Line.
Correlation Correlation is the relationship between two quantitative variables. Correlation coefficient (r) measures the strength of the linear relationship.
CORRELATON & REGRESSION
Regression and Correlation
WFM 5201: Data Management and Statistical Analysis © Dr. Akm Saiful IslamDr. Akm Saiful Islam WFM 5201: Data Management and Statistical Analysis Akm Saiful.
Correlation and Regression Analysis
Linear Regression/Correlation
Linear Regression Analysis
Correlation & Regression
Correlation vs. Causation What is the difference?.
Linear Regression and Correlation
Linear Regression.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Simple Linear Regression Analysis Chapter 13.
Biostatistics Unit 9 – Regression and Correlation.
Jon Curwin and Roger Slater, QUANTITATIVE METHODS: A SHORT COURSE ISBN © Thomson Learning 2004 Jon Curwin and Roger Slater, QUANTITATIVE.
Chapter 6 & 7 Linear Regression & Correlation
Regression Analysis. Scatter plots Regression analysis requires interval and ratio-level data. To see if your data fits the models of regression, it is.
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 13-6 Regression and Correlation.
Section 5.2: Linear Regression: Fitting a Line to Bivariate Data.
Correlation Correlation is used to measure strength of the relationship between two variables.
Topic 10 - Linear Regression Least squares principle - pages 301 – – 309 Hypothesis tests/confidence intervals/prediction intervals for regression.
Correlation and Regression Basic Concepts. An Example We can hypothesize that the value of a house increases as its size increases. Said differently,
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Chapter 11 Correlation and Simple Linear Regression Statistics for Business (Econ) 1.
Correlation and Regression. Section 9.1  Correlation is a relationship between 2 variables.  Data is often represented by ordered pairs (x, y) and.
Examining Bivariate Data Unit 3 – Statistics. Some Vocabulary Response aka Dependent Variable –Measures an outcome of a study Explanatory aka Independent.
April 1 st, Bellringer-April 1 st, 2015 Video Link Worksheet Link
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,
Correlation and Regression: The Need to Knows Correlation is a statistical technique: tells you if scores on variable X are related to scores on variable.
Warm-Up Write the equation of each line. A B (1,2) and (-3, 7)
5.4 Line of Best Fit Given the following scatter plots, draw in your line of best fit and classify the type of relationship: Strong Positive Linear Strong.
CHAPTER 5 CORRELATION & LINEAR REGRESSION. GOAL : Understand and interpret the terms dependent variable and independent variable. Draw a scatter diagram.
2.5 Using Linear Models A scatter plot is a graph that relates two sets of data by plotting the data as ordered pairs. You can use a scatter plot to determine.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 3 Association: Contingency, Correlation, and Regression Section 3.3 Predicting the Outcome.
SWBAT: Calculate and interpret the equation of the least-squares regression line Do Now: If data set A of (x, y) data has correlation r = 0.65, and a second.
Linear Prediction Correlation can be used to make predictions – Values on X can be used to predict values on Y – Stronger relationships between X and Y.
.  Relationship between two sets of data  The word Correlation is made of Co- (meaning "together"), and Relation  Correlation is Positive when the.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Discovering Mathematics Week 9 – Unit 6 Graphs MU123 Dr. Hassan Sharafuddin.
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
Correlation and Regression. O UTLINE Introduction  10-1 Scatter plots.  10-2 Correlation.  10-3 Correlation Coefficient.  10-4 Regression.
Correlation and Regression Basic Concepts. An Example We can hypothesize that the value of a house increases as its size increases. Said differently,
Correlation & Linear Regression Using a TI-Nspire.
Correlation Measures the relative strength of the linear relationship between two variables Unit-less Ranges between –1 and 1 The closer to –1, the stronger.
Regression Analysis.
Lesson 4.5 Topic/ Objective: To use residuals to determine how well lines of fit model data. To use linear regression to find lines of best fit. To distinguish.
Correlation & Regression
Unit 4 LSRL.
LSRL.
Least Squares Regression Line.
Chapter 5 LSRL.
Chapter 4 Correlation.
SIMPLE LINEAR REGRESSION MODEL
Chapter 3.2 LSRL.
The Least-Squares Regression Line
CHAPTER 10 Correlation and Regression (Objectives)
Correlation and Regression
Correlation vs. Causation
Least Squares Regression Line LSRL Chapter 7-continued
Chapter 5 LSRL.
Chapter 5 LSRL.
Chapter 5 LSRL.
Correlation and Regression
y = mx + b Linear Regression line of best fit REMEMBER:
Algebra Review The equation of a straight line y = mx + b
Ch 9.
Warsaw Summer School 2017, OSU Study Abroad Program
Presentation transcript:

Correlation

What is correlation? Correlation is the measure of whether and how strongly pairs of variables are related.

Types of correlation Positive/negatives Strong /weak

Correlation coefficient r Correlation coefficient r is a number that indicates how well data fit a statistical model Ranges between –1 and 1 The closer to –1, the stronger the negative linear relationship The closer to 1, the stronger the positive linear relationship The closer to 0, the weaker any positive linear relationship

Correlation coefficient r 1 is a perfect positive correlation 0 is no correlation (the values don't seem linked at all) -1 is a perfect negative correlation

Correlation and causation Causation is a relationship that describes and analyses cause and effect Correlation is NOT causation

Examples Temperature & ice-cream sales Ice-cream sales & shark attack Runny nose & headache

How to calculate r Step 1: Find the mean of x, and the mean of y Step 2: Subtract the mean of x from every x value (call them "a"), do the same for y (call them "b") Step 3: Calculate: a × b, a2 and b2 for every value Step 4: Sum up a × b, sum up a2 and sum up b2 Step 5: Divide the sum of a × b by the square root of [(sum of a2) × (sum of b2)]

How to calculate r Formula for r

Sxx is the sum of all the squares of the differences between the xi and the mean, for all i from 1 to n. Syy is the sum of all the squares of the differences between the yi and the mean, for all i from 1 to n. Sxy is the product of the differences between the xi and the mean and the differences between the yi and the mean, for all I from 1 to n.

Example A local shop of milk shakes keeps a track of the amount of milk shakes they sell in accordance to the temperature on that day. Below are the figures of their sale and temperature for the last 12 days. Comment on the relationship.

Solution

Question Find the correlation coefficient of the following data.

Linear Regression In regression, one variable is considered independent (=predictor) variable (X) and the other the dependent (=outcome) variable Y. In statistics, linear regression is an approach for modeling the relationship between a scalar dependent variable y and one or more explanatory variables (or independent variable) denoted X. The case of one explanatory variable is called simple linear regression.

Linear Regression Remember this? Y=mX+B m B

What is a slope? A slope of 2 means that every 1-unit change in X yields a 2-unit change in Y.

Prediction If you know something about the x, based on the model, you can know something about y Extrapolation: Attempting to use a regression equation to predict values outside of the observed range

How to calculate linear regression

Exercise Find the linear regression of the following data.