Stastic Chapr 4
Stastic Chapr 4
• For instance, “ Would a student who scores highly in Mathematics also score
highly in Accounting?” or “ Can an athlete who runs fast also jumps further in
the long jump event?”
• Independent variable
• Dependent variable
EXAMPLES
Determine which variable is independent and dependent for the following
cases:
1. The price of fresh free-ranged chicken and the demand for it.
2. The concentration of Noni sp. (mengkudu) extract and the diameter of
zone of antimicrobial activity.
3. The proofing temperature and the rise in sweet bread dough.
4. The supply of nasi briyani and the demand for it.
5. The number of unemployed and the volume of exports.
SCATTER DIAGRAM
• To determine if a relationship between 2 variables (bivariates), a graph can
be plotted by assigning the independent variable to x-axis and dependent
variable to y-axis.
• Data for the two variables are regarded as the x and y coordinates.
• If r values are close to +1.00 or -1.00, the two show strong +ve correlation and
strong –ve correlation.
• If r = 0, no correlation.
RULE OF THUMB GUIDE TO DESCRIBE THE
STRENGTH OF CORRELATION COEEFICIENT
where:
n = the number of pairs of data
Σ = the sum of the item selected
Σx = denotes teh sum of all x−values
Σy = denotes teh sum of all y−values
Σ𝑥2 = denotes the sum of all 𝑥2 –values therefore each x value should be squared and then added together
Σ𝑦2 = denotes the sum of all y2 –values therefore each x value should be squared and then added together
Σ𝑥 2 = indicates that the x values should be added up and the total squared
Σ𝑦2 = indicates that the y values should be added up and the total squared
Σ xy = indicates that each x-value should first be multiplied by its corresponding y-values before being added together
EXAMPLE
1. Using the following data set, find the value of the Pearson product-moment
correlation coefficient, r. comment on the value obtained.
x 1 2 4 5 8
y 8 7 6 3 1
• Solution:
calculate the quantities for n,Σ x, Σ y, Σ xy, Σ 𝑥2and Σ𝑦2
2. Calculate the Pearson product-moment correlation coefficient for the
Mathematics scores and the Food Chemical Engineering scores of the 10
students.
Students A B C D E F G H I J
Course Scores
Mathematics 20 25 37 43 45 56 70 75 80 90
Food
Chemical 15 20 30 35 30 43 50 60 70 78
Engineering
3. 14 different second year medical students took blood pressure
measurements of the same patient and the results are shown below. Is
there a correlation by the systolic and diastolic values?
Systolic 138 130 135 140 120 125 120 130 130 144 143 140 130 150
Diastolic 82 91 100 100 80 90 780 80 80 98 105 85 70 100
SPEARMAN CORRELATION
COEFFICIENT
6 Σ𝑑2
ρs = 1 -
𝑛 (𝑛2 −1)
where:
n = number of data
d = difference in rank order between two variables (x and y)