Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.
Ruby 3.0 should be enabled.
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.