Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1)...
-
Upload
savannah-callahan -
Category
Documents
-
view
219 -
download
2
Transcript of Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1)...
![Page 1: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/1.jpg)
![Page 2: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/2.jpg)
Sleeping and Happiness
• You are interested in the relationship between hours slept and happiness.
• 1) Make a scatter plot• 2) Guess the correlation• 3) Guess and draw the
location of the regression line
Hours slept
(X)
Happiness
(Y)
Pam 8 7
Jim 9 9
Dwight 5 4
Michael 6 8
Meredith 7 6
![Page 3: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/3.jpg)
0
2
4
6
8
10
12
2 4 6 8 10
Hours Slept
Hap
pine
ss ..
.. .
r = .76
![Page 4: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/4.jpg)
Remember this:Statistics Needed
• Need to find the best place to draw the regression line on a scatter plot
• Need to quantify the cluster of scores around this regression line (i.e., the correlation coefficient)
![Page 5: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/5.jpg)
Regression allows us to predict!
0
2
4
6
8
10
12
2 4 6 8 10
Hours Slept
Hap
pine
ss ..
.. .
![Page 6: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/6.jpg)
Straight Line
Y = mX + b
Where:
Y and X are variables representing scores
m = slope of the line (constant)
b = intercept of the line with the Y axis (constant)
![Page 7: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/7.jpg)
Excel Example
![Page 8: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/8.jpg)
That’s nice but. . . .
• How do you figure out the best values to use for m and b ?
• First lets move into the language of regression
![Page 9: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/9.jpg)
Straight Line
Y = mX + b
Where:
Y and X are variables representing scores
m = slope of the line (constant)
b = intercept of the line with the Y axis (constant)
![Page 10: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/10.jpg)
Regression Equation
Y = a + bX
Where:
Y = value predicted from a particular X value
a = point at which the regression line intersects the Y axis
b = slope of the regression line
X = X value for which you wish to predict a Y value
![Page 11: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/11.jpg)
Practice
• Y = -7 + 2X
• What is the slope and the Y-intercept?
• Determine the value of Y for each X:
• X = 1, X = 3, X = 5, X = 10
![Page 12: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/12.jpg)
Practice
• Y = -7 + 2X
• What is the slope and the Y-intercept?
• Determine the value of Y for each X:
• X = 1, X = 3, X = 5, X = 10
• Y = -5, Y = -1, Y = 3, Y = 13
![Page 13: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/13.jpg)
Finding a and b
• Uses the least squares method
• Minimizes Error
Error = Y - Y
(Y - Y)2 is minimized
![Page 14: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/14.jpg)
0
2
4
6
8
10
12
1 2 3 4 5
Talk
Smil
e
.
.. ..
![Page 15: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/15.jpg)
0
2
4
6
8
10
12
1 2 3 4 5
Talk
Smil
e
.
.. ..
Error = 1
Error = -1Error = .5
Error = -.5Error = 0
Error = Y - Y
(Y - Y)2 is minimized
![Page 16: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/16.jpg)
Finding a and b
• Ingredients
• r value between the two variables
• Sy and Sx
• Mean of Y and X
![Page 17: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/17.jpg)
b
b =
r = correlation between X and Y
SY = standard deviation of Y
SX = standard deviation of X
![Page 18: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/18.jpg)
a
a = Y - bX
Y = mean of the Y scores
b = regression coefficient computed previously
X = mean of the X scores
![Page 19: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/19.jpg)
Mean Y = 4.6; SY = 2.41 r = .88Mean X = 3.0; SX = 1.41
SmileY
TalkX
Jerry 9 5
Elan 2 1
George 5 3
Newman 4 4
Kramer 3 2
![Page 20: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/20.jpg)
0
2
4
6
8
10
12
1 2 3 4 5
Talk
Smil
e
.
.. ..
Mean Y = 4.6; SY = 2.41 r = .88Mean X = 3.0; SX = 1.41
![Page 21: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/21.jpg)
b =
Mean Y = 4.6; SY = 2.41 r = .88Mean X = 3.0; SX = 1.41
![Page 22: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/22.jpg)
b =2.41
1.41.881.50
Mean Y = 4.6; SY = 2.41 r = .88Mean X = 3.0; SX = 1.41
![Page 23: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/23.jpg)
a = Y - bX
Mean Y = 4.6; SY = 2.41 r = .88Mean X = 3.0; SX = 1.41 b = 1.5
![Page 24: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/24.jpg)
0.1 = 4.6 - (1.50)3.0
Mean Y = 4.6; SY = 2.41 r = .88Mean X = 3.0; SX = 1.41 b = 1.5
![Page 25: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/25.jpg)
Regression Equation
Y = a + bX
Y = 0.1 + (1.5)X
![Page 26: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/26.jpg)
0
2
4
6
8
10
12
1 2 3 4 5
Talk
Smil
eY = 0.1 + (1.5)X
.
.. ..
![Page 27: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/27.jpg)
0
2
4
6
8
10
12
1 2 3 4 5
Talk
Smil
eY = 0.1 + (1.5)XX = 1; Y = 1.6
.
.
.. ..
![Page 28: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/28.jpg)
0
2
4
6
8
10
12
1 2 3 4 5
Talk
Smil
eY = 0.1 + (1.5)XX = 5; Y = 7.60
.
.
.
.. ..
![Page 29: Sleeping and Happiness You are interested in the relationship between hours slept and happiness. 1) Make a scatter plot 2) Guess the correlation 3) Guess.](https://reader035.fdocuments.in/reader035/viewer/2022062511/551410bd550346dd488b506b/html5/thumbnails/29.jpg)
0
2
4
6
8
10
12
1 2 3 4 5
Talk
Smil
eY = 0.1 + (1.5)X
.
.
.
.. ..