LAISHA
Open Laisha

SAS statistical certifications Statistical & Machine Learning for Agriculture: practice questions

SAS statistical certifications (Statistical Business Analyst, Applied Statistics Associate, Statistics for Machine Learning) · USA / global · SAS Institute

Original practice questions written to the published syllabus · not past papers
10worked here, free
93written to this exam in this subject
11syllabus units

What this subject covers

Prediction from data with honest validation: the bias-variance trade-off, regularised regression, trees and ensembles, support vector machines, neural networks and deep learning for images, unsupervised learning, and how to use them on yield, disease, price and image data without fooling yourself. The Agribusiness and Agricultural Engineering tracks introduce ML; this is the statistician's full course.

In the exams: GATE DA 'Machine Learning' and 'AI' (heavy); AICE-JRF Computer Application (present); SAS Statistics for Machine Learning credential (present)

What SAS statistical certifications asks from it

SAS statistical certifications (Statistics for Machine Learning)

Predictive modelling workflow: partitioning, regularisation, trees and ensembles, neural networks, model assessment and interpretation.

Where the 93 questions fall

How our questions for SAS statistical certifications spread across the units of Statistical & Machine Learning for Agriculture. Difficulty: 26 easy, 52 medium, 15 hard.

Neural networks and deep learning; CNNs for plant and field images10
Cross-validation: k-fold and leave-one-out; spatial and temporal blocking9
Linear and quadratic discriminant analysis and logistic classification9
Decision trees, random forests and gradient boosting9
Supervised learning and the bias-variance trade-off8
Regularised regression: ridge, lasso and elastic net8
k-nearest neighbours and naive Bayes8
Support vector machines8
Unsupervised learning: k-means, k-medoids and hierarchical clustering8
Dimensionality reduction: PCA and embeddings8
Model interpretation: variable importance and SHAP8

10 practice questions, worked

Choose an answer, then open the working. Each explanation says why the right answer is right and why the others are not.

1 · Linear and quadratic discriminant analysis and logistic classification · medium

With 3 classes and 10 predictors, how many covariance parameters must QDA estimate in total?

  1. 55
  2. 30
  3. 165
  4. 300
Answer and working

C. 165

Each 10 x 10 covariance matrix has p(p + 1)/2 = 55 distinct parameters, and QDA needs one per class: 3 x 55 = 165. LDA needs only 55; 300 ignores symmetry; 30 counts variances only.

Further reading: James et al., An Introduction to Statistical Learning

2 · Decision trees, random forests and gradient boosting · medium

For a node with 30 diseased and 70 healthy plants, what is the entropy in bits?

  1. 0.611
  2. 1.000
  3. 0.420
  4. 0.881
Answer and working

D. 0.881

Entropy = -(0.3 log2 0.3 + 0.7 log2 0.7) = 0.881 bits. Natural logs give 0.611 nats; 1.000 is the maximum, for a 50:50 node.

Further reading: Breiman (2001); Hastie, Tibshirani and Friedman, The Elements of Statistical Learning

3 · Decision trees, random forests and gradient boosting · medium

In bagging with n = 100 observations, what proportion of observations is expected to be left out of a given bootstrap sample?

  1. 0.010
  2. 0.632
  3. 0.366
  4. 0.500
Answer and working

C. 0.366

Each observation is missed with probability (1 - 1/100)^100 = 0.366, close to 1/e = 0.368. 0.632 is the proportion included; these out-of-bag cases give a free test-error estimate.

Further reading: Breiman (2001); Hastie, Tibshirani and Friedman, The Elements of Statistical Learning

4 · Decision trees, random forests and gradient boosting · easy

How does a random forest differ from bagged trees?

  1. Each tree is fitted to the residuals of the previous tree
  2. Each split considers only a random subset of predictors
  3. Trees are fitted without bootstrap samples
  4. Each tree is pruned to a single split
Answer and working

B. Each split considers only a random subset of predictors

