DATA 303 Quiz 1

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/103

flashcard set

Earn XP

Description and Tags

G

Last updated 5:30 AM on 8/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

104 Terms

1
New cards
Statistical Learning
Using data to estimate relationships between variables and make predictions or understand those relationships.
2
New cards
Statistical Learning Goal
Estimate an unknown relationship between predictors X and a response Y.
3
New cards
Response Variable (Y)
The outcome or target variable that we want to predict or understand.
4
New cards
Predictor (X)
A variable or feature used to predict or explain the response variable Y.
5
New cards
Feature
Another term for a predictor variable.
6
New cards
Training Data
Data used to fit or train a statistical learning model.
7
New cards
Test Data
Data not used to train the model and used to evaluate how well it performs on new observations.
8
New cards
f(X)
The true but unknown relationship between the predictors X and response Y.
9
New cards
f̂(X)
An estimate of the true function f(X) obtained from the data.
10
New cards
Predicted Value (Ŷ)
The value predicted by the estimated function f̂(X).
11
New cards
Y = f(X) + ε
The basic statistical learning model, where Y is the response, f(X) is the underlying relationship, and ε is random noise.
12
New cards
ε (Epsilon)
The random error or noise term in the statistical learning model.
13
New cards
E[ε] = 0
The assumption that the error term has an average value of zero.
14
New cards
Reducible Error
Error caused by an imperfect estimate of the true relationship f(X); it can potentially be reduced by improving the model.
15
New cards
Irreducible Error
Random noise in the data that cannot be eliminated, even with a perfect estimate of f(X).
16
New cards
Prediction
Using a model to predict the response Y for new observations.
17
New cards
Inference
Using a model to understand the relationship between predictors X and the response Y.
18
New cards
Prediction vs Inference
Prediction focuses on accurately predicting Y, while inference focuses on understanding how X and Y are related.
19
New cards
Regression
A statistical learning problem where the response variable Y is quantitative/numerical.
20
New cards
Classification
A statistical learning problem where the response variable Y is qualitative/categorical.
21
New cards
Quantitative Variable
A numerical response variable, such as income, height, blood pressure, or house price.
22
New cards
Qualitative Variable
A categorical response variable, such as yes/no, disease/no disease, or different disease types.
23
New cards
Supervised Learning
Learning where the training data contains both predictors X and known response values Y.
24
New cards
Unsupervised Learning
Learning where predictors X are available but there is no response variable Y or labels.
25
New cards
Semi
Supervised Learning
26
New cards
Clustering
An unsupervised learning method that groups observations based on similarities in their predictors.
27
New cards
Parametric Model
A model that assumes a specific functional form for f(X) and estimates a fixed number of parameters.
28
New cards
Nonparametric Model
A model that does not assume a specific functional form for f(X) and can adapt to more complicated relationships.
29
New cards
Parameter
A fixed numerical quantity in a statistical model that must be estimated from the data.
30
New cards
Hyperparameter
A value chosen to control how a learning method operates rather than being estimated as a model parameter.
31
New cards
Linear Regression
A parametric method that assumes the response is a linear function of the predictors.
32
New cards
Linear Regression Equation
f(X) = β₀ + β₁X₁ + β₂X₂ + ... + βₚXₚ.
33
New cards
β₀
The intercept parameter in a linear regression model.
34
New cards
β₁, β₂, ..., βₚ
Coefficients representing the relationship between each predictor and the response.
35
New cards
Interpretability
How easily the relationship learned by a model can be understood or explained.
36
New cards
Flexibility
The ability of a statistical learning method to fit complicated or nonlinear relationships.
37
New cards
Flexibility vs Interpretability
As model flexibility generally increases, interpretability generally decreases.
38
New cards
Simple Model
A relatively inflexible model that is easier to interpret but may fail to capture complicated relationships.
39
New cards
Flexible Model
A model capable of capturing complicated relationships but generally more difficult to interpret.
40
New cards
Neural Network
A highly flexible statistical learning method that can model complex nonlinear relationships but is often difficult to interpret.
41
New cards
Logistic Regression
A parametric classification method that estimates probabilities for categorical outcomes.
42
New cards
K
Nearest Neighbors (KNN)
43
New cards
K in KNN
The number of nearest observations used to make a KNN prediction.
44
New cards
KNN Classification
Assigns a new observation to the class represented by the majority of its K nearest neighbors.
45
New cards
KNN Regression
Uses nearby observations to estimate a numerical response.
46
New cards
Small K
Produces a more flexible KNN model with lower bias and higher variance.
47
New cards
Large K
Produces a less flexible KNN model with higher bias and lower variance.
48
New cards
K = 1
An extremely flexible KNN model that can have very low training error but high variance and overfitting.
49
New cards
KNN Flexibility
KNN becomes more flexible as K decreases.
50
New cards
Euclidean Distance
A common distance measure used to determine which observations are nearest in KNN.
51
New cards
Euclidean Distance Formula
d = √[(x₁
52
New cards
Bias
Error caused by an overly simplistic model or incorrect assumptions about the relationship between X and Y.
53
New cards
Variance
The amount by which a model's estimated function would change if it were trained on a different data set.
54
New cards
High Bias
Usually associated with models that are too simple and underfit the data.
55
New cards
Low Bias
Usually associated with more flexible models that can better capture complicated relationships.
56
New cards
High Variance
Usually associated with highly flexible models that are sensitive to the particular training data.
57
New cards
Low Variance
Usually associated with less flexible models whose predictions are more stable across different training sets.
58
New cards
Bias
Variance Tradeoff
59
New cards
Bias
Variance Formula
60
New cards
Bias²
The squared bias component of prediction error caused by an incorrect or overly simple model.
61
New cards
Expected Test MSE
The expected prediction error on new observations, consisting of variance, squared bias, and irreducible error.
62
New cards
Overfitting
When a model fits the training data extremely closely, including random noise, and therefore performs poorly on new data.
63
New cards
Underfitting
When a model is too simple to capture the important relationship in the data.
64
New cards
Training Error
The error made by a model when predicting observations that were used to train the model.
65
New cards
Test Error
The error made when predicting observations that were not used to train the model.
66
New cards
Training Error vs Test Error
Training error generally decreases as flexibility increases, while test error can decrease and then increase because of overfitting.
67
New cards
U
Shaped Test Error
68
New cards
Mean Squared Error (MSE)
The average squared difference between observed and predicted numerical responses.
69
New cards
MSE Formula
MSE = (1/n) Σ(yᵢ
70
New cards
Regression Error Measure
Mean squared error is commonly used to evaluate regression predictions.
71
New cards
Classification Error Rate
The proportion of observations that are incorrectly classified.
72
New cards
Classification Accuracy
The proportion of observations that are correctly classified.
73
New cards
Accuracy Formula
Accuracy = Number of Correct Predictions / Total Number of Predictions.
74
New cards
Error Rate Formula
Error Rate = Number of Incorrect Predictions / Total Number of Predictions.
75
New cards
Lower MSE
Indicates better regression prediction performance, assuming the same data and evaluation setting.
76
New cards
Lower Error Rate
Indicates better classification performance.
77
New cards
Irreducible Error and Model Flexibility
Increasing model flexibility cannot eliminate irreducible error.
78
New cards
What Happens to Bias as Flexibility Increases?
Bias generally decreases.
79
New cards
What Happens to Variance as Flexibility Increases?
Variance generally increases.
80
New cards
What Happens to Training Error as Flexibility Increases?
Training error generally decreases.
81
New cards
What Happens to Test Error as Flexibility Increases?
Test error generally decreases at first but can increase after the model becomes too flexible.
82
New cards
Why Can a More Flexible Model Be Worse?
It can overfit the training data and have high variance, causing poor performance on new data.
83
New cards
Why Is a Low Training Error Not Enough?
A model can have low training error because it overfits the training data while still having high test error.
84
New cards
Why Is Irreducible Error Important?
It represents noise that cannot be removed and therefore places a lower limit on prediction error.
85
New cards
Parametric Advantage
Parametric models are generally simpler, easier to interpret, and require estimation of only a limited number of parameters.
86
New cards
Parametric Disadvantage
If the assumed functional form is wrong, the model may have high bias.
87
New cards
Nonparametric Advantage
Nonparametric models are flexible and can capture complicated relationships without assuming a particular functional form.
88
New cards
Nonparametric Disadvantage
They generally require more data and are less interpretable.
89
New cards
When Is a Simple Model Useful?
When interpretability is important or when the true relationship is relatively simple.
90
New cards
When Is a Flexible Model Useful?
When the true relationship is complicated or nonlinear and sufficient data are available.
91
New cards
Prediction Example
Predicting the price of a house from square footage, number of bathrooms, location, and other features.
92
New cards
Inference Example
Determining how house price changes as square footage increases while holding other predictors fixed.
93
New cards
Regression Example
Predicting someone's income or blood pressure.
94
New cards
Classification Example
Predicting whether someone has a disease or whether the stock market goes up or down.
95
New cards
Supervised Learning Example
Predicting house prices when each house in the training data has a known price.
96
New cards
Unsupervised Learning Example
Grouping observations into clusters when no response labels are provided.
97
New cards
Clustering vs Classification
Clustering is unsupervised and discovers groups without labels, while classification is supervised and predicts known classes.
98
New cards
Linear Regression vs KNN
Linear regression is parametric and relatively inflexible, while KNN is nonparametric and can be much more flexible.
99
New cards
Linear Regression vs Neural Network
Linear regression is highly interpretable and relatively inflexible, while neural networks are highly flexible and difficult to interpret.
100
New cards
KNN and Parameters
KNN does not estimate a fixed set of model parameters; K primarily acts as a hyperparameter controlling flexibility.