Math 110: Linear Regression, k-NN Classification, and Probability Study Guide

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

1/42

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering linear regression properties, k-nearest neighbors classification, conditional probability, Bayes' rule, and bootstrap confidence intervals from Data 8 / Math 110 Chapters 15-18.

43 Terms

1
New cards

Regression Slope in Standard Units

Equal to the correlation coefficient rr, describing the predicted change in the dependent variable in standard units for a one standard unit increase in the independent variable.

2
New cards

Regression Slope in Original Units

The rate of change calculated as rร—SDย ofย ySDย ofย xr \times \frac{\text{SD of } y}{\text{SD of } x}, expressing the slope in the original measurement units of xx and yy.

3
New cards

Intercept of the Regression Line

The predicted value of yy when x=0x = 0, computed using the formula yห‰โˆ’slopeร—xห‰\bar{y} - \text{slope} \times \bar{x}.

4
New cards

Point of Averages

The coordinate point (xห‰,yห‰)(\bar{x}, \bar{y}) formed by the sample mean of xx and the sample mean of yy, through which the least squares regression line always passes.

5
New cards

Residual

The difference between an observed data value and its fitted regression value, calculated as actualย yโˆ’predictedย y\text{actual } y - \text{predicted } y.

6
New cards

Sum of Residuals

A fundamental property of least squares regression lines stating that the sum of all prediction residuals is always exactly equal to 00.

7
New cards

Correlation Between Residuals and Fitted Values

A mathematical property of least squares linear regression stating that the correlation between the residuals and the fitted (predicted) values is always 00.

8
New cards

Root Mean Squared Error (RMSE)

A metric evaluating regression model error, computed as mean(residuals2)\sqrt{\text{mean}(\text{residuals}^2)}, representing the typical distance between actual values and predicted values.

9
New cards

Regression to the Mean

The phenomenon where individuals with extreme values on one variable tend to have values closer to the average on another variable due to an imperfect linear correlation (โˆฃrโˆฃ<1|r| < 1).

10
New cards

k-Nearest Neighbors (k-NN) Classifier

A supervised classification method that classifies an unlabeled query point by finding the kk closest data points in the feature space and taking the most common label among them.

11
New cards

Euclidean Distance

The geometric straight-line distance between two points in a Cartesian coordinate space, given by (x1โˆ’x2)2+(y1โˆ’y2)2\sqrt{(x_1 - x_2)^2 + (y_1 - y_2)^2}.

12
New cards

Effect of k on Decision Boundaries

In k-NN, choosing a smaller value of kk creates a more complex boundary with higher variance, while choosing a larger value of kk produces a smoother boundary with higher bias.

13
New cards

Feature Standardization

The process of transforming features via valueโˆ’meanSD\frac{\text{value} - \text{mean}}{\text{SD}} to give them a mean of 00 and standard deviation of 11, preventing attributes with large numeric scales from dominating distance calculations in k-NN.

14
New cards

Curse of Dimensionality

A problem in distance-based algorithms like k-NN where increasing the number of feature dimensions causes all data points to become approximately equidistant from one another, degrading classification performance.

15
New cards

Overfitting in k-NN

A condition occurring when kk is set too small (e.g., k=1k = 1), where the classifier memorizes noise in the training set, yielding very high training accuracy but poor generalization to test data.

16
New cards

Conditional Probability

The probability of an event AA occurring given that event BB has already occurred, formulated as P(AโˆฃB)=P(Aย andย B)P(B)P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)}.

17
New cards

Bayes' Rule

A mathematical formula for updating the probability of a hypothesis given observed evidence, expressed as P(AโˆฃB)=P(BโˆฃA)ร—P(A)P(B)P(A \mid B) = \frac{P(B \mid A) \times P(A)}{P(B)}.

18
New cards

Law of Total Probability

A principle expressing the unconditional probability of an event BB across complementary events AA and AcA^c: P(B)=P(BโˆฃA)ร—P(A)+P(BโˆฃAc)ร—P(Ac)P(B) = P(B \mid A) \times P(A) + P(B \mid A^c) \times P(A^c).

19
New cards

Sensitivity

In diagnostic testing, the true positive rate representing the probability that a person who actually has the condition tests positive: P(PositiveโˆฃDisease)P(\text{Positive} \mid \text{Disease}).

20
New cards

Specificity

In diagnostic testing, the true negative rate representing the probability that a person without the condition tests negative: P(NegativeโˆฃNoย Disease)P(\text{Negative} \mid \text{No Disease}).

21
New cards

Base Rate (Prevalence)

The prior probability of a disease or condition existing in the general population (P(Disease)P(\text{Disease})) before diagnostic test results are known.

22
New cards

Bootstrap Resampling

A statistical simulation technique that draws repeated random samples with replacement from the original sample, matching the original sample size, to approximate the sampling distribution of an estimator.

23
New cards

Bootstrap Confidence Interval

An interval estimate constructed from empirical bootstrap statistics using specified percentiles: [percentile(ฮฑ/2),percentile(100โˆ’ฮฑ/2)][\text{percentile}(\alpha / 2), \text{percentile}(100 - \alpha / 2)].

24
New cards

Bootstrap Assumption

The fundamental premise that the original empirical sample is representative of the underlying population from which it was drawn.

25
New cards

Prediction Interval

An interval estimate for an individual response at a given value of xx, which accounts for individual observation variability and is always wider than a confidence interval for the mean response.

26
New cards

Confidence Interval for the Mean Response

An interval estimate for the average response of all individuals at a given value of xx, which is narrower than an individual prediction interval.

27
New cards

Coefficient of Determination (R2R^2)

The square of the correlation coefficient, measuring the proportion of total variance in the dependent variable explained by the linear regression model.

28
New cards

Cross-Validation

A model evaluation technique (such as 5-fold cross-validation) that partitions training data into subsets to test out-of-sample performance and select optimal hyperparameters such as kk.

29
New cards

Precision

A classification performance metric measuring the proportion of positive predictions that are truly correct.

30
New cards

What is correlation (r)?

The strength and direction of a linear relationship between two numerical variables.

31
New cards

What is positive correlation?

A relationship between two variables where an increase in one variable tends to result in an increase in the other variable, indicating a direct association.

32
New cards

What is negative correlation?

A relationship between two variables where an increase in one variable tends to result in a decrease in the other variable, indicating an inverse association.

33
New cards

What are standard units?

The number of standard deviations a value is above or below its mean.

34
New cards

What is linear regression?

A statistical method used to model the relationship between a dependent variable and one or more independent variables by fitting a linear equation to the observed data. Using a fitted straight line to predict a numerical response from an explanatory variable.

35
New cards

What is regression to the mean?

Predictions in standard units tend to be less extreme than inputs when |r| is below 1.

36
New cards

What is a residual?

Actual value โˆ’ predicted value.

37
New cards

What is the least squares method?

Finding the regression line that minimizes the sum of squared residuals.

38
New cards

What is RMSE?

Root mean squared error: a measure of prediction error in the original response units.

39
New cards

What is Rยฒ?

The proportion of response variation explained by the regression model.

40
New cards

What is bootstrapping?

Repeatedly resampling with replacement from the original sample.

41
New cards

What is a confidence interval?

An interval estimating an unknown population parameter at a specified confidence level.

42
New cards

What is a prediction interval?

An interval estimating a future individual observation rather than a population mean.

43
New cards

What is k-nearest neighbors (k-NN) classification?