Bagging, Random Forests, Boosting, and the Bias-Variance Trade-off
Hard · Machine Learning · Software Engineer · Technical Screen
Prompt
Compare three foundational ensemble learning paradigms—Bagging (averaging parallel estimators trained on bootstrap resamples), Random Forests (combining bootstrap aggregation with per-split random feature subsets), and Boosting (sequentially fitting additive estimators that target errors left behind by earlier rounds, such as Gradient Boosting)—by addressing three questions:
- Bias-variance mechanics: Relate each ensemble strategy to the bias-variance decomposition of expected test error. Which error term (bias or variance) does each method primarily shrink, and through what mathematical mechanism?
- Ensembling a deep, high-variance base learner: Suppose your starting base model has very low bias and high variance, such as an unpruned decision tree. Which ensemble family should you pair with it to maximize out-of-sample accuracy, and why do the remaining options help less or fail?
- Growing the ensemble size: Explain how out-of-sample error evolves as you add more and more base estimators in each family. Under what conditions does adding estimators trigger overfitting, and why do Bagging and Random Forests behave differently from Boosting as ensemble size grows?
Scope & Expectations
- Decompose expected squared prediction error into irreducible noise, squared bias, and variance, then map parallel averaging versus sequential residual fitting onto those terms.
- Show how pairwise correlation between bootstrap trees creates a variance floor in plain Bagging and how split-level feature subsampling in Random Forests lowers that floor.
- Justify base-learner capacity choices—why Random Forests thrive on deep low-bias trees while Gradient Boosting relies on shallow weak learners.
- Contrast asymptotic test-error plateaus as tree count increases in Bagging/Random Forests against capacity growth, noise memorization, and early stopping in Boosting.
Step-by-step walkthrough
Decompose prediction error into noise, bias, and variance
Before comparing ensemble methods, we need to see the exact pieces of error they attack. Suppose at a fixed input
x, the true outcome isy = f(x) + eps, wheref(x)is the true underlying pattern andepsis irreducible noise—random measurement or label jitter on a new test point with meanE[eps] = 0and varianceVar(eps) = sigma^2, independent of our training data.When we fit a model
f_haton a randomly drawn training datasetD, the predictionf_hat(x)is itself a random variable because a different training sampleDwould produce a slightly different model. Letmu_hat = E_D[f_hat(x)]be the average prediction across all possible training sets of that size.To break down expected squared test error, rewrite
y - f_hat(x)as(eps) + (f(x) - mu_hat) + (mu_hat - f_hat(x)). Becauseepshas mean zero and is independent ofD, and becauseE_D[mu_hat - f_hat(x)] = 0, every cross-product averages to zero when we square and take expectations:E_D,eps[ (y - f_hat(x))^2 ] = E[eps^2] -> sigma^2 (irreducible noise) + (f(x) - E_D[f_hat(x)])^2 -> Bias^2 (systematic aim error) + E_D[(f_hat(x) - mu_hat)^2] -> Variance (sensitivity to training sample D)Think of shooting arrows at a bullseye:
- Bias is systematic aim error: even if you average 1,000 shots, the center of your cluster misses the bullseye because the model is too rigid. A decision stump (a tiny tree with just one split and two leaves) has high bias and low variance.
- Variance is hand wobble: your average aim is right on the bullseye, but each individual shot lands far away depending on random quirks of today's training data. A fully grown decision tree (split until every leaf holds one training point) memorizes noise, giving low bias and high variance.
An ensemble combines many base learners (individual models) into one predictor:
- Bagging and Random Forests average parallel learners to shrink variance.
- Boosting chains weak learners one after another to shrink bias.
Bagging: average parallel bootstrap models to cut variance
Bagging (short for bootstrap aggregating) trains
Bindependent copies of the same base learner in parallel. Each copy sees its own bootstrap sample:nrows drawn uniformly at random with replacement from thenoriginal training rows.Because we draw with replacement, some training rows appear two or three times in a bootstrap sample while others are skipped. The chance that a specific row is missed on one draw is
1 - 1/n, so acrossndraws it is missed(1 - 1/n)^nof the time. For largen,(1 - 1/n)^napproaches1/e ≈ 0.368. Thus each tree sees about 63.2% of the unique rows, leaving about 36.8% as out-of-bag (OOB) rows that act like a built-in validation set. At prediction time, bagging averages theBoutputs for regression (or takes a majority vote for classification).Original data D (n rows) |---> Bootstrap D_1 ---> Deep Tree 1 ---> pred_1 \ |---> Bootstrap D_2 ---> Deep Tree 2 ---> pred_2 +--> Average = (1/B) * sum(pred_b) |---> Bootstrap D_B ---> Deep Tree B ---> pred_B /How does averaging change bias and variance?
- Bias stays roughly unchanged. By linearity of expectation, the average of
Bidentically distributed trees has the exact same expected value as a single tree:E[(1/B) * sum f_b(x)] = E[f_1(x)]. (Bias can even tick up slightly compared to a tree fit on 100% ofD, because each bootstrap sample only contains ~63.2% distinct rows.) - Variance drops, down to a correlation floor. Suppose each tree's prediction at
xhas variancevand any two trees have pairwise correlationrho(a number in[-1, 1]measuring how similarly two trees move around their mean). The variance of their average is:
Var(average of B trees) = rho * v + ((1 - rho) / B) * v Example with v = 1.0 and rho = 0.5: B = 1 -> 0.50 + 0.50 / 1 = 1.000 B = 10 -> 0.50 + 0.50 / 10 = 0.550 B = 100 -> 0.50 + 0.50 / 100 = 0.505 B -> inf = 0.500 (the rho * v floor)Averaging divides the uncorrelated wobble
(1 - rho) * vbyB, which vanishes as we add trees. However, two bootstrap samples share roughly0.632 * 0.632 ≈ 40%of the distinct rows, so bagged trees grow similar splits and stay positively correlated (rho > 0). Averaging can never push variance belowrho * v.We can verify both claims directly with a short simulation. In 1-D, a fully grown regression tree that splits at midpoints between adjacent training points always predicts the label of the nearest training point:
import numpy as np def full_tree_predict(x_train, y_train, x_test): """A fully grown 1-D midpoint regression tree predicts the nearest training label.""" distances = np.abs(x_test[:, None] - x_train[None, :]) nearest_idx = distances.argmin(axis=1) return y_train[nearest_idx] def bagged_predict(x_train, y_train, x_test, n_trees, rng): """Average predictions of n_trees fully grown trees fit on bootstrap samples.""" pred_sum = np.zeros(len(x_test)) n_rows = len(x_train) for _ in range(n_trees): # Draw n_rows indices with replacement (one bootstrap sample) boot_idx = rng.integers(0, n_rows, n_rows) pred_sum += full_tree_predict(x_train[boot_idx], y_train[boot_idx], x_test) return pred_sum / n_trees rng = np.random.default_rng(0) x_test = np.linspace(0.05, 0.95, 50) f_true = np.sin(2 * np.pi * x_test) single_preds, bagged_preds = [], [] for _ in range(300): # Repeat across 300 independent noisy training datasets x_sample = rng.uniform(0, 1, 50) y_sample = np.sin(2 * np.pi * x_sample) + rng.normal(0, 0.3, 50) single_preds.append(full_tree_predict(x_sample, y_sample, x_test)) bagged_preds.append(bagged_predict(x_sample, y_sample, x_test, 50, rng)) for label, arr in (("1 deep tree", np.array(single_preds)), ("50 bagged trees", np.array(bagged_preds))): bias_sq = ((arr.mean(axis=0) - f_true) ** 2).mean() variance = arr.var(axis=0).mean() print(f"{label:15s}: bias^2 = {bias_sq:.4f}, var = {variance:.4f}, MSE = {0.09 + bias_sq + variance:.4f}")1 deep tree : bias^2 = 0.0002, var = 0.0944, MSE = 0.1846 50 bagged trees: bias^2 = 0.0002, var = 0.0456, MSE = 0.1358 (noise sigma^2 = 0.3^2 = 0.09)Notice that
bias^2stays flat at0.0002, while 50 trees cut variance roughly in half (0.0944 -> 0.0456), not by a factor of 50—showing therho * vcorrelation floor in action.- Bias stays roughly unchanged. By linearity of expectation, the average of
Random forests: inject feature randomness to break tree correlation
Why do bagged trees stay strongly correlated? Suppose your dataset has
p = 20features, and Feature 1 is moderately stronger than the rest. Even on different bootstrap samples, almost every bagged tree picks Feature 1 at the very top split and builds nearly the same upper branches, keepingrhohigh.A Random Forest adds one twist to bagging: at every split inside every tree, draw a fresh random subset of
mcandidate features out of theptotal features, and pick the best split only among thosem(typical defaults arem = floor(sqrt(p))for classification andm = floor(p / 3)for regression).Whenever Feature 1 is left out of the random
mcandidates at the root—which happens(p - m) / pof the time—the tree is forced to discover alternative predictive features. The trees grow diverse structures, so pairwise correlationrhodrops sharply.The trade-off is that restricting split choices makes each individual tree slightly weaker (a small uptick in bias and sometimes single-tree variance
v). Yet the ensemble wins whenever the drop inrhooutweighs that small penalty. CompareB = 500trees where feature sampling raisesvfrom1.0to1.1but cutsrhofrom0.6to0.3:Bagging (rho = 0.6, v = 1.0): 0.6 * 1.0 + 0.4 * 1.0 / 500 = 0.6008 Random Forest (rho = 0.3, v = 1.1): 0.3 * 1.1 + 0.7 * 1.1 / 500 = 0.3315 (45% lower variance!)Here
mis the decorrelation knob: smallermlowersrhofurther, though settingmtoo small when most features are pure noise can starve splits of informative features and raise bias.Boosting: train weak learners sequentially to remove bias
Boosting takes the opposite route. Instead of averaging deep, low-bias trees in parallel, it starts with a weak learner (such as a shallow tree of depth 1 to 3, which has high bias and low variance) and builds an additive model—a sum of many small trees trained sequentially, where each new tree repairs the errors left behind by the sum so far.
In Gradient Boosting for squared error
(1/2) * (y - F(x))^2, the negative derivative with respect to the current predictionF(x)isy - F(x). That quantity is simply the residual—how far off the current ensemble still is on each training row. Each round fits a small treeh_mto those residuals and takes a cautious step scaled by a learning rate (or shrinkage)nuin(0, 1]:Initialize F_0(x) = mean(y) For round m = 1, 2, ..., M: 1. Compute residuals on training rows: r_i = y_i - F_{m-1}(x_i) 2. Fit a shallow tree h_m(x) to predict r_i from x_i 3. Update ensemble: F_m(x) = F_{m-1}(x) + nu * h_m(x)Walk through 4 points
(x, y) = (1, 1), (2, 3), (3, 2), (4, 6)using stumps (1 split) and learning ratenu = 0.5:Start: F_0 = mean(1, 3, 2, 6) = 3.0 everywhere Residuals r = (1 - 3, 3 - 3, 2 - 3, 6 - 3) = (-2, 0, -1, +3) Training MSE = (4 + 0 + 1 + 9) / 4 = 3.50 Round 1: Test all 3 midpoint splits on r = (-2, 0, -1, +3) by Sum of Squared Errors (SSE): - Split x <= 1.5: left mean = -2.0, right mean = (0 - 1 + 3)/3 = +0.667 -> SSE = 8.67 - Split x <= 2.5: left mean = -1.0, right mean = (-1 + 3)/2 = +1.000 -> SSE = 10.00 - Split x <= 3.5: left mean = (-2 + 0 - 1)/3 = -1.0, right mean = +3.000 -> SSE = 2.00 (Best!) Update: F_1 = (3, 3, 3, 3) + 0.5 * (-1, -1, -1, +3) = (2.5, 2.5, 2.5, 4.5) New training MSE = (2.25 + 0.25 + 0.25 + 2.25) / 4 = 1.25 Round 2: New residuals r = y - F_1 = (-1.5, +0.5, -0.5, +1.5) - Best split x <= 1.5 gives left mean -1.5, right mean +0.5 (SSE = 2.00) Update: F_2 = (2.5, 2.5, 2.5, 4.5) + 0.5 * (-1.5, +0.5, +0.5, +0.5) = (1.75, 2.75, 2.75, 4.75) New training MSE = 0.6875 (and continues 0.30, 0.20, 0.15, ... in later rounds)One stump can only output two flat numbers, so it could never fit a curve that goes up, down, and up again. Summing sequential stumps bends the combined function step by step to match complex shapes, driving bias down. However, because later rounds start chasing the random noise
epsinside the residuals, variance climbs asMgrows. (AdaBoost follows the same sequential bias-reduction philosophy for classification by up-weighting misclassified rows under exponential loss.)Choosing an ensemble for a deep, high-variance decision tree
If your base learner is already a deep decision tree (low bias, high variance), choose Random Forest (or Bagging if you cannot modify the tree splitter):
- Matches the error component: A deep tree's error is dominated by variance, not bias. Averaging independent bootstrap fits directly cancels variance, and Random Forest's feature subsampling lowers
rhoso the variance floorrho * vdrops as low as possible. - Why Boosting is the wrong choice for fully grown trees:
- No bias left to fix: A fully grown tree already has near-zero bias and fits distinct training points with zero error.
- It collapses back to a single noisy tree: Suppose we boost fully grown trees with learning rate
nu = 0.1. Round 1 fitsh_1exactly tor^(1) = y - mean(y), predicting every training residual perfectly. After adding0.1 * h_1, the new training residuals arer^(2) = 0.9 * r^(1)—an exact positive rescaling of Round 1's targets! Because multiplying all targets by0.9scales every split's squared error by0.81without changing which split wins, Round 2 grows the exact same tree structureh_2(x) = 0.9 * h_1(x). Summing the geometric series afterMrounds gives:
F_M(x) = mean(y) + nu * h_1(x) * (1 + (1 - nu) + ... + (1 - nu)^(M - 1)) = mean(y) + (1 - (1 - nu)^M) * h_1(x)As
Mgrows,(1 - nu)^M -> 0, soF_M(x)converges tomean(y) + h_1(x): one single deep tree memorizing all the training noise, with zero variance reduction! That is why practical Gradient Boosting always restricts base trees to shallow depths (typically depth 2 to 6).- Matches the error component: A deep tree's error is dominated by variance, not bias. Averaging independent bootstrap fits directly cancels variance, and Random Forest's feature subsampling lowers
Adding more learners: safe plateau in bagging vs. overfitting in boosting
Adding more base learners has opposite effects on generalization in the two families:
Test Error ^ | \ \ / Boosting (too many rounds | \ \ / chase residual noise) | \___________________ Bagging / RF \____________/ | (plateaus at noise + bias^2 + rho*v) ^ sweet spot M* (early stopping) +-----------------------------------------------------------------> Number of trees (B or M)- Bagging and Random Forests (
B -> infinity): Adding more trees does not cause overfitting. IncreasingBonly shrinks((1 - rho) / B) * vtoward zero, so test error smoothly approaches the asymptotic floorsigma^2 + Bias^2 + rho * vwith diminishing returns (forrho = 0.5,B = 10already captures 90% of the variance drop, andB = 200..500essentially plateaus). A Random Forest can still have higher error than a regularized tree if noisy data wants smoother leaves, so you tunemax_depthormin_samples_leaf—notB. - Boosting (
M -> infinity): HereMdirectly controls model capacity. Early rounds fit true signal and reduce bias, lowering test error. Past an optimalM*, signal in the residuals is exhausted and new trees fit random label noiseeps, causing variance and test error to rise (especially when labels are noisy,nuis large, or trees are deeper). ThereforeMmust be tuned via early stopping on a validation set or cross-validation, paired with a small learning ratenu(halvingnuroughly doubles the bestM*and usually improves generalization). Note one classic subtlety: on clean, low-noise classification tasks, AdaBoost can sometimes keep improving test error even after training error hits zero by widening classification margins, though with noisy labels it still overfits.
Property Bagging Random Forest Gradient Boosting -------------------------------------------------------------------------------------------------------- Training order Parallel (independent) Parallel (independent) Sequential (residual-driven) Ideal base learner Deep trees (low bias) Deep trees + random m cols Shallow trees (high bias) Primary target Reduces variance Reduces variance (lower rho) Reduces bias More trees (B or M) Safe; test error plateaus Safe; test error plateaus Can overfit; U-shaped test error Key tuning knobs Leaf size / tree depth m (cols/split), leaf size M (early stopping), nu, depth- Bagging and Random Forests (
Intuition & how it works
Think of Bagging and Random Forests as hiring a committee of independent appraisers, while Boosting is an assembly line of editors revising one shared draft. A single deep decision tree is like a nervous appraiser who memorizes every quirk of the 50 houses they studied last week: across many neighborhoods their average judgment is unbiased, but any one appraiser's estimate swings wildly (high variance, low bias). Averaging 100 appraisers trained on resampled subsets (Bagging) cancels out their random individual swings—and forcing each appraiser to inspect a random subset of house features at each step (Random Forest) keeps them from all fixating on square footage alone, so their errors cancel even better. By contrast, a shallow 1-split stump is a rigid rule of thumb (high bias, low variance); averaging 100 identical rules of thumb stays just as rigid, so Boosting instead chains them in sequence, letting each new stump correct the leftover mistake (residual) of the combined draft so far.
Relying on a single decision tree fails because tree depth forces an all-or-nothing choice between underfitting (too shallow to capture nonlinear shapes) and overfitting (so deep it memorizes random noise). Naive averaging also falls short if every tree uses the exact same dominant features, because strongly correlated models make the same mistakes at the same time. Conversely, running sequential boosting without stopping eventually memorizes random noise once the real pattern has been explained.
To see the numbers on a tiny example, suppose the true target at x is 10:
- Variance reduction (Bagging vs. Random Forest): Suppose deep trees are unbiased (average
10) with single-tree variancev = 9and pairwise correlationrho = 1/3. One tree has variance9. BaggingB = 3trees lowers variance torho * v + ((1 - rho) / B) * v = (1/3)*9 + (2/3)*9/3 = 3 + 2 = 5, and even infinitely many bagged trees hit a floor ofrho * v = 3. If Random Forest feature sampling cuts correlation torho = 0.1(even ifvnudges up to10),500trees reach0.1 * 10 + 0.9 * 10 / 500 = 1.018—nearly 3x lower error. - Bias reduction (Boosting): Suppose a rigid stump predicts
6(bias-4). Averaging 500 such stumps still predicts6. Gradient Boosting with learning ratenu = 0.5starts at6(residual+4), adds0.5 * 4 = +2on Round 1 to reach8(residual+2), and adds0.5 * 2 = +1on Round 2 to reach9(residual+1), halving the bias every step.
Key points
- Bias-variance decomposition: For squared error
y = f(x) + epswith independent zero-mean noise of variancesigma^2, expected test error equalssigma^2 + Bias^2 + Variance. Bagging and Random Forests reduce variance; Boosting reduces bias. - Bagging fits
Bmodels in parallel on bootstrap samples (nrows drawn with replacement, covering ~63.2% distinct rows). Bias stays near a single tree's bias, while variance drops torho * v + ((1 - rho) / B) * v, bounded below by pairwise tree correlationrho. - Random Forests pick the best split from a random subset of
mfeatures (out ofp) at every node. This decorrelates trees (smallerrho), lowering therho * vfloor far enough to beat the slight increase in single-tree error, while out-of-bag (OOB) rows (~36.8% unseen per tree) give a free validation score. - Gradient Boosting sequentially fits weak, shallow trees to current residuals (the negative gradient of squared error) scaled by a learning rate
nu. Bias falls round by round, while ensemble variance grows with the number of roundsM. - Deep, high-variance base learner -> choose Random Forest (or Bagging): Deep trees already have near-zero bias, so variance is the bottleneck. Boosting fully grown trees leaves no bias to remove and simply rescales the first tree's noisy residuals round after round, converging to one un-averaged deep tree.
- Effect of adding learners: More trees
Bin Bagging / Random Forests never cause overfitting—test error plateaus atsigma^2 + Bias^2 + rho * v. More roundsMin Boosting increase capacity and produce a U-shaped validation curve, requiring early stopping alongsidenuand max depth.
Common mistakes
- Claiming bagging reduces both bias and variance: Because
E[(1/B) * sum f_b(x)] = E[f_1(x)], averaging identically distributed trees cannot reduce bias (and can slightly increase it since each bootstrap sample sees only ~63.2% of unique rows). - Saying bagged variance shrinks as
v / Bto zero: That holds only whenrho = 0. Overlapping bootstrap samples keeprho > 0, creating therho * vfloor that motivates Random Forests. - Treating boosting rounds
Mlike Random Forest tree countB: SettingB = 2000in a Random Forest only wastes CPU, whereas settingM = 2000without early stopping in Gradient Boosting often memorizes residual noise. - Boosting very deep trees or using
nu = 1.0: High-capacity base learners burn through the true signal in one or two steps and spend every remaining round fitting noise. - Diagnosing Random Forest overfitting from near-zero training error: Fully grown trees always achieve near-zero error on the rows they trained on; always judge generalization on out-of-bag or held-out validation data.
Follow-up questions
-
How does base-tree depth—such as single-split stumps versus deep trees—affect feature interactions and generalization in Gradient Boosting? Tree depth caps the order of feature interactions (patterns where the effect of one feature depends on the value of another) that each boosting step can express. A sum of depth-1 stumps (
max_depth = 1) forms a purely additive modelg_1(x_1) + g_2(x_2) + ...: it has very low variance, needs many rounds, and can never represent an interaction like XOR—for instance,(1, 1) -> +1,(-1, -1) -> +1,(1, -1) -> -1,(-1, 1) -> -1requiresg_1(1) + g_1(-1) + g_2(1) + g_2(-1)to equal both+2and-2, which is impossible. Conversely, very deep trees capture high-order interactions immediately but carry huge variance, so boosting overfits within a handful of rounds; in practice, shallow trees of depth 2 to 6 (roughly 4 to 32 leaves) paired with smallnu(0.01to0.1) hit the sweet spot. -
Which hyperparameters and data checks would you adjust if a Random Forest exhibits poor out-of-sample generalization relative to training fit? First verify overfitting on out-of-bag or validation loss rather than training loss, since near-zero training error is expected for deep trees. Because increasing the number of trees
Bnever causes overfitting, focus on regularizing individual trees and increasing diversity: raisemin_samples_leaf(e.g., to 5–20 rows so leaves smooth over label noise), capmax_depth, reducemax_features(m) per split to lower correlationrho(taking care not to setmso tiny that noisy features dominate), and consider subsampling a smaller bootstrap fraction (max_samples = 0.5to0.7). Also audit features to drop leaked targets or high-cardinality ID columns that trees can memorize. -
How do you derive the variance formula rho * v + ((1 - rho) / n) * v for the sample average of n identically distributed estimators each having variance v and pairwise correlation rho? Note a key statistical nuance first: when pairwise correlation
rho != 0, thenbase learnersX_1, ..., X_nare identically distributed and equicorrelated rather than mutually independent (full independence forcesrho = 0). By definition of correlation,Var(X_i) = vfor eachi, and for every distinct pairi != jthe covariance (average product of deviations from the mean) isCov(X_i, X_j) = rho * sqrt(v * v) = rho * v. Expanding the variance of the sample mean(1/n) * sum_{i=1}^n X_isums ann x ngrid of covariance terms—ndiagonal variancesvandn * (n - 1)off-diagonal covariancesrho * v:text Var( (1/n) * sum_{i=1..n} X_i ) = (1 / n^2) * [ sum_{i=1..n} Var(X_i) + sum_{i != j} Cov(X_i, X_j) ] = (1 / n^2) * [ n * v + n * (n - 1) * rho * v ] = v / n + ((n - 1) / n) * rho * v = rho * v + ((1 - rho) / n) * vWhen models are truly uncorrelated (
rho = 0), this reduces tov / n; when models are identical (rho = 1), it stays atv; and asn -> infinity, the second term vanishes whilerho * vremains as the unbreakable correlation floor.
Follow-up questions
- How does base-tree depth—such as single-split stumps versus deep trees—affect feature interactions and generalization in Gradient Boosting?
- Which hyperparameters and data checks would you adjust if a Random Forest exhibits poor out-of-sample generalization relative to training fit?
- How do you derive the variance formula rho * v + ((1 - rho) / n) * v for the sample average of n identically distributed estimators each having variance v and pairwise correlation rho?
Similar questions
- Build and Cross-Validate a k-NN Classifier
- Expected Turns Until Zero Whole Tablets
- Lock-Free Background C++ Logger with Deferred Formatting
- Raw vs. Smart Pointers in Modern C++
- Negative Return Skewness and Black-Scholes Call Pricing Terms
- Balance Equalization Transfers and Flat Map Design
More Qube Research & Technologies interview questions
- Expected Turns Until Zero Whole Tablets Hard
- Lock-Free Background C++ Logger with Deferred Formatting Hard
- Raw vs. Smart Pointers in Modern C++ Hard Pro
- Negative Return Skewness and Black-Scholes Call Pricing Terms Hard Pro
- Build and Cross-Validate a k-NN Classifier Hard Pro
- Balance Equalization Transfers and Flat Map Design Medium Pro
- Even Integer Redistribution and Flat Map Iterators Medium Pro