In: Statistics and Probability
A company wants to study the relationship between an employee's length of employment (x) and their number of workdays absent (y). The company collected the following information on a random sample of seven employees.
# of days absent(x) |
2 |
3 |
3 |
5 |
7 |
7 |
8 |
# of years of employment (y) |
5 |
6 |
9 |
4 |
2 |
2 |
0 |
a. Calculate the correlation coefficient r between y and x and determine if the relationship is positive or negative.
b. Find the equation of the least squares regression line.
c. Predict the number of workdays absent for an employee who has been employed for 10 years.