1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Foundations of Probability in Python

Connected

अभ्यास

Fitting a model

A university has provided you with data that shows a relationship between the hours of study and the scores that the students get on a given test.

You have access to the data through the variables hours_of_study and scores. Use a linear model to learn from the data.

निर्देश

100 XP
  • Import the linregress() function from scipy.stats.
  • Fit a linear model using the provided data in the hours_of_study and scores variables.
  • Print the parameters.