Learning Goal: I’m working on a computer science writing question and need an explanation and answer to help me learn.
Machine Learning. Use the code located at https://repl.it/@jlocklair/CSC150ML to answer the following questions:
(you may need to craete a free account in order to view/access this code)
- The code uses linear regression to predict a student’s test score when given the number of hours they studied. What is the predicted test score for a student who studies for 2 hours? 4 hours? 8 hours?
- Look at student_scores.csv and find a study time that exists in the data set (first column). When you enter that score into the algorithm, does the prediction exactly match the recorded test score? Explain.
- Edit the data in student_scores.csv to create several “outliers” (students who either studied a short time and got high scores, or students who studied a long time and got low scores). How does this affect the accuracy of the model? Explain.