Recall & Review
beginner
What are polynomial features in data science?
Polynomial features are new features created by raising existing features to a power (like squared or cubed) or by multiplying features together. They help models learn more complex patterns.
Click to reveal answer
beginner
Why do we use polynomial features in machine learning?
We use polynomial features to allow simple models, like linear regression, to fit curved or more complex relationships between variables.
Click to reveal answer
intermediate
How does the degree parameter affect polynomial features?
The degree controls the highest power used. For example, degree 2 adds squared terms and interaction terms, while degree 3 adds cubes and more complex combinations.
Click to reveal answer
intermediate
What is an interaction term in polynomial features?
An interaction term is a feature made by multiplying two or more original features together, showing how they work together to affect the outcome.
Click to reveal answer
intermediate
What is a potential downside of using high-degree polynomial features?
Using very high-degree polynomial features can make the model too complex, causing it to fit noise instead of real patterns, which is called overfitting.
Click to reveal answer
What does a polynomial feature of degree 2 include?
✗ Incorrect
Degree 2 polynomial features include the original features, their squares, and products of pairs of features (interaction terms).
Why might adding polynomial features improve a linear regression model?
✗ Incorrect
Polynomial features let the model learn curved relationships, not just straight lines.
What is an interaction term in polynomial features?
✗ Incorrect
Interaction terms are products of features, showing combined effects.
What risk increases when using very high-degree polynomial features?
✗ Incorrect
High-degree polynomials can make the model too complex, fitting noise instead of true patterns.
Which Python library provides a tool to create polynomial features easily?
✗ Incorrect
scikit-learn has a PolynomialFeatures class to generate polynomial features.
Explain in your own words what polynomial features are and why they are useful.
Think about how simple features can be combined or raised to powers to help models learn curves.
You got /3 concepts.
Describe the potential risks of using high-degree polynomial features in a model.
Consider what happens when a model becomes too flexible.
You got /4 concepts.