Recall & Review
beginner
What is the main goal of linear regression?
The main goal of linear regression is to find the best straight line that predicts the value of one variable based on another variable.
Click to reveal answer
beginner
What do the slope and intercept represent in a linear regression line?
The slope shows how much the predicted value changes when the input changes by one unit. The intercept is the predicted value when the input is zero.
Click to reveal answer
beginner
Which Python library is commonly used to perform linear regression?
The scikit-learn library is commonly used to perform linear regression in Python.
Click to reveal answer
intermediate
What does the R-squared value tell us in linear regression?
R-squared tells us how well the line fits the data. It shows the percentage of variation in the output explained by the input.
Click to reveal answer
beginner
What is the formula of a simple linear regression line?
The formula is: y = b0 + b1 * x, where y is the predicted value, b0 is the intercept, b1 is the slope, and x is the input variable.
Click to reveal answer
What does the slope in a linear regression line represent?
✗ Incorrect
The slope shows how much the predicted value changes when the input changes by one unit.
Which Python library is commonly used for linear regression?
✗ Incorrect
Scikit-learn provides easy tools to perform linear regression.
What does an R-squared value close to 1 indicate?
✗ Incorrect
An R-squared close to 1 means the model explains most of the variation in the data.
In the formula y = b0 + b1 * x, what is b0?
✗ Incorrect
b0 is the intercept, the predicted value when x is zero.
What is the purpose of linear regression?
✗ Incorrect
Linear regression finds a line to predict one variable based on another.
Explain in your own words what linear regression does and why it is useful.
Think about how you might guess someone's height from their age.
You got /3 concepts.
Describe the meaning of slope and intercept in a linear regression line.
Imagine a hill: slope is steepness, intercept is where it starts.
You got /3 concepts.