Problem Set 2 Review

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

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:10 PM on 10/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

22 Terms

1
New cards

bias-variance decomposition



<p></p><p></p>
2
New cards

variance

  • how much f-hat moves across different training sets

  • how much f-hat would change if estimated from a different training set

  • different training data gives a different f-hat

  • more observations shrink ____

  • adding an irrelevant predictor increases _____


<ul><li><p>how much f-hat moves across different training sets</p></li></ul><ul><li><p>how much f-hat would change if estimated from a different training set</p></li><li><p>different training data gives a different f-hat</p></li><li><p>more observations shrink ____</p></li><li><p>adding an irrelevant predictor increases _____</p></li></ul><p></p>
3
New cards

bias

  • how far the average f-hat, over those training sets, sits from the truth f

  • the error from approximating a complicated relationship with a simpler model

  • a method that cannot bend enough to match f is ____

  • ____ barely moves since it’s about the model’s form, not how much data it sees


<ul><li><p>how far the average f-hat, over those training sets, sits from the truth f</p></li><li><p>the error from approximating a complicated relationship with a simpler model</p></li><li><p>a method that cannot bend enough to match f is ____</p></li><li><p>____ barely moves since it’s about the model’s form, not how much data it sees</p></li></ul><p></p>
4
New cards
<p>irreducible error</p>

irreducible error

neither variance nor bias touches this term

5
New cards

flexible methods have high variance

a flexible fit follows the training points closely, so changing even a few of those points can change the fit a lot

6
New cards

more flexible

low bias, high variance

7
New cards

less flexible

high bias, low variance

8
New cards

bias-variance trade-off

choosing flexibility using test error

9
New cards

u-shaped curve

  • bias falls as flexibility increases

  • variance increases as flexibility increases

  • past some point, more flexibility barely reduces bias, but raises variance a lot


10
New cards

moderate curve

  • bias and variance trade off at a middle flexibility

  • bias drops fast as flexibility rises, the minimum sits in the middle


<ul><li><p>bias and variance trade off at a middle flexibility</p></li><li><p>bias drops fast as flexibility rises, the minimum sits in the middle</p></li></ul><p></p>
11
New cards

near-linear

  • variance dominates so simple method wins

  • bias starts low and stays low, variance almost dominates immediately


<ul><li><p>variance dominates so simple method wins</p></li><li><p>bias starts low and stays low, variance almost dominates immediately </p></li></ul><p></p>
12
New cards

highly non-linear

  • bias dominates, so flexible method wins

  • bias stays high until flexibility is high, variance barely rises


<ul><li><p>bias dominates, so flexible method wins </p></li><li><p>bias stays high until flexibility is high, variance barely rises</p></li></ul><p></p>
13
New cards

flexibility knobs

  • polynomial degree or spline degrees of freedom

  • K in K-nearest neighbors

  • number of predictors

  • amount of training data


14
New cards

K-nearest neighbors

  • to classify or predict at x0, average the K closest training points

  • small K: flexible, wiggly, high variance

  • large K: rigid, smooth, high bias


15
New cards

Bayes Error Rate

  • averaging that best-possible confidence over every value of X

  • one minus it is the lowest test error any classifier can reach


<ul><li><p>averaging that best-possible confidence over every value of X</p></li><li><p>one minus it is the lowest test error any classifier can reach</p></li></ul><p></p>
16
New cards

euclidian distance formula

knowt flashcard image
17
New cards

K-nearest neighbors

  • to classify x-sub-0, find the K closest training points and take a vote

  • as K gets bigger, our flexibility goes down


<ul><li><p>to classify x-sub-0, find the K closest training points and take a vote</p></li><li><p>as K gets bigger, our flexibility goes down </p></li></ul><p></p>
18
New cards

curse of dimensionality

  • KNN works well when p is small and n is large

  • as p grows, the nearest neighbors stop being near

  • with p = 20, capturing 10% of the data needs 80% of every range


19
New cards
20
New cards
21
New cards
22
New cards