Random predictor subsets decorrelate the trees, so averaging reduces variance more; fitting residuals sequentially is boosting.

Further reading: Breiman (2001); Hastie, Tibshirani and Friedman, The Elements of Statistical Learning

5 · Decision trees, random forests and gradient boosting · easy

What is the main weakness of a single, unpruned decision tree?

  1. High variance
  2. High bias in every problem
  3. It cannot model interactions
  4. It cannot handle categorical predictors
Answer and working

A. High variance

Small changes in data can change the whole tree, so its predictions vary greatly; trees model interactions and handle categorical predictors naturally.

Further reading: Breiman (2001); Hastie, Tibshirani and Friedman, The Elements of Statistical Learning

6 · Neural networks and deep learning; CNNs for plant and field images · medium

How many parameters (weights plus biases) does a fully connected layer from 100 inputs to 50 units have?

  1. 5,100
  2. 5,000
  3. 5,050
  4. 150
Answer and working

C. 5,050

100 x 50 = 5,000 weights plus 50 biases = 5,050. 5,000 omits biases; 5,100 counts 100 biases.

Further reading: Goodfellow, Bengio and Courville, Deep Learning

7 · Unsupervised learning: k-means, k-medoids and hierarchical clustering · easy

Which linkage in hierarchical clustering tends to produce long, straggly chains of clusters?

  1. Average linkage
  2. Ward's method
  3. Single linkage
  4. Complete linkage
Answer and working

C. Single linkage

Single linkage merges on the closest pair, so clusters can grow by chaining; complete linkage and Ward's method produce compact clusters.

Further reading: James et al., An Introduction to Statistical Learning; Kaufman and Rousseeuw

8 · Unsupervised learning: k-means, k-medoids and hierarchical clustering · easy

What is a medoid?

  1. The point midway between two cluster centres
  2. A real observation central to its cluster
  3. The arithmetic mean of a cluster
  4. The median of the first principal component
Answer and working

B. A real observation central to its cluster

k-medoids represents each cluster by a real case, which is robust to outliers and easy to describe.

Further reading: James et al., An Introduction to Statistical Learning; Kaufman and Rousseeuw

9 · Dimensionality reduction: PCA and embeddings · medium

By the eigenvalue-greater-than-one rule, how many components would be kept from a correlation-matrix PCA with eigenvalues 2.4, 1.1, 0.3 and 0.2?

  1. 2
  2. 1
  3. 4
  4. 3
Answer and working

A. 2

Two eigenvalues (2.4 and 1.1) exceed 1, the average eigenvalue of a correlation matrix.

Further reading: James et al., An Introduction to Statistical Learning

10 · Model interpretation: variable importance and SHAP · medium

A yield model's most important predictor by SHAP is the field identifier. What should the analyst suspect?

  1. It memorises fixed field-level effects
  2. The field identifier is the true cause of yield
  3. The model is ideal for new fields
  4. SHAP values cannot be computed for identifiers
Answer and working

A. It memorises fixed field-level effects

Identifiers carry fixed field effects; a model relying on them will not generalise to new fields. Interpretation is a check for such artefacts.

Further reading: Molnar, Interpretable Machine Learning; Lundberg and Lee (2017)

Ten here, 93 in the app. The Laisha app has every practice question we have written to SAS statistical certifications in this subject, marked as you go, with timed papers, a jump-to-unanswered list and a certificate when you pass at 70 per cent.

Free for ten days, then one subscription of US$10 a month. We would rather say so here than have you find it later.

Practise the full set in Laisha →

Read the subject

Statistical & Machine Learning for AgricultureThe full study manual, free SAS statistical certificationsFormat, sections and how it has changed

More SAS statistical certifications practice

Exploratory Data Analysis & Statistical Graphics

Statistical & Machine Learning for Agriculture for other exams

GATE · IndiaICAR-IASRI MSc and PhD · India

Ask Laisha about this

Opens Laisha's chat with your question ready to send. Sign in or start free.