Needs random tests.
The description did not mention that subjects with 0 hours of study should not included in the result.
Linear regression is a duplicate, e.g https://www.codewars.com/kata/543346bb913a6589fb000744
##Hint Looking up the formulas for linear regression might help to forecast the revenues.
Different estimators will give different forecasts. There is no single correct answer for "forecasting".
If you just want us to implement linear regression, then explicitly tell us, and test for this. Don't make everyone guess.
Sample tests has syntax error.
This comment is hidden because it contains spoiler information about the solution
The problem does not define what to do in the case of a tie. The random test case can sometimes fail because of this.
Loading collection data...
Needs random tests.
The description did not mention that subjects with 0 hours of study should not included in the result.
Needs random tests.
Linear regression is a duplicate, e.g https://www.codewars.com/kata/543346bb913a6589fb000744
Different estimators will give different forecasts. There is no single correct answer for "forecasting".
If you just want us to implement linear regression, then explicitly tell us, and test for this. Don't make everyone guess.
Sample tests has syntax error.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The problem does not define what to do in the case of a tie. The random test case can sometimes fail because of this.