Professional Documents
Culture Documents
Marte
BS Psychology 1A
ACTIVITY 7: REGRESSION
Problem. A dietetics student wants to look at the relationship between calcium intake and
knowledge about calcium in sports science students. Also, she wants to know if knowledge
about calcium can be used to predict calcium intake of the students. Table 1 shows the data
she collected.
Research question: How can knowledge about calcium predict calcium intake in sports science
students?
In this example there is a single predictor variable (knowledge about calcium) for one response
variable (calcium intake).
Solution:
1
𝑦̅ = ∑𝑛𝑖=1 𝑦𝑖 = 15,702 = 𝟕𝟖𝟓. 𝟏
𝑛 20
1
𝑥̅ = ∑𝑛𝑖=1 𝑥𝑖 = 592 = 𝟐𝟗. 𝟔
𝑛 20
𝑛 ∑𝑖𝑛=1 𝑥𝑖𝑦𝑖−∑𝑛𝑖=1𝑥𝑖 ∑𝑛 𝑖=1𝑦𝑖 20 (497,143)−(592)(15,702) 647,296
𝑏= 𝑛 ∑𝑖𝑛=1 𝑥𝑖2−(∑𝑛𝑖=1𝑥𝑖)2
= 20 (19,852)−(592)2
= 46,576
= 𝟏𝟑.
𝟗𝟎
𝛼 = 𝑌̅ − 𝑏𝑥̅ = 785.1 − (13.90)(29.6) = 373.66
The regression line is:
𝑦̂ = 𝛼 + 𝑏𝑋
𝒚̂ = 𝟑𝟕𝟑. 𝟔𝟔 + 𝟏𝟑. 𝟗𝟎𝑿
3. Find the point estimate of the Calcium Intake when the Knowledge on Calcium is 40.
𝑦̂ = 𝛼 + 𝑏𝑋
𝑦̂ = 373.66 + (13.90)(40)
𝒚̂ = 𝟗𝟐𝟗. 𝟔𝟔 𝒐𝒓 𝟗𝟑𝟎
1. 𝑯𝟎: 𝜷 = 𝟎 𝒗𝒔 𝑯𝟏: 𝜷 ≠ 𝟎
2. 𝛼 = 0.05
3. 𝑠𝑥√𝑛−1 (𝑏−𝛽0)
𝑡=
𝑆𝑒
where:
𝑛 ∑𝑛 𝑥𝑖2−(∑𝑛 𝑥 𝑖 )2 𝑛 ∑𝑛 𝑦𝑖2−(∑𝑛 𝑦𝑖)2 𝑛−1
𝑖=1 𝑖=1 𝑖=1 𝑖=1
𝑠𝑥 =
2
𝑛(𝑛−1) 𝑠𝑦 =
2
𝑛(𝑛−1) 𝑠 𝑒
2
= 𝑛−2 (𝑠𝑦2 − 𝑏2𝑠𝑥2
4. 𝑡 > 𝑡𝛼, 𝑛 − 2
𝑡 > 0.05, 18
𝑡 > 2.101
5. 𝑠𝑥2 = 𝑛 ∑𝑛 2 𝑛 2
𝑖=1 𝑥𝑖 −(∑ 𝑖=1 𝑥𝑖) 20 (19,852)−(592)2 46,576
𝑛(𝑛−1) = = 380
= 122.57
20(20−1)
𝑠𝑥 = √122.57= 11.07
𝑠 𝑦2 = 𝑛
𝑛 ∑𝑖=1 𝑦𝑖2−(∑𝑛 𝑖=1 𝑦𝑖)2 11,556,556
20 (12,905,468)−(15,702)2 = 30,411.99
𝑛(𝑛−1) = 20 (20−1) = 380
𝑛−1 20−1
𝑠2= (𝑠 2
− 𝑏2𝑠 2 = (30,411.99 − (13.90)2(122.57) = 7,104.14
𝑒 𝑛−2 𝑦 𝑥 20−2
𝑠𝑒 = √7,104.44= 84.29
𝑠𝑥√𝑛−1 (𝑏−𝛽0) 122.57√20−1(13.90−0)
𝑡= = = 𝟐. 𝟏𝟑4
𝑆𝑒 84.29
6. 𝑡 > 2.101
2.134 > 2.101, True, reject the null hypothesis
7. Therefore, 𝜷 ≠ 𝟎
Krisha Meah A. Marte
BS Psychology 1A
ACTIVITY 8: CORRELATION
1.) What is the relationship between the student’s GPA and Motivation? Compute r and
r2 and interpret the results.
Solution:
𝒓𝟐 = (𝟎. 𝟔𝟏)𝟐 = 𝟎. 𝟑𝟕 𝒐𝒓
𝟑𝟕%
Note:
The value of r indicates that Motivation and Student’s GPA has a moderate to good
relationship, in other words higher Motivation leads to higher Student GPA.
The value of r2 indicates that the value of Motivation could be determined by its linear
relationship with Student’s GPA, 37% of the time.
2.) Suppose we wish to test Ho:ρ = 0.70 against H1 :ρ ≠ 0.70 at 0.05 level of significance,
refer to the problem below.
5. 𝑍𝑟 = 1 1+𝑟
𝐼𝑛 ( )= 1
𝐼𝑛 1+0.61 1
𝐼𝑛 ( 1.61 ) = 0.71
2 1−𝑟
( 1−0.61 ) = 2 0.39
0 2
1 1+𝜌 1 1.70
𝑍𝜌 = 𝐼𝑛 ( )= 1
𝐼𝑛 1+0.70 𝐼𝑛 ( ) = 0.87
2 1−𝜌0
( 1−0.70 ) = 2 0.30
2
𝜎̂ 𝜌 1 1
= √𝑛−3 = √14−3 = 0.30
𝑧 = 𝑍𝑟 − 𝑍𝜌 0.71 − 0.87
= = -𝟎. 53
𝜎̂ 𝜌 0.30
7. Therefore, 𝝆 ≠ 𝟎. 𝟕𝟎