The scores received in four exams in a math class are collected for 50 students. The following Python code is used to fit a simple linear regression model using data from the ExamScores.csv file. Which of the two variables, “Exam4” or “Exam2”, is the response variable? Which is the predictor variable? Select one. import pandas as pd import statsmodels.formula.api as smf scores = pd.read_csv('http://data-analytics.zybooks.com/ExamScores.csv') model = smf.ols('Exam4 ~ Exam2', scores).fit() Question 1 options: Exam2 and Exam4 are both response variables. Exam2 is the response variable and Exam4 is the predictor variable. Exam4 is the response variable and Exam2 is the predictor variable. Exam2 and Exam4 are both predictor variables.
The scores received in four exams in a math class are collected for 50 students. The following Python code is used to fit a simple linear regression model using data from the ExamScores.csv file. Which of the two variables, “Exam4” or “Exam2”, is the response variable? Which is the predictor variable? Select one.
import pandas as pd
import statsmodels.formula.api as smf
scores = pd.read_csv('http://data-analytics.zybooks.com/ExamScores.csv')
model = smf.ols('Exam4 ~ Exam2', scores).fit()
Question 1 options:
|
Exam2 and Exam4 are both response variables. |
|
Exam2 is the response variable and Exam4 is the predictor variable. |
|
Exam4 is the response variable and Exam2 is the predictor variable. |
|
Exam2 and Exam4 are both predictor variables. |
Trending now
This is a popular solution!
Step by step
Solved in 2 steps