1. Home
  2. Explore
  3. Mathematics
  4. Regression Analysis Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Regression Analysis Overview

  • 29Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Linear Regression Fundamentals
In regression analysis, the variable we want to predict is called the
variable.

29 questions

  1. 1
    In regression analysis, the variable we want to predict is called the
    _____
    variable.
    Hint

    Think about which variable depends on the others.

    Answer

    dependent

  2. 2
    A linear regression model with one independent variable is represented by the equation $y =
    _____
    • c$.
    Hint

    The slope multiplied by the independent variable.

    Answer

    mxmxmx

  3. 3
    The difference between the observed value and the predicted value in regression is called the
    _____
    .
    Hint

    It's the error term for each data point.

    Answer

    residual

  4. 4
    The method of finding the best fit line by minimizing the sum of squared residuals is known as
    _____
    .
    Hint

    It's the standard estimation method for linear regression.

    Answer

    Ordinary Least Squares (OLS)

  5. 5
    In multiple linear regression, the model equation includes
    _____
    independent variables.
    Hint

    It's the opposite of simple linear regression.

    Answer

    multiple

  6. 6
    The coefficient of determination, R2R^2R2, measures the proportion of
    _____
    in the dependent variable explained by the independent variables.
    Hint

    It tells you how much of the variability is captured by the model.

    Answer

    variance

  7. 7
    The metric that penalizes adding useless variables to a regression model is called
    _____
    .
    Hint

    It's a modified version of R2R^2R2 that accounts for the number of predictors.

    Answer

    adjusted R2R^2R2

  8. 8
    The root mean square error (RMSE) is calculated as the square root of the
    _____
    of the squared residuals.
    Hint

    It's an average of the squared errors, then square-rooted.

    Answer

    mean

  9. 9
    The correlation coefficient rrr between two variables indicates the strength and direction of a
    _____
    relationship.
    Hint

    It measures how closely the points follow a straight line.

    Answer

    linear

  10. 10
    In linear regression, the assumption of homoscedasticity means that the residuals have
    _____
    variance across all levels of the independent variable.
    Hint

    Think 'same spread' for all predicted values.

    Answer

    constant

  11. 11
    The problem of high correlation among independent variables in regression is called
    _____
    .
    Hint

    It occurs when predictors are not truly independent.

    Answer

    multicollinearity

  12. 12
    To check for linearity in regression, you can create a scatter plot of the residuals versus the
    _____
    .
    Hint

    You plot errors against predictions to see patterns.

    Answer

    fitted values

  13. 13
    In logistic regression, the sigmoid function maps any real-valued number to a probability between
    _____
    and 1.
    Hint

    It's a range from impossible to certain.

    Answer

    0

  14. 14
    The cost function used in logistic regression is called
    _____
    loss, which penalizes wrong predictions heavily.
    Hint

    It's based on the logarithm of the predicted probabilities.

    Answer

    log

  15. 15
    In a confusion matrix for binary classification, the number of actual positive cases correctly predicted is called
    _____
    .
    Hint

    It's the count of correctly predicted positive instances.

    Answer

    true positives

  16. 16
    The recall for the positive class is calculated as true positives divided by the sum of true positives and
    _____
    .
    Hint

    It's the proportion of actual positives that were correctly identified.

    Answer

    false negatives

  17. 17
    To handle missing values in a numeric column, a common strategy is to replace them with the
    _____
    of that column.
    Hint

    It's a measure of central tendency that is robust to outliers.

    Answer

    median

  18. 18
    Before training a regression model, the data should be split into a training set and a
    _____
    set.
    Hint

    This set is used to evaluate model performance on unseen data.

    Answer

    test

  19. 19
    To predict values on the test set using a fitted regression model in sklearn, you call the `
    _____
    ` method.
    Hint

    It's the same method used for both regression and classification models in sklearn.

    Answer

    predict

  20. 20
    When encoding a categorical variable with no natural order, the technique of
    _____
    encoding should be used.
    Hint

    It creates binary columns for each category.

    Answer

    one-hot

  21. 21
    The score method in sklearn linear regression returns the
    _____
    of the model on given data.
    Hint

    It's the coefficient of determination.

    Answer

    R2R^2R2

  22. 22
    In logistic regression, the default decision threshold for classifying a positive class is a probability of
    _____
    .
    Hint

    It's the midpoint of the probability range.

    Answer

    0.5

  23. 23
    Gradient descent is an optimization algorithm used to find the
    _____
    of the cost function in regression.
    Hint

    The algorithm iteratively moves towards the lowest error.

    Answer

    minimum

  24. 24
    The assumption of independence of errors means that residuals should not be
    _____
    with each other.
    Hint

    Errors from one observation should not predict errors from another.

    Answer

    correlated

  25. 25
    If the relationship between the independent and dependent variable is not linear, using linear regression may lead to poor
    _____
    .
    Hint

    The model will not fit well.

    Answer

    performance

  26. 26
    The formula for the sigmoid function is $\sigma(z) = \frac{1}{1 + e^{
    _____
    }}$.
    Hint

    The exponent is negative z.

    Answer

    −z-z−z

  27. 27
    A high correlation between independent variables can be detected by examining the
    _____
    matrix.
    Hint

    It shows pairwise correlation coefficients.

    Answer

    correlation

  28. 28
    In sklearn, the fit method of a regression model takes
    _____
    arguments: the features and the target.
    Hint

    It expects X and y.

    Answer

    two

  29. 29
    The sum of squared errors (SSE) is also known as the
    _____
    sum of squares.
    Hint

    It's the unexplained variation.

    Answer

    residual

1 of 29
Question 1 of 29

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent