Back to marketplace

Interview Prep

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

Bias-Variance Tradeoff

Back (Answer)

Bias is error due to erroneous or overly simplistic assumptions in algorithm. This can lead to the model underfitting your data, making it hard to generalize your knowledge from the training set to the test set. Variance is error due to too much complexity in algorithm. Leads to the algorithm being highly sensitive and overfitting.

#2
Front (Question)

Supervised vs unsupervised learning

Back (Answer)

Supervised = used data that is labeled Unsupervised = not labeled

#3
Front (Question)

KNN vs k-means clustering

Back (Answer)

KNN = supervised classification algorithm K-means clustering is unsupervised

#4
Front (Question)

ROC Curve

Back (Answer)

Receiver operating characteristic –> representation of true positive rates vs false positive rates

#5
Front (Question)

Precision vs. recall vs. accuracy

Back (Answer)

Email spam Precision = TP / predicted positive (actual cancer patients / pred cancer patients) Recall = TP / Real positive (Actual cancer patients / actual cancer patients + cancer patients not predicated)

#6
Front (Question)

Type I vs Type II

Back (Answer)

Type I = False positive Type II = False negative

#7
Front (Question)

Cross-validation

Back (Answer)

Holding out different parts of the data to test the model on

#8
Front (Question)

Decision tree pruning

Back (Answer)

Branches that have lower predictive power are removed in order to reduce complexity

#9
Front (Question)

F1 score

Back (Answer)

weighted avg between recall and precision 1 = best 0 = worst

#10
Front (Question)

How to avoid overfitting

Back (Answer)

Keep models simple Use regularization (Lasso / Ridge) Use cross-validation

#11
Front (Question)

Examples of ensemble

Back (Answer)

Decision Tree + Boosting

#12
Front (Question)

How would you handle missing or incomplete data?

Back (Answer)

Delete row or decide to replace with 0 or another value (mean or median) or prediction

#13
Front (Question)

Write pseudocode for linear regression

Back (Answer)

1) Define cost function (total squared error) to minimize 2) Initialize gradient descent 3) Iterate on gradient decent based on alpha (learning rate) and number of iterations 4) Analyze results

#14
Front (Question)

Why and how to normalize data

Back (Answer)

Ensure all data is on the same scale = x - mean / SD

#15
Front (Question)

Data analysis process

Back (Answer)

1) Get access to data 2) EDA to get familiar with data + understand any issues 3) Determine how to prepare the data 4) Explore models to use 5) Execute, visualize, and inform

#16
Front (Question)

Difference between variance and covariance

Back (Answer)

Variance = how apart numbers are from mean Covariance = how the mean of two variables move together

#17
Front (Question)

Elements of CLT

Back (Answer)

with a large enough sample size, the sample mean and sd will match the population – you can use z-score to get prob

#18
Front (Question)

Conditions for linear regression

Back (Answer)

• There is a linear relationship between the dependent variables and the regressors • The errors or residuals of the data are normally distributed and independent from each other • There is minimal multicollinearity between explanatory variables • Homoscedasticity. This means the variance around the regression line is the same for all values of the

#19
Front (Question)

Python data structures and which are mutable?

Back (Answer)

Lists, Dictionaries, Sets, Strings, Tuples, Boolean, Numeric Tuples are immutable (along with frozensets)

#20
Front (Question)

How best to split up test vs train

Back (Answer)

Use train, test, and validation – validation allows you to fine tune parameters before running final test 80:20 typically appropriate but depends on the data you have

#21
Front (Question)

Regression algorithms

Back (Answer)

Linear regression Regression trees Neural Network

#22
Front (Question)

Type of classification algorithms

Back (Answer)

Support Vector Machines Decisions Trees KNN

#23
Front (Question)

KNN vs SVM

Back (Answer)

KNN calculates similarity scores SMV - looks at difference between hyperplanes

#24
Front (Question)

Git commands

Back (Answer)

git pull git add file/folder git commit -m “comment” git push