Day 5: Introduction to Linear Regression
Objective
In this challenge, we practice using linear regression techniques. Check out the Resources tab to learn more!
Task
You are given the Math aptitude test () scores for a set of students, as well as their respective scores for a Statistics course (). The students enrolled in Statistics immediately after taking the math aptitude test.
The scores (, ) for each student are:
If a student scored an on the Math aptitude test, what score would we expect her to achieve in Statistics? Determine the equation of the best-fit line using the least squares method, and then compute the value of when .
Output Format
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 denoting the score.
- 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:
60.5
xxxxxxxxxx
# Enter your code here. Read input from STDIN. Print output to STDOUT