• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Other

Dsci 100 Final Exam Study Guide

Document preview thumbnail
Preview 1 out of 4 pages

DSCI 100 FINAL EXAM STUDY GUIDE

Content preview

DSCI 100 FINAL EXAM STUDY GUIDE

Underfitting in classification - Answers - Increased number of neighbours means that
more observations are influencing the classification. This smooths out the boundaries
between each class, so the model isn't influenced enough by the training data.

Underfitting in KNN regression - Answers - Increased K values means that more
observations are influencing the regression line, which can cause the line to become
flat. Since the regression no longer follows the training observations, accuracy in
predicting training datapoints decreases.

Overfitting in classification - Answers - Decreased number of neighbours means that
fewer observations are influencing the classification. This makes the boundaries
between classes more jagged and complex, so the model is influenced too much by the
training data. The classifier will just match new observations to the closest neighbour in
the training data set, resulting in high accuracy.

Overfitting in KNN regression - Answers - Decreased K values means that fewer
observations are influencing the regression line, which can cause the line to simply
follow the training data points. Since the regression is perfectly following the training
observations, accuracy in predicting training datapoints increases.

Creating confidence intervals - Answers - bootstrap_means |>
select(mean) |>
pull() |>
quantile(c(0.025, 0.975))

Bootstrapping (concept) - Answers - Given a single sample from a population, you take
a single observation from this sample, record it, then return it to the sample. This is
sampling with replacement. This should be repeated until the bootstrap sample is the
same size as the original sample. Now, you should be able to calculate the mean or
proportion from the bootstrap sample. These steps should be repeated many times to
form a bootstrap distribution of means or proportions. This will provide an estimate of
the population parameter, and should resemble the sampling distribution spread.

KNN regression - Answers - - Used to infer a quantitative measurement of a new
observation based on existing observations
- Relatively simple and intuitive, doesn't require much info about the relationship in
advance (can be used on non-linear relationships), can be used for binary or multi-
variable relationships
- Takes a long time for large data sets, performs poorly with many different predictors or
if classes are unbalanced
- Splits data into training and testing data
- Training data can be split further to use cross-validation, which allows you to
determine the best K value to use (determine which one has the highest accuracy)

Document information

Uploaded on
June 11, 2026
Number of pages
4
Written in
2025/2026
Type
Other
Person
Unknown
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GEEKA
3.8
(376)
Sold
2221
Followers
1450
Items
62698
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions