Day 6: Correlation and Regression Lines #2
Objective
In this challenge, we practice calculating the slope of regression lines.
Task
There are series of data involving index numbers: for price index and for the commodity stock.
The mean and standard deviation of are and , respectively.
The mean and standard deviation of are and , respectively.
The correlation coefficient between the two series is .
With this data, obtain the slope of the regression line of on , correct to a scale of decimal places.
Output Format
Your answer should be a single floating point/decimal number, correct to a scale of decimal places. You can submit solutions in either of the following ways:
- Solve the problem manually and submit your result as Plain Text. In the text box below, enter a single floating point/decimal number.
- Submit an R or Python program, which uses the above parameters (hard-coded), then computes and prints the score.
Your answer should follow the format below, and must not contain any extra white space or newline characters:
1.14
xxxxxxxxxx
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
return 0;
}