Model Evaluation & Validation MCQs for NSCT

By the NSCT Exam Editorial Team · Updated 2026-11-24 · Facts checked against official sources on 2026-11-24

Model evaluation measures how well a trained model performs, using metrics such as precision, recall, F1 and ROC-AUC. Validation means estimating that performance honestly on data the model has not seen, for example with cross-validation. It is topic 9 of the AI, Machine Learning & Data Analytics area, which carries 10% of the NSCT according to HEC's Areas of Competencies. The area's 2026 average was 50.8% accuracy, per the HEC NSCT report and APP.

Every metric below comes from the four cells of a confusion matrix: true positives (TP), false positives (FP), false negatives (FN) and true negatives (TN). We use one running example: TP = 40, FP = 10, FN = 20, TN = 130 (200 rows). For more drills, see confusion matrix practice.

Precision

Precision = TP/(TP + FP): of everything predicted positive, how much really is positive. Example: 40/50 = 0.80.

Precision matters when a false positive is costly, such as a real e-mail sent to spam. Accuracy here is (40 + 130)/200 = 0.85, but on imbalanced data it misleads: calling all 1,000 rows negative when 10 are positive scores 99% and catches nothing.

Exam angle: read the column of predicted positives, not the row of actual positives.

Recall

Recall = TP/(TP + FN), also called sensitivity or the true positive rate (TPR): of all actual positives, how many the model caught. Example: 40/60 = 0.667. Its partner on the negative side is specificity = TN/(TN + FP) = 130/140 = 0.929, and the false positive rate is 1 - specificity = 0.071.

Exam angle: choose recall when a miss (false negative) is costly, as in cancer screening or fraud. Raising the decision threshold can never increase recall.

F1

F1 = 2PR/(P + R) = 2TP/(2TP + FP + FN), the harmonic mean. Example: 80/110 = 0.727, slightly below the arithmetic mean of 0.733.

The harmonic mean punishes imbalance: P = 0.5 and R = 1.0 give F1 = 0.667, not 0.75. F-beta = (1 + b^2)PR/(b^2 P + R) shifts the weight; F2 favours recall and F0.5 favours precision. For several classes, macro averaging takes the plain mean of per-class scores, while micro averaging pools TP, FP and FN first.

Exam angle: two models can share an F1 yet suit different problems, so check which error costs more.

ROC-AUC

A ROC curve plots TPR against FPR as the threshold moves from 1 to 0. AUC is the area under it, which equals the probability that a random positive scores higher than a random negative. A value of 0.5 means random ranking, 1.0 means perfect ranking, and below 0.5 means the ranking is reversed.

Example: scores 0.95, 0.85, 0.60, 0.30 with labels 1, 0, 1, 0. There are four positive-negative pairs. The 0.95 positive beats both negatives, and the 0.60 positive beats 0.30 but not 0.85, so AUC = 3/4 = 0.75.

When positives are rare, the precision-recall curve is usually more informative, because a small FPR can still hide many false alarms.

Cross-validation

k-fold cross-validation splits the data into k folds and trains k times, each time holding out one fold. With 1,000 rows and k = 5, every round trains on 800 rows and validates on 200. Variants handle special cases:

Scheme Use when
Stratified k-fold Classes are imbalanced; keeps class ratios in every fold
Group k-fold Several rows per patient or user; keeps a group in one fold
Time-series split Order matters; always validate on later periods
Leave-one-out (LOOCV) Very small data; n fits, high cost

Keep a final test set untouched until the end, because tuning on validation scores makes them optimistic. Fit every preprocessing step (scaling, imputation, oversampling) inside each training fold, or test information leaks into training.

Exam angle: a large gap between training and CV scores signals overfitting, covered in depth in overfitting and underfitting.

Common traps

Worked examples

1. Understanding. What does ROC-AUC = 0.9 mean? Answer: a randomly chosen positive gets a higher score than a randomly chosen negative 90% of the time. It does not mean 90% accuracy, which depends on the threshold.

2. Application. A model has TP = 30, FP = 20, FN = 10 and TN = 140. Find precision, recall and F1. Answer: precision 0.60, recall 0.75, F1 0.667. Precision = 30/50, recall = 30/40, and F1 = 2(0.6)(0.75)/1.35 = 0.667. Accuracy is 0.85, which looks better than the model really is.

3. Analysis. A student oversamples the minority class with SMOTE on the full dataset, then runs 10-fold CV and gets F1 = 0.95. On new data F1 is 0.70. Why? Answer: leakage. Synthetic rows built from validation points end up in the training folds, so each fold partly tests on near-copies of its training data. Oversample only inside each training fold, for example with a pipeline.

Practise

The quiz below has 100 Model Evaluation & Validation questions, filterable by tier and difficulty.

Practise: 100 questions

