LoslegenKostenlos loslegen

Predicting test scores

With the relationship between the hours of study and the scores that students got on a given test, you already got the parameters of a linear model, slope and intercept. With those parameters, let's predict the test score for a student who studies for 10 hours.

For this exercise, the linregress() function has been imported for you from scipy.stats.

Diese Übung ist Teil des Kurses

Foundations of Probability in Python

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Get the predicted test score for given hours of study
score = slope*____ + ____
print('score:', ____)
Code bearbeiten und ausführen