Presentation is loading. Please wait.

Presentation is loading. Please wait.

Correlation and Regression Paired Data Is there a relationship? Do the numbers appear to increase or decrease together? Does one set increase as the other.

Similar presentations


Presentation on theme: "Correlation and Regression Paired Data Is there a relationship? Do the numbers appear to increase or decrease together? Does one set increase as the other."— Presentation transcript:

1 Correlation and Regression Paired Data Is there a relationship? Do the numbers appear to increase or decrease together? Does one set increase as the other decreases? How consistent is the pattern? If so can we… Quantify it? Model it with an equation? Use the equation for prediction? 0.27 2 1.41 3 2.19 3 2.83 6 2.19 4 1.81 2 0.85 1 3.05 5 x Plastic (lb) y Household

2 The Linear Correlation Coefficient measures strength and direction of the linear relationship between paired x and y values in a sample. ρ (rho) is the population’s linear correlation coefficient. r is the sample’s linear correlation coefficient Linear Correlation Coefficient 1 0 no correlation negativepositive

3 Example/Homework Estimate r for the following relationships 1.Household size and amount of trash 2.Car weight and gas mileage 3.Car length and braking distance 4.Height and shoe size 5.Facebook friends and time spent on line 6.Car cost and number of cup holders 7.Time watching television and SAT scores 8.Outside temperature and student absences 9.Number of pages for the term paper and its grade 10.Number of accidents and car insurance premiums

4 Calculation The values of r is not affected by the units of measurements or the assignment of x and y. Round to three decimal places The sample of paired data (x,y) is a random sample. The pairs of (x,y) data have a bivariate normal distribution. 1.For every x, the paired y values are normally distributed 2.For every y, the paired x values are normally distributed n  xy - (  x)(  y) n(  x 2 ) - (  x) 2 n(  y 2 ) - (  y) 2 r =

5 Calculating r XYXYX2X2 Y2Y2 20.27 31.41 32.19 62.83 21.81 42.19 10.85 53.05

6 Calculating r Excel The correl function Calculator Data into two lists STAT->TEST>E: LinRegTTest Enter two lists Highlight CALCULATE, Select Enter Find r (and t and p) BudgetGross 18.581.8 7275 0.2512 5568.75 10138.3 7019.8 1772 8107.9

7 Formal Hypothesis Test Test whether the linear correlation is significant Hypothesis H 0 : ρ = 0 (no significant linear correlation) H 1 : ρ   0 (significant linear correlation) Two-tailed test Still need a significance level Two methods for calculating the test statistic and critical value

8 1 - r 2 n - 2 r t = Test Statistic and Critical Value Test statistic: Critical values: –T-table –Two-tailed alpha heading –Degrees of freedom = n - 2

9 Test Statistic and Critical Value Test statistic: r Critical value Use to Table A-5 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 25 30 35 40 45 50 60 70 80 90 100 n.999.959.917.875.834.798.765.735.708.684.661.641.623.606.590.575.561.505.463.430.402.378.361.330.305.286.269.256.950.878.811.754.707.666.632.602.576.553.532.514.497.482.468.456.444.396.361.335.312.294.279.254.236.220.207.196   =.05   =.01

10 For Example Is there a correlation between engine size and mileage? If so, is it significant? r = SizeMileage 2.223 2 319 2.323 4.617 2.520 417 2.422

11 Common Errors Involving Correlation 1.Causation: It is wrong to conclude that correlation implies causality. 1.If strongly correlated, we can not always assume “x causes y” 1.y might cause x 2.The both might be caused by z 2.Averages: Averages suppress individual variation and may inflate the correlation coefficient. 3.There may be some relationship between x and y even when there is no significant linear correlation.

12 Homework For each of the following pairs of data find the linear correlation coefficient and determine if the correlation is significant. Math Critical Reading 720690 720590 690500 680490 550470 480560 664654 750710 650680 560610 Length Braking Distance 194131 183136 194129 191127 198146 196146 200155 188139 197133 200131 191131

13 Homework For each of the following pairs of data find the linear correlation coefficient and determine if the correlation is significant. depth (ft) Velocity (ft/sec) 0.71.55 2.01.11 2.61.42 3.31.39 4.61.39 5.91.14 7.30.91 8.60.59 9.90.59 10.60.41 11.20.22 Altitude (km)Temp (C) 0.015.0 0.511.8 1.08.5 1.55.3 2.0 2.5-1.2 3.0-4.5 3.5-7.7 4.0-11.0 4.5-14.2 5.0-17.5


Download ppt "Correlation and Regression Paired Data Is there a relationship? Do the numbers appear to increase or decrease together? Does one set increase as the other."

Similar presentations


Ads by Google