Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

DSCI 100 CORE MAIN ANSWERS AND QUESTIONS SET A.pdf

Document preview thumbnail
Preview 2 out of 7 pages

DSCI 100 CORE MAIN ANSWERS AND QUESTIONS SET A.pdf

Content preview

DSCI 100 CORE MAIN ANSWERS AND QUESTIONS
SET A+
✔✔Predict - ✔✔predict(workflow_var, testing data) |>
bind_cols(testing data)

✔✔accuracy - ✔✔# of correct predictions
--------------------------
total # of predictions

✔✔precision - ✔✔# of correct positive predictions
------------------------------------
total # of positive predictions

✔✔recall - ✔✔# of correct positive predictions
------------------------------------
total # of positive test set observations

✔✔Code to get accuracy from prediction variable - ✔✔acc <- cancer_test_predictions |>
metrics(truth = predicted_var, estimate = .pred_class) |>
filter(.metric == "accuracy") |>
select(.estimate) |>
pull()

✔✔Cross-validation - ✔✔A way to see how well your model is working. You can use this
to find the optimal K in KNN.

✔✔Underfitting - ✔✔The model isn't influenced enough by the data. The model is too
simple to understand what is going on with the data.

✔✔Overfitting - ✔✔The model is influenced too much by the data. The model learns too
much and picks up on things it shouldn't have like noise or outliers.

, ✔✔Regression - ✔✔A method to predict new observations based on old ones, but
instead of categorical values (classification), we are predicting numerical values

✔✔Strengths of KNN regression - ✔✔- simple algorithm
- requires only a few assumptions
- works well with non linear relationships

✔✔Weaknesses of KNN regression - ✔✔- becomes slow with larger datasets
- may not perform well with multiple predictors
- may not predict well beyond the numbers of the training data

✔✔RMSPE - ✔✔Root Mean Square Prediction Error for model accuracy.

Used in KNN regression.

small RMSPE = good model
large RMSPE = bad model

✔✔Linear regression - ✔✔Creates a straight line of best fit through the training data and
then "look up" the prediction using a line.

single predictor = a line
two predictors = a plane

Good when: there is a linear ish relationship

Good for:
- predicting new variables
- showing the strength of relationships between variables

✔✔Outliers in linear regression - ✔✔As long as there is enough data, one or two
outliers won't affect it a lot

✔✔Clustering - ✔✔A data analysis technique where you separate a dataset into groups
of related data

✔✔Statistical interference - ✔✔The process of using a sample to make a conclusion
about the broader population from which it is taken

✔✔Population - ✔✔The complete collection of individuals we are interested in studying.
ex. undergrad students at UBC

✔✔Population parameter - ✔✔A numerical characteristic of the entire population

ex. the proportion of population that are iPhone users

Document information

Uploaded on
September 1, 2026
Number of pages
7
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$20.49

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.
BOARDWALK
3.5
(41)
Sold
287
Followers
11
Items
36042
Last sold
1 hour 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