Machine Learning Course Introduction
- 102Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is machine learning?
What is machine learning?
102 questions
- 1
What is machine learning?
- A
A programming method that requires every possible response to be manually specified
- B
A database system designed only to store labeled examples
- C
A hardware technology that increases the speed of computer processors
- D
A subfield of artificial intelligence that learns from data to make predictions or decisions
Correct answer
DA subfield of artificial intelligence that learns from data to make predictions or decisions
Explanation
Machine learning is described as a subfield of artificial intelligence that enables systems to learn from data and make data-driven decisions or predictions without being explicitly programmed for every task.
- A
- 2
How are artificial intelligence, machine learning, and deep learning related?
- A
Artificial intelligence contains machine learning, and machine learning contains deep learning
- B
Deep learning contains artificial intelligence, and artificial intelligence contains machine learning
- C
Artificial intelligence, machine learning, and deep learning are identical terms
- D
Machine learning and deep learning are unrelated to artificial intelligence
Correct answer
AArtificial intelligence contains machine learning, and machine learning contains deep learning
Explanation
Artificial intelligence is the broadest concept, machine learning is a subset of artificial intelligence, and deep learning is a subset of machine learning.
- A
- 3
What is a defining characteristic of deep learning?
- A
It produces rules that are always easy for humans to interpret
- B
It requires all relevant features to be manually selected before training
- C
It works only with small datasets and low-powered hardware
- D
It uses deep neural networks that can learn increasingly complex features from large amounts of data
Correct answer
DIt uses deep neural networks that can learn increasingly complex features from large amounts of data
Explanation
Deep learning uses multilayer neural networks and can automatically learn features at multiple levels of abstraction, especially when large datasets and suitable hardware are available.
- A
- 4
What generally happens when a trained machine-learning model performs below an acceptable accuracy level?
- A
The algorithm is trained again using an augmented or improved training dataset
- B
The model is deployed immediately because low accuracy indicates generalization
- C
The input data is discarded and no further evaluation is performed
- D
The model is converted automatically into an unsupervised algorithm
Correct answer
AThe algorithm is trained again using an augmented or improved training dataset
Explanation
The described workflow evaluates predictions and retrains the algorithm with an augmented training dataset when accuracy is not acceptable.
- A
- 5
Which type of machine learning uses an agent, an environment, actions, and rewards?
- A
Unsupervised learning
- B
Reinforcement learning
- C
Supervised learning
- D
Descriptive statistics
Correct answer
BReinforcement learning
Explanation
Reinforcement learning models interaction between a learning agent and an environment, using rewards or penalties to improve future actions.
- A
- 6
Which statement best distinguishes machine learning from traditional explicit programming?
- A
Machine-learning systems operate without algorithms or computational procedures
- B
Machine-learning systems cannot make predictions from previously unseen inputs
- C
Machine-learning systems learn patterns from data instead of receiving every rule explicitly
- D
Machine-learning systems require a human to specify every output for every input
Correct answer
CMachine-learning systems learn patterns from data instead of receiving every rule explicitly
Explanation
Machine-learning programs are designed to learn patterns from data and improve when exposed to new data rather than relying entirely on manually specified rules.
- A
- 7
What kind of data is required for supervised learning?
- A
Only randomly generated data with no target variable
- B
Data that contains no measurable attributes
- C
Labeled data containing input attributes and expected outputs
- D
Unlabeled data containing inputs but no associated outputs
Correct answer
CLabeled data containing input attributes and expected outputs
Explanation
Supervised learning uses training instances that contain input attributes together with known or expected output values.
- A
- 8
What is the goal of supervised learning in mathematical terms?
- A
To group input variables without considering any output
- B
To learn a mapping from input variables X to an output variable Y
- C
To remove all variation from a dataset
- D
To maximize rewards without using training examples
Correct answer
BTo learn a mapping from input variables X to an output variable Y
Explanation
Supervised learning seeks to approximate a mapping function from input X to output Y so that outputs can be predicted for unseen inputs.
- A
- 9
Which task is an example of supervised classification?
- A
Predicting whether an image contains a duck or does not contain a duck
- B
Grouping unlabeled images according to visual similarity
- C
Finding hidden customer groups without predefined labels
- D
Reducing the number of variables in a dataset
Correct answer
APredicting whether an image contains a duck or does not contain a duck
Explanation
Classification assigns observations to discrete categories, such as “duck” or “not duck,” using labeled training examples.
- A
- 10
Which task is an example of supervised regression?
- A
Assigning an email to a spam or non-spam category
- B
Grouping customers into clusters without labels
- C
Predicting a continuous house price from property characteristics
- D
Selecting the most common category in a dataset
Correct answer
CPredicting a continuous house price from property characteristics
Explanation
Regression predicts a continuous-valued response, such as a house price, from input features.
- A
- 11
What distinguishes unsupervised learning from supervised learning?
- A
Unsupervised learning always requires a teacher to correct predictions
- B
Unsupervised learning can only be used for continuous numerical targets
- C
Unsupervised learning predicts a known target for every training example
- D
Unsupervised learning uses input data without corresponding labeled outputs
Correct answer
DUnsupervised learning uses input data without corresponding labeled outputs
Explanation
Unsupervised learning works with unlabeled data and attempts to discover underlying structure, distributions, or groups.
- A
- 12
What is a limitation of clustering in unsupervised learning?
- A
It can identify similar groups but generally cannot determine the meaning of each group automatically
- B
It requires every observation to have a known output label
- C
It can only process data with exactly two categories
- D
It cannot group observations according to any similarity
Correct answer
AIt can identify similar groups but generally cannot determine the meaning of each group automatically
Explanation
Clustering can group similar instances, but the algorithm may not know what those clusters represent semantically.
- A
- 13
What is exploration in reinforcement learning?
- A
Using only previously learned information to choose an action
- B
Trying actions to learn about the environment through trial and error
- C
Assigning labels to unlabeled training examples
- D
Removing all rewards from the learning process
Correct answer
BTrying actions to learn about the environment through trial and error
Explanation
Exploration occurs when an agent tries actions on a trial-and-error basis to obtain more information about its environment.
- A
- 14
What is exploitation in reinforcement learning?
- A
Grouping similar observations without labels
- B
Training a model with a known target variable
- C
Using knowledge already gained from the environment to select an action
- D
Trying completely unknown actions without considering prior results
Correct answer
CUsing knowledge already gained from the environment to select an action
Explanation
Exploitation means using the agent’s current knowledge to choose actions expected to produce good results.
- A
- 15
Which algorithm is associated with unsupervised clustering?
- A
Linear regression
- B
Logistic regression
- C
Support vector regression
- D
K-means
Correct answer
DK-means
Explanation
K-means is presented as a popular unsupervised learning algorithm used to group similar data instances into clusters.
- A
- 16
What is qualitative data?
- A
Data that can take infinitely many numerical values
- B
Data describing characteristics that are observed but not easily measured numerically
- C
Data restricted to measurements of physical quantities
- D
Data consisting only of continuous variables
Correct answer
BData describing characteristics that are observed but not easily measured numerically
Explanation
Qualitative data concerns characteristics and descriptors that may be observed subjectively but are not easily measured numerically.
- A
- 17
Which example represents nominal data?
- A
A rating of poor, average, or excellent
- B
Gender categories with no inherent ranking
- C
The weight of a person measured in kilograms
- D
The number of students in a classroom
Correct answer
BGender categories with no inherent ranking
Explanation
Nominal data consists of categories without an inherent order, such as gender or race categories.
- A
- 18
Which example represents ordinal data?
- A
The exact weight of a customer
- B
Customer ratings such as poor, average, and good
- C
Customer identification numbers
- D
The number of products purchased
Correct answer
BCustomer ratings such as poor, average, and good
Explanation
Ordinal data consists of categories that have a meaningful order or ranking, such as poor, average, and good.
- A
- 19
What distinguishes discrete quantitative data from continuous quantitative data?
- A
Discrete data has no numerical values, whereas continuous data has only labels
- B
Discrete data is always subjective, whereas continuous data is always categorical
- C
Discrete data is unordered, whereas continuous data is always ranked
- D
Discrete data has a finite set of possible values, whereas continuous data can take infinitely many values
Correct answer
DDiscrete data has a finite set of possible values, whereas continuous data can take infinitely many values
Explanation
Discrete data can take a finite number of possible values, such as the number of students, while continuous data can take infinitely many values, such as weight.
- A
- 20
What is the relationship between a population and a sample?
- A
A sample is a subset selected from a larger population
- B
A sample contains every individual in the population
- C
A population and a sample are always identical
- D
A population is always a subset of a sample
Correct answer
AA sample is a subset selected from a larger population
Explanation
A population is the full collection being studied, while a sample is a subset intended to represent that population.
- A
- 21
Why is sampling used in statistical studies?
- A
Sampling eliminates the need to analyze data statistically
- B
Sampling is used only when the population has no measurable properties
- C
Studying a representative subset is often more practical than studying an entire population
- D
Sampling guarantees that every observation has the same value
Correct answer
CStudying a representative subset is often more practical than studying an entire population
Explanation
Sampling allows researchers to draw inferences about a large population without measuring every member of that population.
- A
- 22
What happens in random probability sampling?
- A
Each member of the population has an equal chance of being selected
- B
Researchers select only the most convenient participants
- C
The population is divided into subgroups and only one subgroup is studied
- D
Every nth record is selected after an ordered starting point
Correct answer
AEach member of the population has an equal chance of being selected
Explanation
Random sampling gives each member of the population an equal chance of inclusion in the sample.
- A
- 23
What happens in systematic sampling?
- A
Every nth record is selected from the population
- B
Researchers select participants entirely according to personal judgment
- C
Only members sharing a particular characteristic are selected
- D
Every member is selected with an independently equal probability
Correct answer
AEvery nth record is selected from the population
Explanation
Systematic sampling selects records at a fixed interval, such as every second or every tenth record.
- A
- 24
What is stratified sampling?
- A
The population is treated as one undivided group
- B
The population is divided into groups sharing a characteristic, followed by sampling within those groups
- C
Only the most accessible members of the population are selected
- D
The population is sampled by selecting every nth observation
Correct answer
BThe population is divided into groups sharing a characteristic, followed by sampling within those groups
Explanation
In stratified sampling, the population is divided into strata that share a characteristic, and random sampling can then be performed within the strata.
- A
- 25
What is the primary purpose of descriptive statistics?
- A
To assign rewards to an agent in an environment
- B
To prove that a sample represents every possible population
- C
To predict future outcomes without using observed data
- D
To summarize and describe the characteristics of a specific dataset
Correct answer
DTo summarize and describe the characteristics of a specific dataset
Explanation
Descriptive statistics summarizes and presents the features of a dataset, often using numerical and graphical summaries.
- A
- 26
What is the primary purpose of inferential statistics?
- A
To group data points without using probability
- B
To describe only the formatting of a dataset
- C
To list every observation in a population without summarizing it
- D
To make conclusions or predictions about a population from sample data
Correct answer
DTo make conclusions or predictions about a population from sample data
Explanation
Inferential statistics uses sample data and statistical models to draw conclusions or predictions about a larger population.
- A
- 27
How is the mean calculated for a dataset?
- A
By selecting the middle value after sorting the data
- B
By selecting the most frequently occurring value
- C
By dividing the sum of all values by the number of values
- D
By subtracting the minimum value from the maximum value
Correct answer
CBy dividing the sum of all values by the number of values
Explanation
The mean is the arithmetic average, calculated as the sum of the observations divided by the number of observations.
- A
- 28
How is the median determined?
- A
It is the difference between the maximum and minimum values
- B
It is the average of every value in the dataset
- C
It is always the most frequently occurring value
- D
It is the central value after the observations are ordered
Correct answer
DIt is the central value after the observations are ordered
Explanation
The median is the middle value in an ordered dataset; with an even number of observations, it is the average of the two middle values.
- A
- 29
What is the mode of a dataset?
- A
The value that occurs most frequently
- B
The difference between the largest and smallest values
- C
The middle value after sorting
- D
The average of all values
Correct answer
AThe value that occurs most frequently
Explanation
The mode is the most frequently occurring value in a sample or population.
- A
- 30
How is the range calculated?
- A
By subtracting the first quartile from the third quartile
- B
By subtracting the minimum value from the maximum value
- C
By averaging the two central observations
- D
By dividing the sum of values by the sample size
Correct answer
BBy subtracting the minimum value from the maximum value
Explanation
The range measures spread by calculating the maximum value minus the minimum value.
- A
- 31
How is the interquartile range calculated?
- A
By subtracting the minimum value from the maximum value
- B
By subtracting the first quartile from the third quartile
- C
By adding the first and second quartiles
- D
By dividing the variance by the sample size
Correct answer
BBy subtracting the first quartile from the third quartile
Explanation
The interquartile range is Q3−Q1, representing the spread of the middle half of the data.
- A
- 32
What does standard deviation measure?
- A
The dispersion of observations around their mean
- B
The probability of a particular event occurring
- C
The total number of observations in a dataset
- D
The most common category in the dataset
Correct answer
AThe dispersion of observations around their mean
Explanation
Standard deviation measures how dispersed the values are from the mean.
- A
- 33
What does entropy measure in a decision-tree context?
- A
The distance between two numerical observations
- B
The number of features in a dataset
- C
The uncertainty or impurity in a dataset
- D
The total number of training examples
Correct answer
CThe uncertainty or impurity in a dataset
Explanation
Entropy quantifies uncertainty or impurity; a pure subset has low entropy, while a highly mixed subset has greater entropy.
- A
- 34
How is the best attribute for a decision-tree split commonly selected?
- A
By selecting the attribute that appears last in the dataset
- B
By selecting the attribute with the smallest number of categories
- C
By selecting the attribute with the largest number of missing values
- D
By selecting the attribute with the highest information gain
Correct answer
DBy selecting the attribute with the highest information gain
Explanation
Information gain measures the reduction in entropy produced by a split, so the attribute with the highest information gain is selected.
- A
- 35
What does a confusion matrix compare?
- A
Population size with sample size
- B
Continuous variables with categorical variables
- C
Training time with testing time
- D
Actual class labels with predicted class labels
Correct answer
DActual class labels with predicted class labels
Explanation
A confusion matrix evaluates a classifier by comparing actual outcomes with predicted outcomes, including true and false classifications.
- A
- 36
What is probability?
- A
A method for sorting observations into quartiles
- B
A measure of how likely an event is to occur
- C
A technique for removing outliers from a dataset
- D
A measure of the average value in a dataset
Correct answer
BA measure of how likely an event is to occur
Explanation
Probability measures the likelihood of an event and ranges from 0 to 1.
- A
- 37
What is the probability of rolling a three on a fair six-sided die?
- A
rac{5}{6}
- B
rac{1}{6}
- C
rac{1}{3}
- D
rac{3}{6}
Correct answer
Brac{1}{6}
Explanation
A fair die has six equally likely outcomes, and only one outcome is three, so the probability is 61.
- A
- 38
What is a sample space?
- A
The complete set of possible outcomes of a random experiment
- B
The probability of one specified outcome
- C
A single outcome selected from an experiment
- D
A subset of a population used for statistical inference
Correct answer
AThe complete set of possible outcomes of a random experiment
Explanation
The sample space contains every possible outcome of a random experiment.
- A
- 39
What is a disjoint pair of events?
- A
A pair of events whose probabilities must sum to two
- B
A pair of events that always occur together
- C
A pair of events with exactly the same outcomes
- D
A pair of events that cannot occur together
Correct answer
DA pair of events that cannot occur together
Explanation
Disjoint events have no outcomes in common; for example, one card cannot be both a king and a queen.
- A
- 40
What is conditional probability?
- A
The probability of all possible outcomes added together
- B
The probability of one event occurring given that another event has occurred
- C
The probability that two impossible events occur simultaneously
- D
The probability of an event without considering any other event
Correct answer
BThe probability of one event occurring given that another event has occurred
Explanation
Conditional probability evaluates the likelihood of an event under the condition that another event has already occurred.
- A
- 41
What is a property of a probability density function for a continuous variable?
- A
The curve must contain only discrete categories
- B
The total area under its curve equals 1
- C
The probability at every exact point must equal 1
- D
The curve cannot be continuous over an interval
Correct answer
BThe total area under its curve equals 1
Explanation
For a probability density function, the total area under the curve is 1, and probabilities over intervals are represented by areas under the curve.
- A
- 42
What does the central limit theorem state?
- A
Every individual observation in a population is normally distributed
- B
The sampling distribution of the mean becomes approximately normal for sufficiently large samples
- C
A dataset with a small sample must have zero variance
- D
The mean of a sample is always exactly equal to the population mean
Correct answer
BThe sampling distribution of the mean becomes approximately normal for sufficiently large samples
Explanation
The central limit theorem states that the sampling distribution of the mean approaches a normal distribution as sample size becomes sufficiently large.
- A
- 43
What is the purpose of Bayes' theorem?
- A
To calculate the slope of a linear regression line
- B
To divide an unlabeled dataset into clusters
- C
To relate a conditional probability to its inverse using prior and likelihood information
- D
To calculate the range of a dataset from its quartiles
Correct answer
CTo relate a conditional probability to its inverse using prior and likelihood information
Explanation
Bayes' theorem relates posterior probability to prior probability and likelihood, allowing probabilities to be updated using evidence.
- A
- 44
What is point estimation?
- A
Using a range of values to express uncertainty about a parameter
- B
Testing whether two events are disjoint
- C
Grouping observations according to their similarity
- D
Using sample data to estimate a single value of an unknown population parameter
Correct answer
DUsing sample data to estimate a single value of an unknown population parameter
Explanation
Point estimation uses a sample statistic, such as a sample mean, as an estimate of one population parameter.
- A
- 45
What is an interval estimate?
- A
A category assigned to an unlabeled observation
- B
A range of values used to estimate a population parameter
- C
A single value used to estimate a population parameter
- D
The difference between two class probabilities
Correct answer
BA range of values used to estimate a population parameter
Explanation
An interval estimate provides a range within which a population parameter is expected to lie.
- A
- 46
What does a confidence interval describe?
- A
The percentage of observations classified correctly by a tree
- B
The range of plausible values for a population parameter at a stated confidence level
- C
The number of clusters in an unsupervised model
- D
The exact value of every observation in the population
Correct answer
BThe range of plausible values for a population parameter at a stated confidence level
Explanation
A confidence interval gives a range of plausible parameter values and is interpreted together with a confidence level.
- A
- 47
What is the margin of error?
- A
The greatest expected distance between a point estimate and the parameter it estimates at a given confidence level
- B
The number of incorrectly labeled training examples
- C
The difference between the largest and smallest observations
- D
The probability that a classifier predicts a positive class
Correct answer
AThe greatest expected distance between a point estimate and the parameter it estimates at a given confidence level
Explanation
The margin of error represents the possible deviation of an interval estimate from the point estimate or population parameter at a stated confidence level.
- A
- 48
What is the purpose of hypothesis testing?
- A
To create clusters without evaluating evidence
- B
To guarantee that a sample is identical to its population
- C
To calculate only the median of a dataset
- D
To determine whether sample evidence supports or rejects a claim about a population
Correct answer
DTo determine whether sample evidence supports or rejects a claim about a population
Explanation
Hypothesis testing uses sample evidence to assess whether a proposed condition or claim about a population should be accepted or rejected.
- A
- 49
What is the null hypothesis generally intended to represent?
- A
The assumption that is evaluated for possible rejection
- B
The claim that must always be rejected
- C
The set of all alternative machine-learning algorithms
- D
The numerical average of the sample
Correct answer
AThe assumption that is evaluated for possible rejection
Explanation
The null hypothesis represents the baseline assumption being tested; evidence may lead to rejecting it in favor of the alternative hypothesis.
- A
- 50
What is the main purpose of linear regression?
- A
To model the relationship between independent variables and a continuous dependent variable
- B
To group unlabeled observations into clusters
- C
To classify observations into exactly two categories
- D
To select actions that maximize rewards in an environment
Correct answer
ATo model the relationship between independent variables and a continuous dependent variable
Explanation
Linear regression models a continuous response as a function of one or more explanatory variables.
- A
- 51
What does a linear regression equation represent?
- A
A collection of unlabeled clusters
- B
A probability distribution that must always be bell-shaped
- C
A tree structure used to split categorical data
- D
A line that best fits the observed relationship between predictors and a response
Correct answer
DA line that best fits the observed relationship between predictors and a response
Explanation
Linear regression fits a line, such as y=mx+c, that minimizes the discrepancy between predicted and observed values.
- A
- 52
What is the main difference between linear and logistic regression?
- A
Linear regression uses a sigmoid function, whereas logistic regression uses only a straight line
- B
Linear regression is unsupervised, whereas logistic regression is reinforcement learning
- C
Linear regression predicts continuous values, whereas logistic regression predicts categorical outcomes or probabilities
- D
Linear regression requires labels, whereas logistic regression never uses labels
Correct answer
CLinear regression predicts continuous values, whereas logistic regression predicts categorical outcomes or probabilities
Explanation
Linear regression models continuous responses, while logistic regression maps inputs to categorical outcomes, commonly through a sigmoid function.
- A
- 53
What is the purpose of the sigmoid function in logistic regression?
- A
To map an input to a value between 0 and 1 that can represent a probability
- B
To ensure that all input variables have a mean of zero
- C
To convert a continuous response into a quartile
- D
To calculate the distance between two observations
Correct answer
ATo map an input to a value between 0 and 1 that can represent a probability
Explanation
The sigmoid function converts a real-valued input into a value between 0 and 1, supporting probability-based classification.
- A
- 54
What does an R2 value measure in linear regression?
- A
How closely the observed data fit the regression line
- B
The probability of a categorical outcome
- C
The number of predictors used in a model
- D
The distance between two cluster centroids
Correct answer
AHow closely the observed data fit the regression line
Explanation
R2, or the coefficient of determination, measures how closely the data are related to the fitted regression line.
- A
- 55
Why is linear regression generally unsuitable as a direct classification method?
- A
It requires unlabeled data rather than labeled data
- B
It always produces a nonlinear decision boundary
- C
Its predicted values are continuous and can fall outside the required class range
- D
It cannot use numerical input variables
Correct answer
CIts predicted values are continuous and can fall outside the required class range
Explanation
Linear regression predicts continuous values, whereas classification requires discrete outcomes; its predictions can also fall outside a desired range such as 0 to 1.
- A
- 56
What is a decision tree?
- A
A probability distribution with a bell-shaped curve
- B
A method for storing data without labels
- C
A numerical technique for calculating standard deviation
- D
A graphical structure that represents decisions and their possible outcomes
Correct answer
DA graphical structure that represents decisions and their possible outcomes
Explanation
A decision tree begins with a root and branches through questions or conditions until it reaches outcome or leaf nodes.
- A
- 57
What is the root node in a decision tree?
- A
Any node that contains a missing value
- B
The final node that produces a prediction
- C
The first or topmost node that represents the initial split
- D
The node with the smallest information gain
Correct answer
CThe first or topmost node that represents the initial split
Explanation
The root node is the base or first node of a decision tree and represents the initial division of the data.
- A
- 58
What is a leaf node?
- A
The first node from which the tree grows
- B
A node that always has two children
- C
A node used only to calculate the sample mean
- D
A terminal node that is not split into further child nodes
Correct answer
DA terminal node that is not split into further child nodes
Explanation
A leaf node appears at the end of a branch and represents a final prediction or outcome.
- A
- 59
What is pruning in a decision tree?
- A
Removing unnecessary branches or nodes to reduce model complexity
- B
Replacing all categorical variables with continuous variables
- C
Increasing the number of clusters in the training data
- D
Adding more branches until every observation has a separate node
Correct answer
ARemoving unnecessary branches or nodes to reduce model complexity
Explanation
Pruning removes parts of a tree to reduce complexity and can produce a simpler model.
- A
- 60
What does the Gini impurity measure?
- A
The probability that an event occurs unconditionally
- B
The distance between two regression lines
- C
The total number of observations in a node
- D
The impurity or lack of homogeneity within a node
Correct answer
DThe impurity or lack of homogeneity within a node
Explanation
Gini impurity measures how mixed the classes are within a decision-tree node.
- A
- 61
What is random forest?
- A
A regression line selected entirely at random
- B
A clustering algorithm that requires no numerical data
- C
A single decision tree with no branches
- D
An ensemble that combines multiple decision trees to produce a more stable prediction
Correct answer
DAn ensemble that combines multiple decision trees to produce a more stable prediction
Explanation
Random forest builds multiple decision trees, often using randomly selected data and features, and combines their results.
- A
- 62
Why can random forests outperform a single decision tree?
- A
Combining multiple trees can reduce variance and produce more robust predictions
- B
They always use fewer features than any individual tree
- C
They convert every classification problem into a regression problem
- D
They use no training data and therefore cannot overfit
Correct answer
ACombining multiple trees can reduce variance and produce more robust predictions
Explanation
Random forests aggregate predictions from many trees, helping reduce the instability associated with a single tree.
- A
- 63
What is the basic idea behind the K-nearest neighbors algorithm?
- A
Build a hierarchy of clusters without measuring similarity
- B
Classify a new observation according to the most similar nearby training observations
- C
Choose the class with the smallest sample size
- D
Fit a single straight line through every data point
Correct answer
BClassify a new observation according to the most similar nearby training observations
Explanation
KNN stores training examples and predicts a new case using the labels of its nearest neighbors according to a distance measure.
- A
- 64
What does the parameter K represent in KNN?
- A
The number of classes in the entire population
- B
The number of nearest neighbors used to make a prediction
- C
The number of features removed during preprocessing
- D
The number of regression lines fitted to the data
Correct answer
BThe number of nearest neighbors used to make a prediction
Explanation
K specifies how many nearby observations vote on the predicted class.
- A
- 65
What is the Euclidean distance between (1,1) and (5,4)?
- A
7
- B
12
- C
7
- D
5
Correct answer
D5
Explanation
The Euclidean distance is (5−1)2+(4−1)2=16+9=5.
- A
- 66
Why is KNN sometimes called a lazy learner?
- A
It discards all training data after calculating the mean
- B
It cannot classify new observations after training
- C
It learns only from labeled data with no distance calculations
- D
It stores the training data and performs most computation when a prediction is requested
Correct answer
DIt stores the training data and performs most computation when a prediction is requested
Explanation
KNN has little or no explicit model-building phase; it uses stored training examples during prediction.
- A
- 67
What is the central assumption of the naive Bayes classifier?
- A
The target variable must be continuous
- B
Every class must contain exactly the same number of observations
- C
Features contribute independently to the class probability, given the class
- D
All features must have the same numerical scale
Correct answer
CFeatures contribute independently to the class probability, given the class
Explanation
Naive Bayes assumes conditional independence among predictors given the class, even when predictors may be related in reality.
- A
- 68
Which application is commonly associated with naive Bayes?
- A
Spam email classification
- B
Finding the shortest path between warehouse locations
- C
Calculating a regression slope
- D
Computing the interquartile range
Correct answer
ASpam email classification
Explanation
Naive Bayes is commonly used for text classification tasks such as identifying spam and non-spam email.
- A
- 69
What is the defining idea of a support vector machine?
- A
It predicts only continuous numerical values
- B
It uses no labeled training data
- C
It chooses a separating hyperplane that maximizes the margin between classes
- D
It always assigns each observation to the nearest centroid
Correct answer
CIt chooses a separating hyperplane that maximizes the margin between classes
Explanation
An SVM uses support vectors and seeks a hyperplane with the largest possible margin between classes.
- A
- 70
What are support vectors in an SVM?
- A
The points farthest from every class boundary
- B
The centroids of all clusters in the dataset
- C
The observations that contain missing values
- D
The closest training points to the separating hyperplane
Correct answer
DThe closest training points to the separating hyperplane
Explanation
Support vectors are the data points closest to the decision boundary and determine the position of the optimal hyperplane.
- A
- 71
Why are kernel functions used with SVMs?
- A
They guarantee that all features become independent
- B
They transform nonlinear data into a feature space where a separating hyperplane may be used
- C
They remove the need for any training data
- D
They convert every classification problem into a time series
Correct answer
BThey transform nonlinear data into a feature space where a separating hyperplane may be used
Explanation
Kernel functions enable SVMs to handle nonlinear relationships by representing the data in a transformed feature space.
- A
- 72
What is the purpose of clustering?
- A
To calculate the mean of a continuous variable
- B
To group similar observations without relying on predefined labels
- C
To maximize a reward through sequential actions
- D
To predict a known output for every training instance
Correct answer
BTo group similar observations without relying on predefined labels
Explanation
Clustering divides unlabeled observations into groups whose members are more similar to one another than to members of other groups.
- A
- 73
What is the main objective of K-means clustering?
- A
To calculate conditional probabilities for each feature
- B
To fit one line through all observations
- C
To classify observations using a known target label
- D
To assign observations to K clusters based on proximity to cluster centroids
Correct answer
DTo assign observations to K clusters based on proximity to cluster centroids
Explanation
K-means assigns observations to a predefined number K of clusters according to their distance from centroids.
- A
- 74
What is the elbow method used for in K-means clustering?
- A
Choosing the margin of an SVM hyperplane
- B
Determining whether a variable is nominal or ordinal
- C
Selecting a suitable number of clusters by examining the reduction in within-cluster error
- D
Calculating the probability of a class under Bayes' theorem
Correct answer
CSelecting a suitable number of clusters by examining the reduction in within-cluster error
Explanation
The elbow method examines how the sum of squared errors decreases as K increases and selects a point where improvement begins to level off.
- A
- 75
How does fuzzy C-means differ from ordinary K-means?
- A
It requires labeled target values for every observation
- B
A data point can have partial membership in more than one cluster
- C
Every data point must belong exclusively to exactly one cluster
- D
It cannot use distances to cluster centers
Correct answer
BA data point can have partial membership in more than one cluster
Explanation
Fuzzy C-means assigns degrees of membership to clusters, allowing one observation to belong partially to multiple clusters.
- A
- 76
What characterizes hierarchical clustering?
- A
It requires a labeled output for every observation
- B
It can only be used for binary classification
- C
It always assigns each point to exactly one predefined cluster count
- D
It builds a tree-like hierarchy of clusters without requiring the number of clusters in advance
Correct answer
DIt builds a tree-like hierarchy of clusters without requiring the number of clusters in advance
Explanation
Hierarchical clustering builds nested groups, often represented by a dendrogram, and does not require the final number of clusters to be specified initially.
- A
- 77
What does support measure in association-rule mining?
- A
The strength of a rule compared with independent occurrence
- B
The number of clusters in a transaction dataset
- C
The fraction of transactions containing the itemset
- D
The probability of the consequent given the antecedent
Correct answer
CThe fraction of transactions containing the itemset
Explanation
Support measures how frequently an itemset appears across all transactions.
- A
- 78
What does confidence measure in an association rule A→B?
- A
How independent A and B are from one another
- B
How often A and B occur together among transactions containing A
- C
How frequently A occurs in the entire transaction database
- D
The number of possible items in the database
Correct answer
BHow often A and B occur together among transactions containing A
Explanation
Confidence measures the conditional frequency of B given that A occurs.
- A
- 79
What does lift measure in association-rule mining?
- A
The number of features in a classification model
- B
The total number of transactions in the database
- C
The strength of an association compared with the items occurring independently
- D
The absolute difference between support and confidence
Correct answer
CThe strength of an association compared with the items occurring independently
Explanation
Lift compares the observed co-occurrence of items with the co-occurrence expected if they were independent.
- A
- 80
What is the role of an agent in reinforcement learning?
- A
It selects actions and learns from the resulting rewards or penalties
- B
It supplies fixed labels for every training observation
- C
It calculates only the mean and standard deviation of the data
- D
It defines the environment but never interacts with it
Correct answer
AIt selects actions and learns from the resulting rewards or penalties
Explanation
The agent is the learner that acts in an environment and improves its behavior using feedback.
- A
- 81
What is the environment in reinforcement learning?
- A
The mathematical formula for a regression line
- B
The collection of features manually selected by an expert
- C
The setting that receives an action and returns a new state and reward
- D
The list of labels used to train a classifier
Correct answer
CThe setting that receives an action and returns a new state and reward
Explanation
The environment is the world or system with which the agent interacts and that produces states and rewards in response to actions.
- A
- 82
What is a reward in reinforcement learning?
- A
An immediate signal from the environment that evaluates the agent's recent action
- B
A measure of the dataset's entropy
- C
A label assigned before the agent takes any action
- D
A distance between two observations
Correct answer
AAn immediate signal from the environment that evaluates the agent's recent action
Explanation
A reward is feedback from the environment that indicates how favorable an action was.
- A
- 83
What is a policy in reinforcement learning?
- A
A table containing only the final rewards
- B
A method for calculating the sample median
- C
A strategy that determines which action to take in a given state
- D
A fixed list of labels for supervised training
Correct answer
CA strategy that determines which action to take in a given state
Explanation
A policy maps states to actions and represents the agent's strategy for interacting with the environment.
- A
- 84
What does the discount factor control in reinforcement learning?
- A
How many features are removed before modeling
- B
How strongly future rewards are weighted relative to immediate rewards
- C
How many classes are present in the training data
- D
How many observations are selected in a sample
Correct answer
BHow strongly future rewards are weighted relative to immediate rewards
Explanation
The discount factor, often denoted by γ, controls the importance assigned to future rewards relative to immediate rewards.
- A
- 85
What is the main goal of Q-learning?
- A
To estimate the quality of taking an action in a particular state
- B
To find the median of a dataset
- C
To identify nominal and ordinal variables
- D
To calculate the probability density of a continuous variable
Correct answer
ATo estimate the quality of taking an action in a particular state
Explanation
Q-learning estimates action values, commonly written Q(s,a), to help an agent select actions that maximize expected future rewards.
- A
- 86
What is the difference between exploration and exploitation?
- A
Exploration uses known rewards, while exploitation ignores all prior information
- B
Exploration gathers information about unfamiliar actions, while exploitation uses known information to obtain rewards
- C
Exploration is supervised learning, while exploitation is unsupervised learning
- D
Exploration removes the environment, while exploitation removes the agent
Correct answer
BExploration gathers information about unfamiliar actions, while exploitation uses known information to obtain rewards
Explanation
Exploration tries less-known actions to learn about the environment, whereas exploitation chooses actions already expected to perform well.
- A
- 87
What is Jupyter Notebook fundamentally represented as?
- A
A PDF file that cannot store executable code
- B
A relational database containing only numerical tables
- C
A compiled executable containing only machine code
- D
A JSON file containing metadata, notebook-format information, and cells
Correct answer
DA JSON file containing metadata, notebook-format information, and cells
Explanation
A Jupyter Notebook is fundamentally a JSON file containing metadata, notebook-format information, and a list of cells.
- A
- 88
What is the main role of Anaconda Navigator?
- A
To convert all Python code automatically into Java
- B
To provide a graphical interface for launching applications and managing environments and packages
- C
To prevent notebooks from executing any code
- D
To replace every machine-learning algorithm with a single classifier
Correct answer
BTo provide a graphical interface for launching applications and managing environments and packages
Explanation
Anaconda Navigator is a desktop graphical interface that can launch applications and manage Conda packages, environments, and channels.
- A
- 89
What does the Files tab in the Jupyter dashboard display?
- A
Only the active Python variables in memory
- B
Only the models that achieved the highest accuracy
- C
The probability distribution of the dataset
- D
The files currently available in the notebook directory
Correct answer
DThe files currently available in the notebook directory
Explanation
The Files tab lists files and folders in the current notebook directory.
- A
- 90
What does the Running tab in the Jupyter dashboard show?
- A
Currently running terminals and notebooks or processes
- B
The class distribution of the active dataset
- C
All files that have ever been deleted
- D
Only completed model-training experiments
Correct answer
ACurrently running terminals and notebooks or processes
Explanation
The Running tab presents currently running notebooks, terminals, and related processes.
- A
- 91
What does the New menu in the Jupyter dashboard allow a user to create?
- A
Items such as text files, folders, terminals, and Python notebooks
- B
Only new database tables
- C
Only new operating-system accounts
- D
Only new machine-learning labels
Correct answer
AItems such as text files, folders, terminals, and Python notebooks
Explanation
The New menu provides options for creating items such as text files, folders, terminals, and Python notebooks.
- A
- 92
What is feature engineering?
- A
Using domain knowledge to transform data so patterns become more visible to a model
- B
Choosing a reward for an agent without examining data
- C
Randomly deleting all variables before model training
- D
Converting every continuous variable into a nominal label
Correct answer
AUsing domain knowledge to transform data so patterns become more visible to a model
Explanation
Feature engineering uses domain knowledge to create or transform features, reducing complexity and making useful patterns easier for algorithms to learn.
- A
- 93
How does deep learning generally differ from traditional machine learning in feature engineering?
- A
Neither approach uses features during training
- B
Traditional machine learning automatically learns every feature, while deep learning requires manual coding
- C
Deep learning cannot process raw data, while traditional methods always can
- D
Deep learning can learn high-level features automatically, while traditional methods often require manual feature selection
Correct answer
DDeep learning can learn high-level features automatically, while traditional methods often require manual feature selection
Explanation
Traditional machine-learning workflows often require experts to identify and hand-code features, whereas deep neural networks can learn hierarchical features automatically.
- A
- 94
Why does deep learning often require GPUs?
- A
Deep learning cannot run any operation on a CPU
- B
Neural networks perform many matrix operations that GPUs can optimize efficiently
- C
GPUs are required to store all categorical labels
- D
GPUs are used only to calculate medians and modes
Correct answer
BNeural networks perform many matrix operations that GPUs can optimize efficiently
Explanation
Deep-learning models perform large numbers of matrix multiplications, which can be efficiently parallelized on GPUs.
- A
- 95
What is a typical train-test split used to evaluate a machine-learning model?
- A
Use one portion to train the model and hold back another portion for evaluation
- B
Avoid separating the data because validation introduces bias
- C
Use all data for training and evaluate the model on the same observations
- D
Use only test data to estimate model parameters
Correct answer
AUse one portion to train the model and hold back another portion for evaluation
Explanation
A portion of the data is used for training, while unseen held-out data is used to evaluate how well the model generalizes.
- A
- 96
What is cross-validation used for?
- A
To remove the target variable before supervised learning
- B
To convert categorical variables into continuous variables
- C
To guarantee that every model has perfect accuracy
- D
To estimate model performance by repeatedly training and testing on different data partitions
Correct answer
DTo estimate model performance by repeatedly training and testing on different data partitions
Explanation
Cross-validation repeatedly divides data into training and validation portions to estimate performance more reliably.
- A
- 97
Why should a final validation dataset be kept separate from model selection?
- A
It makes classification unnecessary
- B
It provides an independent check against overfitting or data leakage during model development
- C
It forces every algorithm to produce the same result
- D
It ensures that the model never sees any training examples
Correct answer
BIt provides an independent check against overfitting or data leakage during model development
Explanation
Keeping a final validation set separate provides a more independent estimate of performance and helps reveal overfitting or data leakage.
- A
- 98
Which skill is especially important for machine-learning engineers working with models?
- A
Using only one programming language for every project
- B
Focusing exclusively on hardware repair
- C
Understanding programming, statistics, linear algebra, and model evaluation
- D
Avoiding all mathematical concepts during development
Correct answer
CUnderstanding programming, statistics, linear algebra, and model evaluation
Explanation
The content identifies programming, statistics, linear algebra, calculus, signal processing, and model understanding as important technical skills for machine-learning engineers.
- A
- 99
Why is effective communication important for a machine-learning engineer?
- A
Machine-learning engineers work independently and never present results
- B
Only marketing teams need to understand model results
- C
Engineers must explain technical findings to nontechnical teams and collaborate across departments
- D
Communication replaces the need to understand algorithms
Correct answer
CEngineers must explain technical findings to nontechnical teams and collaborate across departments
Explanation
Machine-learning engineers often collaborate with engineering, marketing, sales, and other teams, so they must communicate technical results clearly.
- A
- 100
Why is industry knowledge valuable for machine-learning engineers?
- A
It guarantees that every model will be perfectly accurate
- B
It limits engineers to using only historical data
- C
It eliminates the need for programming and mathematics
- D
It helps them identify business problems where machine learning can provide useful solutions
Correct answer
DIt helps them identify business problems where machine learning can provide useful solutions
Explanation
Understanding the industry helps engineers recognize real business pain points and apply technical skills productively.
- A
- 101
What is rapid prototyping in machine-learning work?
- A
Training one model for as long as possible without evaluation
- B
Avoiding experiments until the final product is built
- C
Replacing all data with a manually designed prototype
- D
Iterating quickly through models and ideas to find an effective approach
Correct answer
DIterating quickly through models and ideas to find an effective approach
Explanation
Rapid prototyping involves quickly testing and iterating on models, features, and approaches to identify what works.
- A
- 102
Why must machine-learning professionals keep up to date?
- A
Machine-learning systems cannot use previously learned knowledge
- B
Existing algorithms become invalid every day
- C
Professional development is needed only before obtaining a first job
- D
New models, tools, research findings, and techniques continue to develop rapidly
Correct answer
DNew models, tools, research findings, and techniques continue to develop rapidly
Explanation
The machine-learning field changes quickly, so professionals should follow research papers, tools, conferences, and new algorithms.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.