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 9 pages
Exam (elaborations)

MSCI 446 Midterm Practice Questions With Complete Solutions

Document preview thumbnail
Preview 2 out of 9 pages

MSCI 446 Midterm Practice Questions With Complete Solutions

Content preview

MSCI 446 Midterm Practice Questions With Complete
Solutions

Explain Document Term Vectors Correct Answers o A
fragment of vector from a short document with text
o Unlocks machine learning algorithms that previously required
numeric values
o Consequence: Fails to recognize words that have similar
semantics because they have different spellings
o Bert model: word embeddings

Explain One Hot Encoding Correct Answers Categorical ->
Boolean/Binary: If the categorical variable has k values, one hot
encoding creates k Boolean variables, one of which will be true
in any one record

For n sets, what is the range of confidence? Correct Answers 0
to 1

For n sets, what is the range of support? Correct Answers 0 to n

Goodness of Fit: Residual Distribution Correct Answers ·
Should be symmetric about 0
· Y: Relative frequency
· What if 0 but not high frequency - get most out of data
· Overestimates/underestimates in some cases -> not skewed
(bad fit)

Goodness of Fit: Residual Plot Correct Answers · Pattern
· No pattern
· Negative (model overestimates)

, · Value of x and corresponding residual

How do you calculate Euclidian distance for numeric vectors (a,
b) and (c, d)? Correct Answers sqrt((a-c)^2 + (b-d)^2)

How do you calculate Manhattan distance for numeric vectors
(a, b) and (c, d)? Correct Answers |a-c|+|b-d|

How do you prevent overfitting? Correct Answers -don't
penalize model on getting outliers wrong
o Restrict space of hypotheses tested
o Regularization - make less precise/simpler
o Sacrifices accuracy (from optimization standpoint) to achieve
overfitting - better performance for future by "dumbing down"
past

How does email spam filtering work? Correct Answers Input:
examples of legitimate emails and spam emails
Output: a program that predicts whether a given email is
legitimate or spam - could be very bad depending on how
general the learning is (i.e. keywords vs. exact sentences)

How would you calculate weights for document term vectors?
Correct Answers 10/(log(count))

Mean Squared Error (MSE) Correct Answers

Residual Sum of Squares Correct Answers

Document information

Uploaded on
November 21, 2025
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.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.
Classroom
4.0
(1202)
Sold
4958
Followers
3240
Items
56112
Last sold
2 days 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