🌍 Data Analytics · subject
Data Analytics Predictive Analytics and Modeling Syllabus
The Predictive Analytics and Modeling syllabus for Data Analytics in full: 5 chapters and 20 topics, every one listed below, plus 51 Predictive Analytics and Modeling flashcards with answers.
Predictive Analytics and Modeling syllabus: all 5 chapters
Expand any chapter to see its topics and sub-topics.
-
Regression Analysis
4 topics- Multiple Linear Regression
- Assumptions and Diagnostics
- Logistic Regression
- Regularization
-
Introduction to Machine Learning
4 topics- Supervised vs Unsupervised Learning
- Training, Validation and Test Splits
- Overfitting and Underfitting
- Bias-Variance Tradeoff
-
Classification and Clustering
4 topics- Decision Trees and Random Forests
- K-Nearest Neighbors
- K-Means Clustering
- Dimensionality Reduction with PCA
-
Model Evaluation
4 topics- Regression Metrics
- Classification Metrics
- Confusion Matrix
- Cross-Validation
-
Time Series Analysis
4 topics- Trend, Seasonality and Cyclicity
- Moving Averages and Smoothing
- Forecasting Methods
- Evaluating Forecasts
Data Analytics Predictive Analytics and Modeling flashcards — 51 questions with answers
What is the general form of a multiple linear regression model with $p$ predictors?
$$y = \beta_{0} + \beta_{1}x_{1} + \beta_{2}x_{2} + \cdots + \beta_{p}x_{p} + \varepsilon$$ where $\beta_{0}$ is the intercept, each $\beta_{j}$ is a partial slope coefficient, and $\varepsilon$ is the random error term.
In multiple linear regression, how do you interpret a coefficient $\beta_{j}$?
$\beta_{j}$ is the expected change in the response $y$ for a one-unit increase in predictor $x_{j}$, holding all other predictors constant (ceteris paribus).
What method estimates the coefficients in linear regression, and what quantity does it minimize?
Ordinary Least Squares (OLS). It minimizes the residual sum of squares $$\text{RSS} = \sum_{i=1}^{n}\left(y_{i} - \hat{y}_{i}\right)^{2}.$$
What is the closed-form (normal equation) solution for the OLS coefficient vector $\hat{\beta}$?
$$\hat{\beta} = \left(X^{\top}X\right)^{-1}X^{\top}y$$ where $X$ is the design matrix and $y$ is the response vector.
List the key assumptions of the classical linear regression model.
Linearity of the relationship, independence of errors, homoscedasticity (constant error variance), normality of errors, and no perfect multicollinearity among predictors.
What is multicollinearity and which diagnostic detects it?
Multicollinearity is high correlation among predictors, which inflates coefficient variance and destabilizes estimates. It is detected with the Variance Inflation Factor: $$\text{VIF}_{j} = \frac{1}{1 - R_{j}^{2}},$$ where $R_{j}^{2}$ is from regressing $x_{j}$ on all other predictors. $\text{VIF} > 5$–$10$ signals a problem.
What is heteroscedasticity and how can a residual plot reveal it?
Heteroscedasticity is non-constant variance of the errors across fitted values. In a plot of residuals versus fitted values it appears as a funnel/fan shape rather than a constant-width band.
What plot checks the normality-of-residuals assumption, and what indicates a violation?
A Q-Q (quantile-quantile) plot of the residuals. Points falling on the $45^{\circ}$ line indicate normality; systematic curvature or heavy tails indicate a violation.
What does the logistic (sigmoid) function output and what is its formula?
It maps any real number to a probability in $(0,1)$: $$\sigma(z) = \frac{1}{1 + e^{-z}}.$$
Write the logistic regression model in terms of the log-odds (logit).
$$\ln\!\left(\frac{p}{1-p}\right) = \beta_{0} + \beta_{1}x_{1} + \cdots + \beta_{p}x_{p}$$ where $p$ is the probability of the positive class.
How is a logistic regression coefficient interpreted after exponentiation?
$e^{\beta_{j}}$ is the odds ratio: the multiplicative change in the odds of the positive outcome for a one-unit increase in $x_{j}$, holding other predictors constant.
What loss/cost function is minimized to fit logistic regression?
The log loss (binary cross-entropy): $$J = -\frac{1}{n}\sum_{i=1}^{n}\left[y_{i}\ln \hat{p}_{i} + (1-y_{i})\ln(1-\hat{p}_{i})\right].$$
What problem do regularization techniques address, and how in general?
They combat overfitting by adding a penalty on coefficient magnitudes to the loss, shrinking coefficients toward zero and reducing model variance.
State the Ridge (L2) regression objective.
$$\min_{\beta}\ \sum_{i=1}^{n}\left(y_{i}-\hat{y}_{i}\right)^{2} + \lambda\sum_{j=1}^{p}\beta_{j}^{2}$$ where $\lambda \geq 0$ controls the strength of the L2 penalty.
State the Lasso (L1) regression objective and its distinctive property.
$$\min_{\beta}\ \sum_{i=1}^{n}\left(y_{i}-\hat{y}_{i}\right)^{2} + \lambda\sum_{j=1}^{p}\lvert\beta_{j}\rvert.$$ The L1 penalty can shrink coefficients exactly to zero, performing automatic feature selection.
How do Ridge and Lasso differ in their effect on coefficients?
Ridge (L2) shrinks all coefficients smoothly toward zero but rarely to exactly zero; Lasso (L1) can set some coefficients exactly to zero, yielding sparse models and feature selection. Elastic Net combines both penalties.
What is the core distinction between supervised and unsupervised learning?
Supervised learning uses labeled data (input–output pairs) to learn a mapping for prediction (classification/regression); unsupervised learning uses unlabeled data to discover structure such as clusters or lower-dimensional representations.
Give two example tasks each for supervised and unsupervised learning.
Supervised: regression (predicting a numeric value) and classification (predicting a category). Unsupervised: clustering (e.g., K-Means) and dimensionality reduction (e.g., PCA).
What are the purposes of the training, validation, and test splits?
Training set: fit model parameters. Validation set: tune hyperparameters and select models. Test set: give an unbiased final estimate of generalization performance on unseen data.
Why must the test set never be used during model tuning?
Using it during tuning leaks information (data leakage) and produces an optimistic, biased estimate of performance; the test set must stay untouched to fairly estimate generalization.
Show the other 31 Predictive Analytics and Modeling flashcards
Define overfitting and its symptom in terms of errors.
Overfitting is when a model learns noise/idiosyncrasies of the training data, giving low training error but high validation/test error (poor generalization).
Define underfitting and its symptom in terms of errors.
Underfitting is when a model is too simple to capture the underlying pattern, giving high error on both the training and validation/test sets.
Name three techniques to reduce overfitting.
Regularization (L1/L2), gathering more training data, reducing model complexity, early stopping, cross-validation, and (in trees) pruning or ensembling.
Write the bias-variance decomposition of expected prediction error.
$$\mathbb{E}\!\left[(y-\hat{f}(x))^{2}\right] = \underbrace{\left(\text{Bias}[\hat{f}(x)]\right)^{2}}_{\text{bias}^2} + \underbrace{\text{Var}[\hat{f}(x)]}_{\text{variance}} + \sigma^{2}$$ where $\sigma^{2}$ is the irreducible error.
How do bias and variance relate to model complexity?
As complexity increases, bias decreases but variance increases. High bias corresponds to underfitting; high variance corresponds to overfitting. The goal is the sweet spot minimizing total error.
What is the irreducible error in the bias-variance tradeoff?
The $\sigma^{2}$ term: noise inherent in the data-generating process that no model can eliminate, regardless of how good it is.
How does a decision tree decide where to split a node (for classification)?
It chooses the feature and threshold that maximize purity gain, measured by reducing impurity such as Gini impurity $$G = 1 - \sum_{k}p_{k}^{2}$$ or entropy $$H = -\sum_{k}p_{k}\log_{2}p_{k}.$$
What is a random forest and how does it reduce variance?
An ensemble of many decision trees trained on bootstrap samples (bagging) with a random subset of features considered at each split. Averaging/voting across decorrelated trees reduces variance without greatly increasing bias.
What is bagging (bootstrap aggregating)?
Training multiple models on different bootstrap resamples of the data and aggregating their predictions (averaging for regression, majority vote for classification) to reduce variance.
How does the KNN algorithm classify a new point?
It finds the $k$ nearest training points by a distance metric (e.g., Euclidean) and assigns the majority class among those neighbors (or the average value for regression).
Write the Euclidean distance between two points $\vec{x}$ and $\vec{y}$ in $\mathbb{R}^{n}$.
$$d(\vec{x},\vec{y}) = \sqrt{\sum_{i=1}^{n}\left(x_{i}-y_{i}\right)^{2}}.$$
How does the choice of $k$ affect the bias-variance tradeoff in KNN?
Small $k$ gives low bias but high variance (sensitive to noise, overfitting); large $k$ gives smoother boundaries with higher bias but lower variance. $k$ is typically chosen by cross-validation.
Why is feature scaling important for KNN and K-Means?
Both rely on distance metrics, so features with larger numeric ranges dominate the distance. Standardizing/normalizing features ensures each contributes fairly.
What objective does K-Means clustering minimize?
The within-cluster sum of squares (inertia): $$J = \sum_{k=1}^{K}\sum_{x \in C_{k}}\lVert x - \mu_{k}\rVert^{2}$$ where $\mu_{k}$ is the centroid of cluster $C_{k}$.
Describe the two alternating steps of the K-Means algorithm.
Assignment step: assign each point to its nearest centroid. Update step: recompute each centroid as the mean of the points assigned to it. Repeat until assignments no longer change (convergence).
What is the elbow method for choosing $K$ in K-Means?
Plot within-cluster sum of squares (inertia) against $K$; the 'elbow' where the rate of decrease sharply flattens suggests a good number of clusters $K$.
What is the goal of Principal Component Analysis (PCA)?
To reduce dimensionality by projecting data onto a smaller set of orthogonal axes (principal components) that capture the maximum possible variance in the data.
What do the eigenvectors and eigenvalues of the covariance matrix represent in PCA?
Eigenvectors give the directions of the principal components; their eigenvalues give the amount of variance explained along each component. Components are ordered by decreasing eigenvalue.
How is the proportion of variance explained by the first $m$ principal components computed?
$$\text{PVE} = \frac{\sum_{i=1}^{m}\lambda_{i}}{\sum_{j=1}^{p}\lambda_{j}}$$ where $\lambda_{i}$ are the eigenvalues (sorted in decreasing order).
Why should data be standardized before applying PCA?
PCA is variance-based, so features measured on larger scales would dominate the components. Standardizing to zero mean and unit variance ensures each feature contributes comparably.
Write the formula for Mean Squared Error (MSE) and Root Mean Squared Error (RMSE).
$$\text{MSE} = \frac{1}{n}\sum_{i=1}^{n}\left(y_{i}-\hat{y}_{i}\right)^{2}, \qquad \text{RMSE} = \sqrt{\text{MSE}}.$$
Write the formula for Mean Absolute Error (MAE) and contrast it with MSE.
$$\text{MAE} = \frac{1}{n}\sum_{i=1}^{n}\lvert y_{i}-\hat{y}_{i}\rvert.$$ MAE weights all errors linearly and is robust to outliers, whereas MSE squares errors and thus penalizes large errors more heavily.
What does the coefficient of determination $R^{2}$ measure, and what is its formula?
The proportion of variance in $y$ explained by the model: $$R^{2} = 1 - \frac{\sum_{i}(y_{i}-\hat{y}_{i})^{2}}{\sum_{i}(y_{i}-\bar{y})^{2}} = 1 - \frac{\text{RSS}}{\text{TSS}}.$$
Define accuracy as a classification metric and state its main weakness.
$$\text{Accuracy} = \frac{TP + TN}{TP + TN + FP + FN}.$$ It is misleading on imbalanced datasets, where predicting the majority class can yield high accuracy despite poor minority-class performance.
Define precision and recall.
$$\text{Precision} = \frac{TP}{TP + FP}, \qquad \text{Recall} = \frac{TP}{TP + FN}.$$ Precision is correctness among positive predictions; recall is coverage of actual positives.
What is the F1 score and why is it used?
The harmonic mean of precision and recall: $$F_{1} = 2\cdot\frac{\text{Precision}\times\text{Recall}}{\text{Precision}+\text{Recall}}.$$ It balances the two, which is useful for imbalanced classes where accuracy is misleading.
What is a confusion matrix and what are its four cells for binary classification?
A table comparing predicted vs actual labels with four entries: True Positives ($TP$), True Negatives ($TN$), False Positives ($FP$, Type I error), and False Negatives ($FN$, Type II error).
What do the ROC curve and AUC represent?
The ROC curve plots the True Positive Rate (recall) against the False Positive Rate $\left(\frac{FP}{FP+TN}\right)$ across thresholds. AUC is the area under it: $1.0$ is perfect, $0.5$ is random guessing.
What is k-fold cross-validation and how is the score computed?
The data is split into $k$ equal folds; the model is trained on $k-1$ folds and validated on the held-out fold, rotating so each fold is used once for validation. The overall estimate is the average of the $k$ validation scores.
What is leave-one-out cross-validation (LOOCV), and its main drawback?
A special case of $k$-fold with $k = n$: each single observation is the validation set once. It is nearly unbiased but computationally expensive and can have high variance.
Distinguish trend, seasonality, and cyclicity in a time series.
Trend: long-term upward or downward movement. Seasonality: regular fluctuations tied to a fixed, known period (e.g., monthly, yearly). Cyclicity: rises and falls over variable, non-fixed periods (e.g., business cycles) not tied to a calendar.
Data Analytics Predictive Analytics and Modeling FAQ
What is in the Data Analytics Predictive Analytics and Modeling syllabus?
Data Analytics Predictive Analytics and Modeling is split into 5 chapters: Regression Analysis, Introduction to Machine Learning, Classification and Clustering, Model Evaluation and Time Series Analysis. Together they contain 20 topics.
How many chapters are in Data Analytics Predictive Analytics and Modeling?
5 chapters, containing 20 topics. The largest chapter is Regression Analysis, with 4 topics.
Are there flashcards for Data Analytics Predictive Analytics and Modeling?
Yes — a 51-card Predictive Analytics and Modeling deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.