Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What is the primary goal of Simple Linear Regression?
Not quite. Try another option.
Answer: To find the relationship between two continuous variables using a straight line
Simple Linear Regression aims to model the relationship between a single independent variable and a dependent variable by fitting a linear equation to observed data.
Question 2 of 50
In the linear regression equation Y = mx + c, what does 'c' represent?
Not quite. Try another option.
Answer: The y-intercept
In the equation Y = mx + c, 'c' is the y-intercept, which represents the value of Y when x is 0.
Question 3 of 50
Which method is commonly used to estimate the coefficients in linear regression?
Not quite. Try another option.
Answer: Ordinary Least Squares (OLS)
Ordinary Least Squares (OLS) is the most common method used to estimate the parameters of a linear regression model by minimizing the sum of the squares of the differences between observed and predicted values.
Question 4 of 50
What is a 'residual' in the context of regression?
Not quite. Try another option.
Answer: The difference between the observed value and the predicted value
A residual is the vertical distance between a data point and the regression line, calculated as (Actual Value - Predicted Value).
Question 5 of 50
Which of the following values indicates a perfect negative correlation?
Not quite. Try another option.
Answer: -1
A Pearson correlation coefficient of -1 indicates a perfect negative linear relationship between two variables.
Question 6 of 50
Multiple Linear Regression differs from Simple Linear Regression because it involves:
Not quite. Try another option.
Answer: Multiple independent variables
Multiple Linear Regression models the relationship between two or more independent variables (features) and a single dependent variable.
Question 7 of 50
In a regression model, if the R-squared value is 0.85, what does this mean?
Not quite. Try another option.
Answer: 85% of the variance in the dependent variable is explained by the independent variables
R-squared represents the proportion of the variance for a dependent variable that's explained by an independent variable or variables in a regression model.
Question 8 of 50
Which evaluation metric is calculated by taking the average of the squared differences between predicted and actual values?
Not quite. Try another option.
Answer: MSE
Mean Squared Error (MSE) measures the average of the squares of the errors—that is, the average squared difference between the estimated values and the actual value.
Question 9 of 50
Which regression algorithm is specifically designed to predict the probability of a categorical outcome (e.g., Yes/No)?
Not quite. Try another option.
Answer: Logistic Regression
Logistic Regression is used for binary classification problems to predict the probability of an instance belonging to a specific class.
Question 10 of 50
What function is used in Logistic Regression to map predicted values to probabilities between 0 and 1?
Not quite. Try another option.
Answer: Sigmoid (Logistic) function
The Sigmoid function maps any real-valued number into a value between 0 and 1, making it suitable for probability estimation in Logistic Regression.
Question 11 of 50
Polynomial Regression is best used when:
Not quite. Try another option.
Answer: The relationship between variables is non-linear
Polynomial Regression models a non-linear relationship between the independent and dependent variables by adding powers of the independent variable.
Question 12 of 50
What is a potential risk of using a high-degree polynomial in Polynomial Regression?
Not quite. Try another option.
Answer: Overfitting
Using a high-degree polynomial allows the model to fit the training data very closely, often capturing noise and fluctuations, leading to overfitting and poor generalization to new data.
Question 13 of 50
Root Mean Squared Error (RMSE) is preferred over MSE when:
Not quite. Try another option.
Answer: You want the error metric to be in the same units as the target variable
RMSE is the square root of MSE, which brings the error metric back to the original units of the target variable, making it more interpretable.
Question 14 of 50
Which metric is less sensitive to outliers?
Not quite. Try another option.
Answer: MAE
Mean Absolute Error (MAE) takes the absolute difference without squaring, meaning large errors (outliers) do not contribute disproportionately to the total error compared to MSE or RMSE.
Question 15 of 50
In OLS estimation, the assumption of 'Homoscedasticity' implies that:
Not quite. Try another option.
Answer: The residuals have constant variance across all levels of the independent variable
Homoscedasticity means that the spread (variance) of the residuals is consistent for all predicted values. If the spread changes (e.g., cone shape), it is Heteroscedasticity.
Question 16 of 50
Multicollinearity in Multiple Linear Regression refers to:
Not quite. Try another option.
Answer: A high correlation between two or more independent variables
Multicollinearity occurs when independent variables in a regression model are highly correlated with each other, making it difficult to isolate the individual effect of each variable.
Question 17 of 50
The range of the R-squared (R²) score is typically:
Not quite. Try another option.
Answer: 0 to 1
R-squared typically ranges from 0 to 1, where 1 indicates a perfect fit. However, it can be negative for arbitrarily poor models that perform worse than a horizontal mean line.
Question 18 of 50
In the equation Y = b0 + b1x1 + b2x2 + ... + bn*xn, what are b1, b2, ... bn called?
Not quite. Try another option.
Answer: Regression coefficients
These are the regression coefficients (or weights) that represent the change in the dependent variable for a one-unit change in the respective independent variable.
Question 19 of 50
Which of the following is NOT an assumption of Linear Regression?
Not quite. Try another option.
Answer: Multicollinearity usually present
Linear Regression assumes little to no multicollinearity. The presence of significant multicollinearity is a violation of assumptions.
Question 20 of 50
What is the primary advantage of Adjusted R-squared over R-squared?
Not quite. Try another option.
Answer: It penalizes the addition of irrelevant independent variables
Regular R-squared never decreases when new variables are added, even if they are useless. Adjusted R-squared accounts for the number of predictors and decreases if a new term improves the model less than expected by chance.
Question 21 of 50
In Logistic Regression, the 'Logit' is defined as:
Not quite. Try another option.
Answer: The natural logarithm of the odds ratio
The Logit function is the log-odds, defined as log(p / (1-p)), which transforms the probability to a value ranging from negative to positive infinity, suitable for linear modeling.
Question 22 of 50
If the Pearson correlation coefficient between X and Y is 0, it implies:
Not quite. Try another option.
Answer: There is no linear relationship between X and Y
A correlation of 0 indicates no linear relationship, though a non-linear relationship could still exist.
Question 23 of 50
Which cost function is primarily used for Logistic Regression?
Not quite. Try another option.
Answer: Log Loss (Cross-Entropy)
Log Loss (or Binary Cross-Entropy) is the standard cost function for Logistic Regression because using MSE would result in a non-convex function that is hard to optimize.
Question 24 of 50
When evaluating a regression model, a lower MAE indicates:
Not quite. Try another option.
Answer: Better performance
MAE measures the average magnitude of errors. A value closer to 0 indicates the predictions are closer to the actual values.
Question 25 of 50
To handle categorical independent variables in regression, one should usually:
Not quite. Try another option.
Answer: Convert them using One-Hot Encoding (Dummy variables)
Regression models require numerical input. Categorical variables are converted into dummy variables (0s and 1s) to be processed.
Question 26 of 50
The 'Dummy Variable Trap' occurs when:
Not quite. Try another option.
Answer: One dummy variable can be predicted perfectly from the others (perfect multicollinearity)
This happens if you include a dummy variable for every category. The sum of all dummy variables equals 1 (the intercept term), causing perfect multicollinearity. One category should be dropped to avoid this.
Question 27 of 50
Which of the following plots is best for visualizing a Simple Linear Regression?
Not quite. Try another option.
Answer: Scatter Plot with a line of best fit
A scatter plot displays the relationship between two continuous variables, and the line of best fit visualizes the regression model.
Question 28 of 50
If a polynomial regression model has degree 1, it behaves like:
Not quite. Try another option.
Answer: A Simple Linear Regression
A polynomial of degree 1 is simply y = b0 + b1*x, which is the equation for a straight line (Simple Linear Regression).
Question 29 of 50
In the context of MSE, what is the effect of squaring the errors?
Not quite. Try another option.
Answer: It penalizes larger errors more severely than smaller errors
Squaring the difference ensures that all errors are positive and that larger errors contribute disproportionately more to the total score, forcing the model to minimize large deviations.
Question 30 of 50
Which algorithm minimizes the sum of squared residuals?
Not quite. Try another option.
Answer: Ordinary Least Squares
The fundamental mathematical principle behind standard linear regression is OLS, which explicitly minimizes the sum of squared residuals.
Question 31 of 50
What is the typical threshold used in Logistic Regression to classify a probability as '1' (or Positive)?
Not quite. Try another option.
Answer: 0.5
While adjustable, the standard default threshold is 0.5. Probabilities >= 0.5 are classified as positive (1), and < 0.5 as negative (0).
Question 32 of 50
Predicting the price of a house based on size, location, and age is a problem of:
Not quite. Try another option.
Answer: Regression
Predicting a continuous numerical value (price) is a Regression task.
Question 33 of 50
Predicting whether an email is 'Spam' or 'Not Spam' is a problem of:
Predicting a categorical outcome (binary in this case) is a classification task, for which Logistic Regression is suitable.
Question 34 of 50
In the equation Y = b0 + b1*X + e, what does 'e' represent?
Not quite. Try another option.
Answer: The error term (noise)
The term 'e' (epsilon) represents the error term, accounting for the variance in Y that is not explained by the linear relationship with X.
Question 35 of 50
If the correlation coefficient (r) is 0.9, the Coefficient of Determination (R²) is:
Not quite. Try another option.
Answer: 0.81
In simple linear regression, R-squared is the square of the Pearson correlation coefficient ().
Question 36 of 50
Which of the following indicates the strongest relationship?
Not quite. Try another option.
Answer: Correlation = -0.8
The strength of a relationship is determined by the absolute value of the correlation. |-0.8| = 0.8, which is higher than 0.7 or 0.5.
Question 37 of 50
Why might one perform a log transformation on the dependent variable in regression?
Not quite. Try another option.
Answer: To make the distribution more normal or linearize a relationship
Log transformations are often used to handle skewed data or to transform a non-linear exponential relationship into a linear one.
Question 38 of 50
If a model has an RMSE of 10 and an MAE of 2, what does this suggest?
Not quite. Try another option.
Answer: There are likely large outliers in the errors
Because RMSE squares errors, it is much more sensitive to outliers than MAE. A large gap between MAE and RMSE suggests the presence of large error values (outliers).
Question 39 of 50
In polynomial regression, if the curve passes through every single data point perfectly, the model is likely:
Not quite. Try another option.
Answer: Overfitted
Fitting every point perfectly usually means the model has captured the noise rather than the underlying pattern, leading to overfitting.
Question 40 of 50
The decision boundary in Logistic Regression is:
Not quite. Try another option.
Answer: Linear (in the feature space)
Standard Logistic Regression creates a linear decision boundary that separates the classes in the feature space.
Question 41 of 50
What is the slope of the line y = 3x + 5?
Not quite. Try another option.
Answer: 3
In the slope-intercept form , is the slope. Here, .
Question 42 of 50
When comparing two regression models on the same dataset, the one with the ___ is generally preferred.
Not quite. Try another option.
Answer: Higher R-squared and Lower RMSE
A better model explains more variance (higher R²) and has smaller average errors (lower RMSE).
Question 43 of 50
Which technique helps checks for 'Linearity' in a regression model?
Not quite. Try another option.
Answer: Residuals vs Predicted Values plot
A plot of residuals versus predicted values should show a random scatter. If there is a pattern (like a curve), the linearity assumption is violated.
Question 44 of 50
The 'Bias-Variance Tradeoff' implies that:
Not quite. Try another option.
Answer: As we increase model complexity, bias decreases but variance increases
Simple models (high bias) miss patterns. Complex models (high variance) overfit. The goal is to find the sweet spot.
Question 45 of 50
Feature scaling (normalization/standardization) is particularly important for:
Not quite. Try another option.
Answer: Regression using Gradient Descent optimization
While OLS is scale-invariant analytically, optimization algorithms like Gradient Descent converge much faster when features are on a similar scale.
Question 46 of 50
If R-squared is 1.0:
Not quite. Try another option.
Answer: The model explains 100% of the variability in the data
An R-squared of 1.0 means the model perfectly fits the data, and the regression line passes through all observed points.
Question 47 of 50
Which of the following is a dependent variable in a study of how study time affects exam scores?
Not quite. Try another option.
Answer: Exam scores
The dependent variable is the outcome we are trying to predict. Here, exam scores depend on the study time.
Question 48 of 50
In the context of regression, 'extrapolation' refers to:
Not quite. Try another option.
Answer: Predicting values outside the range of the training data
Extrapolation involves making predictions for independent variable values that are outside the range of data used to train the model, which is risky.
Question 49 of 50
The correlation coefficient ranges between:
Not quite. Try another option.
Answer: -1 and 1
Pearson's correlation coefficient is always between -1 (perfect negative) and +1 (perfect positive).
Question 50 of 50
Which of the following is NOT a metric for Regression?
Not quite. Try another option.
Answer: Accuracy
Accuracy is a classification metric (percentage of correct classes). It does not apply to regression, where errors are continuous values.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of INT234 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of INT234 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.