Which task is a regression problem?
4 Regression Online Quiz Questions
Use this free practice quiz with 20 questions to review 4 Regression, test your knowledge, and prepare for your next test or exam.
Lasso regularization can shrink some coefficients to .
True or false: If a linear regression coefficient says predicted rent rises with floor area, that alone proves that increasing floor area causes rent to rise.
- A
True
- B
False
How does a mean baseline make predictions in a regression task?
- A
It predicts a separate average for every feature combination.
- B
It predicts the average target observed in training for every example.
- C
It divides examples into groups and predicts a value for each group.
For the model rent=700+18(area in m2), what is the predicted change in rent for each additional square meter? Enter the numerical coefficient only.
A regression model predicts 47 when the actual target is 52. Using residual =y−y^, the residual is .
What objective does ordinary least squares use to choose coefficients in linear regression?
- A
The largest absolute prediction error
- B
The number of input features
- C
The sum of squared differences between observed and predicted targets
Select all statements that correctly describe regularized linear regression.
- A
Ridge and Lasso add penalties on coefficient size.
- B
Regularization can help when features overlap in the information they provide.
- C
Lasso can shrink some coefficients to zero.
- D
Regularization guarantees better performance on every unseen example.
What is the term for the difference y−y^ between an actual target and a model’s prediction?
Select all statements that accurately describe ensemble regression methods.
- A
A random forest averages predictions from many trees.
- B
Gradient-boosted trees build trees in sequence to improve predictions.
- C
Ensemble regression can capture complex relationships.
- D
Both methods are always easier to interpret than a small linear model.
True or false: A linear model’s prediction far outside the range of its training data is necessarily realistic because the model has a linear equation.
- A
True
- B
False
Which approach provides evidence about how well a regression model generalizes to new examples?
- A
Evaluate the model only on the training examples and treat that score as proof of generalization.
- B
Compare its predictions with the training targets after fitting.
- C
Assess its performance on held-out data not used to train it.
A model was trained on homes with areas from 40m2 to 160m2, but it predicts rent for a 500m2 home. Explain why this prediction deserves caution and identify at least one check that could help assess its reliability.
A team wants to predict the number of minutes each delivery will take. Which statement best explains why this is a regression task?
- A
Predicting whether a delivery will be early, on time, or late
- B
Predicting how many minutes a delivery will take
- C
Assigning each delivery to a customer segment
- D
Identifying which delivery method was used
A team uses a mean baseline for a regression problem. What does this model predict for each example?
- A
The most frequent target from the training data
- B
The target value of the closest training example
- C
The average target in the training data
- D
A different randomly chosen target for each example
Which statement correctly distinguishes random forests from gradient-boosted trees in regression?
- A
Both methods use only one tree, but with different feature sets.
- B
Random forests average predictions from many trees; gradient boosting builds trees in sequence.
- C
Random forests build trees in sequence; gradient boosting averages independent tree predictions.
- D
Both methods predict the average target from the training data.
A regression model has many overlapping features. Which statement about Ridge and Lasso is supported by the material?
- A
They ensure every feature has a nonzero coefficient.
- B
They make a model predict the same value for every example.
- C
They penalize coefficient size, and Lasso can shrink some coefficients to zero.
- D
They remove the need to assess a model on unseen data.
True or false: A regression model's prediction is guaranteed to be reliable even when important input features are missing.
- A
True
- B
False
A simplified rent model is rent=700+18(area in m2). What rent does it predict for an area of 10m2?
What is the regression term for a prediction made far outside the range of the training data?
Related study packs and tools
- Flashcards
02 — Information and Representation
Learn how computers encode numbers, text, images, and sound as binary data, along with the limits and trade-offs of digital representation.
- Quiz
2 Digital Logic
A 14-question medium-difficulty quiz on Boolean algebra, logic gates, truth tables, and combinational circuits.
- Study guide
03 — Programming Fundamentals: Python Essentials
A progressive guide to Python programming fundamentals, connecting values, expressions, control flow, functions, input, output, and an integrated grade calculator.
- Flashcards
03 — Python Programming Fundamentals
A focused set of flashcards covering Python variables, data types, expressions, control flow, functions, input, output, and common programming practices.
- Study guide
3 CPU Architecture
Learn how registers, the ALU, datapath connections, and control logic work together to fetch and execute CPU instructions.
- Study guide
05 — Data Structures: Concepts, Operations, and Trade-Offs
A structured guide to the main data structures, their operations, efficiency trade-offs, representations, and practical selection criteria.
- Quiz
06 — Algorithms and Correctness
A medium-difficulty assessment of algorithm specifications, searching, sorting, iteration, recursion, invariants, termination, and correctness proofs. Questions progress from direct application to integrated reasoning.
- Study guide
07 — Efficiency and Computational Complexity
A progressive guide to measuring algorithmic time and memory requirements, interpreting asymptotic bounds, analyzing common code patterns, and balancing performance trade-offs.
- Study guide
07 Trees and Binary Search Trees
A progressive guide to tree structure, binary-tree traversals, binary search tree operations, deletion, balancing, and the way tree height determines time and space costs.
- Flashcards
08 — Discrete Mathematics for Computer Science
A focused review of propositional logic, quantifiers, sets, relations, functions, and foundational proof methods in discrete mathematics for computer science.
- Study guide
10 — Data, Systems, and Applications
A progression through how data is organized, searched, exposed through software interfaces, and managed through abstraction layers in modern computer systems.
- Study guide
11 — Computer Science in Society: Responsible Computing
A structured guide to designing, evaluating, and governing computing systems that are secure, private, correct, reliable, fair, accessible, and socially responsible.