Interactive quiz loading. The first 10 questions are shown below.

  1. What does precision measure for a binary classifier?

    1. Of all the truly positive cases, the fraction predicted positive: TP/(TP + FN)
    2. The fraction of all predictions that are correct
    3. Of all the truly negative cases, the fraction predicted negative
    4. Of all the cases predicted positive, the fraction that are truly positive: TP/(TP + FP)
    Show answer

    Answer: D. Of all the cases predicted positive, the fraction that are truly positive: TP/(TP + FP)

    Precision = TP/(TP + FP). It answers: when the model says positive, how often is it right? TP/(TP + FN) is recall, the overall correct fraction is accuracy, and TN/(TN + FP) is specificity.

  2. Recall is also known as:

    1. Specificity, or the true negative rate
    2. Precision, or positive predictive value
    3. Sensitivity, or the true positive rate
    4. The false positive rate
    Show answer

    Answer: C. Sensitivity, or the true positive rate

    Recall = TP/(TP + FN): the share of actual positives the model catches. In medicine it is called sensitivity, and on a ROC curve it is the true positive rate (TPR).

  3. The F1 score is the ____ of precision and recall.

    1. arithmetic mean
    2. geometric mean
    3. product
    4. harmonic mean
    Show answer

    Answer: D. harmonic mean

    F1 = 2PR/(P + R), the harmonic mean. It is pulled towards the smaller of the two, so a model cannot get a high F1 by excelling at one and failing at the other.

  4. Which formula gives accuracy?

    1. TP/(TP + FP)
    2. TP/(TP + FN)
    3. (TP + TN)/(TP + TN + FP + FN)
    4. TN/(TN + FP)
    Show answer

    Answer: C. (TP + TN)/(TP + TN + FP + FN)

    Accuracy is the fraction of all predictions that are correct: (TP + TN)/total. The others are precision, recall and specificity.

  5. Specificity is defined as:

    1. TN/(TN + FP), the share of actual negatives correctly predicted negative
    2. TP/(TP + FN)
    3. FP/(FP + TN)
    4. TN/(TN + FN)
    Show answer

    Answer: A. TN/(TN + FP), the share of actual negatives correctly predicted negative

    Specificity, the true negative rate, is TN/(TN + FP). The false positive rate is 1 - specificity = FP/(FP + TN). TN/(TN + FN) is the negative predictive value.

  6. What does a ROC curve plot?

    1. True positive rate against false positive rate as the decision threshold varies
    2. Precision against recall as the threshold varies
    3. Training loss against the number of epochs
    4. Accuracy against the size of the training set
    Show answer

    Answer: A. True positive rate against false positive rate as the decision threshold varies

    The receiver operating characteristic (ROC) curve traces (FPR, TPR) pairs for every threshold, from (0, 0) when nothing is predicted positive to (1, 1) when everything is. Precision against recall is the PR curve; accuracy against training size is a learning curve.

  7. A classifier has ROC-AUC = 0.5. What does this mean?

    1. It is correct on 50% of all predictions
    2. Its precision and recall are both 0.5
    3. It ranks a random positive above a random negative only half the time, no better than chance
    4. It is perfect on half the classes
    Show answer

    Answer: C. It ranks a random positive above a random negative only half the time, no better than chance

    AUC equals the probability that a randomly chosen positive gets a higher score than a randomly chosen negative. 0.5 is a random ranking, 1.0 is perfect, and below 0.5 is worse than random. AUC is about ranking, not accuracy at one threshold.

  8. In k-fold cross-validation, how is the data used?

    1. The model is trained k times on the full data and tested on the same data
    2. k random rows are held out once as a test set
    3. The data is split into k features, and one feature is dropped each time
    4. It is split into k folds; each fold serves once as the validation set while the other k - 1 folds train the model
    Show answer

    Answer: D. It is split into k folds; each fold serves once as the validation set while the other k - 1 folds train the model

    k-fold CV produces k train/validate rounds, and every row is validated exactly once. Averaging the k scores gives a lower-variance estimate than a single hold-out split.

  9. What does stratified k-fold cross-validation guarantee?

    1. Each fold contains rows from only one class
    2. Rows from the same user are never split across folds
    3. Each fold keeps roughly the same class proportions as the full dataset
    4. Folds are ordered in time so the model never sees the future
    Show answer

    Answer: C. Each fold keeps roughly the same class proportions as the full dataset

    Stratification preserves the class ratio in every fold, which matters for imbalanced data where a plain split might leave a fold with no positives. Keeping groups together is GroupKFold; time ordering is time-series splitting.

  10. Leave-one-out cross-validation (LOOCV) on a dataset of n rows trains the model how many times?

    1. Once
    2. n times
    3. n - 1 times
    4. k times, where k = 10
    Show answer

    Answer: B. n times

    LOOCV is k-fold with k = n: each row is the validation set once, and each model trains on the other n - 1 rows. It uses nearly all the data for training, but it is expensive and its estimate can have high variance.

FAQs

When should I use F1 instead of accuracy?

Use F1 when the positive class is rare, or when both false positives and false negatives matter and you need one number. Accuracy is fine when classes are balanced and both errors cost about the same. On a 99:1 split, a do-nothing model scores 99% accuracy but 0 F1.

What is the difference between validation and test sets?

The validation set, or the CV folds, guides choices such as hyperparameters, features and model type. Because those choices are fitted to it, its score becomes optimistic. The test set is used once, at the very end, to estimate performance on genuinely new data. Nested cross-validation combines both roles when data is scarce.

Is a higher AUC always better?

For ranking quality on the same data, yes. But AUC summarises all thresholds, while a deployed model uses one. A model with slightly lower AUC may give better precision at the threshold you need. On heavily imbalanced data, also compare PR curves or average precision.

Next step

Continue with Feature Engineering & Selection MCQs, return to the AI & ML MCQ hub, or measure yourself in an NSCT mock test.