Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What is the probability of getting heads when flipping a single fair coin?
Not quite. Try another option.
Answer:
A fair coin has two equally likely outcomes, so .
Question 2 of 60 · Probability · Easy
What is the range of any valid probability value?
Not quite. Try another option.
Answer: Between and
A probability always lies in the interval , where means impossible and means certain.
Question 3 of 60 · Probability · Easy
Two events are called independent when:
Not quite. Try another option.
Answer: The occurrence of one does not affect the other
Independent events do not influence each other, so .
Question 4 of 60 · Statistics · Easy
Which measure represents the average of a set of numbers?
Not quite. Try another option.
Answer: Mean
The mean is the sum of all values divided by the number of values, giving the arithmetic average.
Question 5 of 60 · Statistics · Easy
The median of a dataset is the value that:
Not quite. Try another option.
Answer: Lies in the middle when data is ordered
The median is the central value of an ordered dataset, splitting it into two equal halves.
Question 6 of 60 · Statistics · Easy
What does standard deviation measure in a dataset?
Not quite. Try another option.
Answer: The spread of data around the mean
Standard deviation quantifies how much the values deviate from the mean; a larger value means more spread.
Question 7 of 60 · Linear algebra (applied focus) · Easy
In machine learning, a single row of features is often represented as a:
Not quite. Try another option.
Answer: Vector
A feature set for one data point is stored as a vector, an ordered list of numbers.
Question 8 of 60 · Linear algebra (applied focus) · Easy
A dataset with rows as samples and columns as features is best represented as a:
Not quite. Try another option.
Answer: Matrix
A matrix is a 2D grid of numbers, ideal for storing multiple samples (rows) each with multiple features (columns).
Question 9 of 60 · Linear algebra (applied focus) · Easy
What is the result of the dot product of two vectors?
Not quite. Try another option.
Answer: A scalar
The dot product multiplies corresponding elements and sums them, producing a single scalar value.
Question 10 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Easy
Which type of learning uses labeled data for training?
Not quite. Try another option.
Answer: Supervised learning
Supervised learning trains on input-output pairs where the correct labels are known in advance.
Question 11 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Easy
Grouping customers into segments without predefined labels is an example of:
Not quite. Try another option.
Answer: Unsupervised learning
Unsupervised learning finds hidden patterns or clusters in unlabeled data, such as customer segmentation.
Question 12 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Easy
In reinforcement learning, an agent learns by:
Not quite. Try another option.
Answer: Receiving rewards and penalties
A reinforcement learning agent learns optimal actions through trial and error, guided by rewards and penalties from the environment.
Question 13 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Easy
Predicting house prices from features like size and location is an example of a:
Not quite. Try another option.
Answer: Regression task
Regression predicts a continuous numeric output, such as a house price, from input features.
Question 14 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Easy
What is the main goal of feature engineering?
Not quite. Try another option.
Answer: To create useful input features for a model
Feature engineering transforms raw data into meaningful features that improve a model's performance.
Question 15 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Easy
Precision is defined as the ratio of:
Not quite. Try another option.
Answer: True positives to all predicted positives
Precision , measuring how many predicted positives are actually correct.
Question 16 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Easy
Recall measures the proportion of:
Not quite. Try another option.
Answer: Actual positives correctly identified
Recall , measuring how many of the actual positives the model successfully found.
Question 17 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Easy
What is the purpose of cross-validation?
Not quite. Try another option.
Answer: To assess how well a model generalizes
Cross-validation splits data into folds and tests the model on unseen parts to estimate its generalization performance.
Question 18 of 60 · Bayes theorem, Bayesian networks, and probabilistic reasoning · Easy
Bayes' theorem is used to compute which type of probability?
Not quite. Try another option.
Answer: Posterior (conditional) probability
Bayes' theorem updates a prior belief into a posterior probability given new evidence: .
Question 19 of 60 · Bayes theorem, Bayesian networks, and probabilistic reasoning · Easy
In Bayes' theorem , the term is called the:
Not quite. Try another option.
Answer: Prior
is the prior probability, representing our belief about before observing the evidence .
Question 20 of 60 · Bayes theorem, Bayesian networks, and probabilistic reasoning · Easy
A Bayesian network is best described as a:
Not quite. Try another option.
Answer: Graph showing probabilistic relationships between variables
A Bayesian network is a directed graph where nodes are variables and edges represent probabilistic dependencies between them.
Question 21 of 60 · Probability · Medium
A bag contains 3 red and 2 blue balls. Two balls are drawn without replacement. What is the probability that both are red?
Not quite. Try another option.
Answer:
. Sampling without replacement reduces both the count and total on the second draw.
Question 22 of 60 · Probability · Medium
If events and are independent with and , what is ?
Not quite. Try another option.
Answer:
For independent events, . Then .
Question 23 of 60 · Statistics · Medium
A dataset has values . What is the mean?
Not quite. Try another option.
Answer:
Sum , and there are 8 values, so mean .
Question 24 of 60 · Statistics · Medium
In a right-skewed distribution, which ordering of central tendency measures is typically correct?
Not quite. Try another option.
Answer: Mean > Median > Mode
In a right (positively) skewed distribution, the long tail on the right pulls the mean toward higher values, so Mean > Median > Mode.
Question 25 of 60 · Linear algebra (applied focus) · Medium
Given vectors and , what is the dot product ?
Not quite. Try another option.
Answer:
.
Question 26 of 60 · Linear algebra (applied focus) · Medium
In machine learning, why is matrix multiplication central to computing outputs of a fully connected neural network layer?
Not quite. Try another option.
Answer: It applies the learned weights to every input feature simultaneously as a linear transformation before activation
A dense layer computes , a matrix-vector product that linearly combines all inputs with learned weights before a nonlinear activation is applied.
Question 27 of 60 · Linear algebra (applied focus) · Medium
What does the identity matrix satisfy for any compatible matrix ?
Not quite. Try another option.
Answer:
The identity matrix acts as the multiplicative identity: multiplying any matrix by leaves it unchanged, analogous to multiplying a number by 1.
Question 28 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Medium
A company wants to group customers into segments based on purchasing behavior without any predefined labels. Which learning paradigm fits best?
Not quite. Try another option.
Answer: Unsupervised learning
Grouping unlabeled data into segments is a clustering task, a classic use of unsupervised learning where the model finds structure without target labels.
Question 29 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Medium
Which scenario is the clearest example of reinforcement learning?
Not quite. Try another option.
Answer: An agent learns to play a game by receiving rewards and penalties for its moves over time
Reinforcement learning involves an agent taking actions in an environment and learning a policy that maximizes cumulative reward through trial and feedback.
Question 30 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Medium
Predicting whether an email is spam or not spam using a dataset of labeled emails is an example of which task?
Not quite. Try another option.
Answer: Supervised classification
Labeled emails (spam/not spam) train a model to assign discrete class labels, which is supervised classification.
Question 31 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Medium
A classifier produces 40 true positives, 10 false positives, and 5 false negatives. What is its precision?
Not quite. Try another option.
Answer:
Precision .
Question 32 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Medium
For the same classifier with 40 true positives, 10 false positives, and 5 false negatives, what is its recall?
Not quite. Try another option.
Answer:
Recall .
Question 33 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Medium
What is the main advantage of -fold cross-validation over a single train/test split?
Not quite. Try another option.
Answer: It provides a more reliable estimate of model performance by using every data point for both training and validation across folds
By rotating which fold is held out, -fold cross-validation reduces the variance of the performance estimate and uses data more efficiently than a single split.
Question 34 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Medium
Which feature engineering technique is most appropriate for a categorical variable like 'color' with values {red, green, blue} for a linear model?
Not quite. Try another option.
Answer: One-hot encoding
One-hot encoding converts nominal categories into binary indicator columns, avoiding false ordinal relationships that integer labels would imply.
Question 35 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Medium
When is the F1-score preferred over accuracy as an evaluation metric?
Not quite. Try another option.
Answer: When classes are imbalanced and both false positives and false negatives matter
The F1-score is the harmonic mean of precision and recall, making it more informative than accuracy when class distributions are skewed.
Question 36 of 60 · Bayes theorem · Medium
A disease affects 1% of a population. A test is 90% accurate for those with the disease and gives 10% false positives. If a person tests positive, what is the approximate probability they have the disease?
Not quite. Try another option.
Answer:
. Low base rates keep the posterior small despite a positive test.
Question 37 of 60 · Bayes theorem · Medium
In Bayes' theorem , what does represent?
Not quite. Try another option.
Answer: The prior probability of
is the prior: our belief about before observing evidence . After incorporating , we obtain the posterior .
Question 38 of 60 · Bayesian networks · Medium
In a Bayesian network, what does a directed edge from node to node typically represent?
Not quite. Try another option.
Answer: A direct conditional dependency where 's probability depends on
Edges in a Bayesian network encode conditional dependencies; a parent node directly influences the conditional probability distribution of its child node.
Question 39 of 60 · Bayesian networks · Medium
What key property allows a Bayesian network to factorize a joint probability distribution compactly?
Not quite. Try another option.
Answer: Each variable is conditionally independent of its non-descendants given its parents
The local Markov property lets the joint distribution be written as a product of each node's conditional probability given only its parents, drastically reducing parameters.
Question 40 of 60 · Bayes theorem, Bayesian networks, and probabilistic reasoning · Medium
A Naive Bayes classifier makes which key assumption about features?
Not quite. Try another option.
Answer: Features are conditionally independent given the class label
Naive Bayes assumes conditional independence of features given the class, which simplifies computation of the likelihood as a product of per-feature probabilities.
Question 41 of 60 · Bayes theorem · Hard
A disease affects of a population. A test has sensitivity (true positive rate) and specificity (true negative rate). If a person tests positive, what is the approximate probability they actually have the disease?
Not quite. Try another option.
Answer:
Using Bayes: . The low base rate makes false positives dominate.
Question 42 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Hard
A fraud classifier detects of true fraud cases but also flags legitimate transactions as fraud. What are its precision and recall respectively?
Not quite. Try another option.
Answer: Precision , Recall
Recall . Precision .
Question 43 of 60 · Linear algebra (applied focus) · Hard
In Principal Component Analysis, the principal components are derived from the eigenvectors of the covariance matrix. What does the eigenvalue associated with each eigenvector represent?
Not quite. Try another option.
Answer: The variance captured along that component direction
Each eigenvalue quantifies the amount of variance in the data along the direction of its corresponding eigenvector. Larger eigenvalues indicate directions retaining more information.
Question 44 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Hard
In reinforcement learning, an agent with discount factor receives rewards of at , at , and at . What is the discounted return from ?
Not quite. Try another option.
Answer:
. The discount factor reduces the weight of future rewards.
Question 45 of 60 · Statistics · Hard
A model's predictions on a test set have a systematic offset from the true values across all samples. In the bias-variance framework, this consistent error most directly reflects which quantity?
Not quite. Try another option.
Answer: High bias
A consistent, systematic offset across predictions indicates the model is underfitting — a hallmark of high bias. High variance would instead show sensitivity to specific training samples.
Question 46 of 60 · Probability · Hard
Two events and satisfy , , and . Are and independent, and why?
Not quite. Try another option.
Answer: Yes, because
. Since the joint probability equals the product of marginals, the events are independent.
Question 47 of 60 · Bayesian networks · Hard
In a Bayesian network (a collider at ), which statement about conditional independence is correct?
Not quite. Try another option.
Answer: and are independent, but become dependent when conditioning on
At a collider, the parents are marginally independent, but observing the common effect (or its descendants) induces dependence between them — the 'explaining away' effect.
Question 48 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Hard
When performing -fold cross-validation, feature scaling parameters (e.g., mean and std) are computed on the entire dataset before splitting. Why is this problematic?
Not quite. Try another option.
Answer: It causes data leakage, inflating validation performance estimates
Fitting scaling parameters on all data leaks information from validation folds into training. Preprocessing must be fit only on training folds within each iteration to get unbiased estimates.
Question 49 of 60 · Statistics · Hard
For a highly right-skewed income distribution, which measure of central tendency best represents the 'typical' value, and which will be largest?
Not quite. Try another option.
Answer: Median is best; mean is largest
In right-skewed data, extreme high values pull the mean upward, so mean > median > mode. The median resists outliers and better reflects the typical value.
Question 50 of 60 · Linear algebra (applied focus) · Hard
A square matrix used as a linear transformation has a determinant of . What does this imply about the transformation and solving ?
Not quite. Try another option.
Answer: The transformation is non-invertible; has no unique solution
A zero determinant means is singular (non-invertible), collapsing space into a lower dimension. Thus has either no solution or infinitely many, never a unique one.
Question 51 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Hard
A retailer wants to group customers by purchasing behavior without predefined labels, then use these groups to target marketing. Which learning paradigm fits the grouping task?
Not quite. Try another option.
Answer: Unsupervised learning (clustering)
With no predefined labels, discovering natural groupings from data patterns is a clustering task, a form of unsupervised learning. Classification would require labeled examples.
Question 52 of 60 · Probability · Hard
A biased coin lands heads with probability . You observe heads in tosses. Under a maximum likelihood estimate, what is , and what is a key limitation of this estimate?
Not quite. Try another option.
Answer: ; it overfits small samples, ignoring uncertainty
MLE gives . With so few observations this is an overconfident estimate; Bayesian approaches with a prior would yield a more moderate estimate.
Question 53 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Hard
A classifier achieves with precision . What is its recall?
Not quite. Try another option.
Answer:
. Solving: .
Question 54 of 60 · Bayes theorem · Hard
In a Naive Bayes classifier, the 'naive' assumption is that features are conditionally independent given the class. What is the primary consequence when features are actually strongly correlated?
Not quite. Try another option.
Answer: Predicted class probabilities become poorly calibrated, though ranking may still work
Correlated features get 'double-counted', distorting the probability estimates (often pushing them toward extremes). Surprisingly, class rankings and thus classification decisions often remain reasonable.
Question 55 of 60 · Statistics · Hard
A hypothesis test yields at significance level . Which interpretation is correct?
Not quite. Try another option.
Answer: Reject the null; there is a chance of data this extreme if the null were true
The p-value is . Since , we reject . It is not the probability that either hypothesis is true.
Question 56 of 60 · Supervised, unsupervised, and reinforcement learning: concepts and real-world use · Hard
In reinforcement learning, an agent that always chooses the action with the highest current estimated value faces which fundamental problem?
Pure exploitation (greedy action selection) may lock onto locally optimal actions and never discover superior alternatives. This is the exploration-exploitation dilemma.
Question 57 of 60 · Bayesian networks · Hard
A Bayesian network has binary variables in a chain . How many independent parameters are needed to fully specify the joint distribution?
Not quite. Try another option.
Answer:
needs parameter. Each of the other four has one binary parent, needing parameters each: . Total , far fewer than the for a full joint table.
Question 58 of 60 · Linear algebra (applied focus) · Hard
In gradient descent, the update rule is . If the learning rate is set far too large, what typically happens?
Not quite. Try another option.
Answer: The loss diverges or oscillates instead of converging
An overly large step size causes updates to overshoot the minimum repeatedly, so the loss can oscillate or grow without bound rather than descending toward the optimum.
Question 59 of 60 · Feature engineering and model evaluation (cross-validation, precision, recall) · Hard
For a severely imbalanced dataset ( negative class), a model predicting 'negative' for everything achieves accuracy. Which metric best exposes this model's true weakness?
Not quite. Try another option.
Answer: Recall on the positive class
The always-negative model detects zero positives, so its positive-class recall is . Accuracy is misleading under imbalance; recall on the minority class reveals the failure directly.
Question 60 of 60 · Probability · Hard
A random variable has and . What is the standard deviation of ?
Not quite. Try another option.
Answer:
. The standard deviation is .
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of INT428 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of INT428 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.