1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning Course Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Machine Learning Course Introduction

  • 102Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: ML Foundations

What is machine learning?

102 questions

  1. 1

    What is machine learning?

    1. A

      A programming method that requires every possible response to be manually specified

    2. B

      A database system designed only to store labeled examples

    3. C

      A hardware technology that increases the speed of computer processors

    4. D

      A subfield of artificial intelligence that learns from data to make predictions or decisions

    Correct answer
    D

    A 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.

  2. 2

    How are artificial intelligence, machine learning, and deep learning related?

    1. A

      Artificial intelligence contains machine learning, and machine learning contains deep learning

    2. B

      Deep learning contains artificial intelligence, and artificial intelligence contains machine learning

    3. C

      Artificial intelligence, machine learning, and deep learning are identical terms

    4. D

      Machine learning and deep learning are unrelated to artificial intelligence

    Correct answer
    A

    Artificial 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.

  3. 3

    What is a defining characteristic of deep learning?

    1. A

      It produces rules that are always easy for humans to interpret

    2. B

      It requires all relevant features to be manually selected before training

    3. C

      It works only with small datasets and low-powered hardware

    4. D

      It uses deep neural networks that can learn increasingly complex features from large amounts of data

    Correct answer
    D

    It 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.

  4. 4

    What generally happens when a trained machine-learning model performs below an acceptable accuracy level?

    1. A

      The algorithm is trained again using an augmented or improved training dataset

    2. B

      The model is deployed immediately because low accuracy indicates generalization

    3. C

      The input data is discarded and no further evaluation is performed

    4. D

      The model is converted automatically into an unsupervised algorithm

    Correct answer
    A

    The 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.

  5. 5

    Which type of machine learning uses an agent, an environment, actions, and rewards?

    1. A

      Unsupervised learning

    2. B

      Reinforcement learning

    3. C

      Supervised learning

    4. D

      Descriptive statistics

    Correct answer
    B

    Reinforcement learning

    Explanation

    Reinforcement learning models interaction between a learning agent and an environment, using rewards or penalties to improve future actions.

  6. 6

    Which statement best distinguishes machine learning from traditional explicit programming?

    1. A

      Machine-learning systems operate without algorithms or computational procedures

    2. B

      Machine-learning systems cannot make predictions from previously unseen inputs

    3. C

      Machine-learning systems learn patterns from data instead of receiving every rule explicitly

    4. D

      Machine-learning systems require a human to specify every output for every input

    Correct answer
    C

    Machine-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.

  7. 7

    What kind of data is required for supervised learning?

    1. A

      Only randomly generated data with no target variable

    2. B

      Data that contains no measurable attributes

    3. C

      Labeled data containing input attributes and expected outputs

    4. D

      Unlabeled data containing inputs but no associated outputs

    Correct answer
    C

    Labeled data containing input attributes and expected outputs

    Explanation

    Supervised learning uses training instances that contain input attributes together with known or expected output values.

  8. 8

    What is the goal of supervised learning in mathematical terms?

    1. A

      To group input variables without considering any output

    2. B

      To learn a mapping from input variables XXX to an output variable YYY

    3. C

      To remove all variation from a dataset

    4. D

      To maximize rewards without using training examples

    Correct answer
    B

    To learn a mapping from input variables XXX to an output variable YYY

    Explanation

    Supervised learning seeks to approximate a mapping function from input XXX to output YYY so that outputs can be predicted for unseen inputs.

  9. 9

    Which task is an example of supervised classification?

    1. A

      Predicting whether an image contains a duck or does not contain a duck

    2. B

      Grouping unlabeled images according to visual similarity

    3. C

      Finding hidden customer groups without predefined labels

    4. D

      Reducing the number of variables in a dataset

    Correct answer
    A

    Predicting 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.

  10. 10

    Which task is an example of supervised regression?

    1. A

      Assigning an email to a spam or non-spam category

    2. B

      Grouping customers into clusters without labels

    3. C

      Predicting a continuous house price from property characteristics

    4. D

      Selecting the most common category in a dataset

    Correct answer
    C

    Predicting a continuous house price from property characteristics

    Explanation

    Regression predicts a continuous-valued response, such as a house price, from input features.

  11. 11

    What distinguishes unsupervised learning from supervised learning?

    1. A

      Unsupervised learning always requires a teacher to correct predictions

    2. B

      Unsupervised learning can only be used for continuous numerical targets

    3. C

      Unsupervised learning predicts a known target for every training example

    4. D

      Unsupervised learning uses input data without corresponding labeled outputs

    Correct answer
    D

    Unsupervised learning uses input data without corresponding labeled outputs

    Explanation

    Unsupervised learning works with unlabeled data and attempts to discover underlying structure, distributions, or groups.

  12. 12

    What is a limitation of clustering in unsupervised learning?

    1. A

      It can identify similar groups but generally cannot determine the meaning of each group automatically

    2. B

      It requires every observation to have a known output label

    3. C

      It can only process data with exactly two categories

    4. D

      It cannot group observations according to any similarity

    Correct answer
    A

    It 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.

  13. 13

    What is exploration in reinforcement learning?

    1. A

      Using only previously learned information to choose an action

    2. B

      Trying actions to learn about the environment through trial and error

    3. C

      Assigning labels to unlabeled training examples

    4. D

      Removing all rewards from the learning process

    Correct answer
    B

    Trying 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.

  14. 14

    What is exploitation in reinforcement learning?

    1. A

      Grouping similar observations without labels

    2. B

      Training a model with a known target variable

    3. C

      Using knowledge already gained from the environment to select an action

    4. D

      Trying completely unknown actions without considering prior results

    Correct answer
    C

    Using 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.

  15. 15

    Which algorithm is associated with unsupervised clustering?

    1. A

      Linear regression

    2. B

      Logistic regression

    3. C

      Support vector regression

    4. D

      K-means

    Correct answer
    D

    K-means

    Explanation

    K-means is presented as a popular unsupervised learning algorithm used to group similar data instances into clusters.

  16. 16

    What is qualitative data?

    1. A

      Data that can take infinitely many numerical values

    2. B

      Data describing characteristics that are observed but not easily measured numerically

    3. C

      Data restricted to measurements of physical quantities

    4. D

      Data consisting only of continuous variables

    Correct answer
    B

    Data 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.

  17. 17

    Which example represents nominal data?

    1. A

      A rating of poor, average, or excellent

    2. B

      Gender categories with no inherent ranking

    3. C

      The weight of a person measured in kilograms

    4. D

      The number of students in a classroom

    Correct answer
    B

    Gender categories with no inherent ranking

    Explanation

    Nominal data consists of categories without an inherent order, such as gender or race categories.

  18. 18

    Which example represents ordinal data?

    1. A

      The exact weight of a customer

    2. B

      Customer ratings such as poor, average, and good

    3. C

      Customer identification numbers

    4. D

      The number of products purchased

    Correct answer
    B

    Customer 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.

  19. 19

    What distinguishes discrete quantitative data from continuous quantitative data?

    1. A

      Discrete data has no numerical values, whereas continuous data has only labels

    2. B

      Discrete data is always subjective, whereas continuous data is always categorical

    3. C

      Discrete data is unordered, whereas continuous data is always ranked

    4. D

      Discrete data has a finite set of possible values, whereas continuous data can take infinitely many values

    Correct answer
    D

    Discrete 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.

  20. 20

    What is the relationship between a population and a sample?

    1. A

      A sample is a subset selected from a larger population

    2. B

      A sample contains every individual in the population

    3. C

      A population and a sample are always identical

    4. D

      A population is always a subset of a sample

    Correct answer
    A

    A 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.

  21. 21

    Why is sampling used in statistical studies?

    1. A

      Sampling eliminates the need to analyze data statistically

    2. B

      Sampling is used only when the population has no measurable properties

    3. C

      Studying a representative subset is often more practical than studying an entire population

    4. D

      Sampling guarantees that every observation has the same value

    Correct answer
    C

    Studying 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.

  22. 22

    What happens in random probability sampling?

    1. A

      Each member of the population has an equal chance of being selected

    2. B

      Researchers select only the most convenient participants

    3. C

      The population is divided into subgroups and only one subgroup is studied

    4. D

      Every nnnth record is selected after an ordered starting point

    Correct answer
    A

    Each 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.

  23. 23

    What happens in systematic sampling?

    1. A

      Every nnnth record is selected from the population

    2. B

      Researchers select participants entirely according to personal judgment

    3. C

      Only members sharing a particular characteristic are selected

    4. D

      Every member is selected with an independently equal probability

    Correct answer
    A

    Every nnnth record is selected from the population

    Explanation

    Systematic sampling selects records at a fixed interval, such as every second or every tenth record.

  24. 24

    What is stratified sampling?

    1. A

      The population is treated as one undivided group

    2. B

      The population is divided into groups sharing a characteristic, followed by sampling within those groups

    3. C

      Only the most accessible members of the population are selected

    4. D

      The population is sampled by selecting every nnnth observation

    Correct answer
    B

    The 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.

  25. 25

    What is the primary purpose of descriptive statistics?

    1. A

      To assign rewards to an agent in an environment

    2. B

      To prove that a sample represents every possible population

    3. C

      To predict future outcomes without using observed data

    4. D

      To summarize and describe the characteristics of a specific dataset

    Correct answer
    D

    To 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.

  26. 26

    What is the primary purpose of inferential statistics?

    1. A

      To group data points without using probability

    2. B

      To describe only the formatting of a dataset

    3. C

      To list every observation in a population without summarizing it

    4. D

      To make conclusions or predictions about a population from sample data

    Correct answer
    D

    To 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.

  27. 27

    How is the mean calculated for a dataset?

    1. A

      By selecting the middle value after sorting the data

    2. B

      By selecting the most frequently occurring value

    3. C

      By dividing the sum of all values by the number of values

    4. D

      By subtracting the minimum value from the maximum value

    Correct answer
    C

    By 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.

  28. 28

    How is the median determined?

    1. A

      It is the difference between the maximum and minimum values

    2. B

      It is the average of every value in the dataset

    3. C

      It is always the most frequently occurring value

    4. D

      It is the central value after the observations are ordered

    Correct answer
    D

    It 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.

  29. 29

    What is the mode of a dataset?

    1. A

      The value that occurs most frequently

    2. B

      The difference between the largest and smallest values

    3. C

      The middle value after sorting

    4. D

      The average of all values

    Correct answer
    A

    The value that occurs most frequently

    Explanation

    The mode is the most frequently occurring value in a sample or population.

  30. 30

    How is the range calculated?

    1. A

      By subtracting the first quartile from the third quartile

    2. B

      By subtracting the minimum value from the maximum value

    3. C

      By averaging the two central observations

    4. D

      By dividing the sum of values by the sample size

    Correct answer
    B

    By subtracting the minimum value from the maximum value

    Explanation

    The range measures spread by calculating the maximum value minus the minimum value.

  31. 31

    How is the interquartile range calculated?

    1. A

      By subtracting the minimum value from the maximum value

    2. B

      By subtracting the first quartile from the third quartile

    3. C

      By adding the first and second quartiles

    4. D

      By dividing the variance by the sample size

    Correct answer
    B

    By subtracting the first quartile from the third quartile

    Explanation

    The interquartile range is Q3−Q1Q_3 - Q_1Q3​−Q1​, representing the spread of the middle half of the data.

  32. 32

    What does standard deviation measure?

    1. A

      The dispersion of observations around their mean

    2. B

      The probability of a particular event occurring

    3. C

      The total number of observations in a dataset

    4. D

      The most common category in the dataset

    Correct answer
    A

    The dispersion of observations around their mean

    Explanation

    Standard deviation measures how dispersed the values are from the mean.

  33. 33

    What does entropy measure in a decision-tree context?

    1. A

      The distance between two numerical observations

    2. B

      The number of features in a dataset

    3. C

      The uncertainty or impurity in a dataset

    4. D

      The total number of training examples

    Correct answer
    C

    The 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.

  34. 34

    How is the best attribute for a decision-tree split commonly selected?

    1. A

      By selecting the attribute that appears last in the dataset

    2. B

      By selecting the attribute with the smallest number of categories

    3. C

      By selecting the attribute with the largest number of missing values

    4. D

      By selecting the attribute with the highest information gain

    Correct answer
    D

    By 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.

  35. 35

    What does a confusion matrix compare?

    1. A

      Population size with sample size

    2. B

      Continuous variables with categorical variables

    3. C

      Training time with testing time

    4. D

      Actual class labels with predicted class labels

    Correct answer
    D

    Actual 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.

  36. 36

    What is probability?

    1. A

      A method for sorting observations into quartiles

    2. B

      A measure of how likely an event is to occur

    3. C

      A technique for removing outliers from a dataset

    4. D

      A measure of the average value in a dataset

    Correct answer
    B

    A measure of how likely an event is to occur

    Explanation

    Probability measures the likelihood of an event and ranges from 000 to 111.

  37. 37

    What is the probability of rolling a three on a fair six-sided die?

    1. A

      rac{5}{6}

    2. B

      rac{1}{6}

    3. C

      rac{1}{3}

    4. D

      rac{3}{6}

    Correct answer
    B

    rac{1}{6}

    Explanation

    A fair die has six equally likely outcomes, and only one outcome is three, so the probability is 16\frac{1}{6}61​.

  38. 38

    What is a sample space?

    1. A

      The complete set of possible outcomes of a random experiment

    2. B

      The probability of one specified outcome

    3. C

      A single outcome selected from an experiment

    4. D

      A subset of a population used for statistical inference

    Correct answer
    A

    The complete set of possible outcomes of a random experiment

    Explanation

    The sample space contains every possible outcome of a random experiment.

  39. 39

    What is a disjoint pair of events?

    1. A

      A pair of events whose probabilities must sum to two

    2. B

      A pair of events that always occur together

    3. C

      A pair of events with exactly the same outcomes

    4. D

      A pair of events that cannot occur together

    Correct answer
    D

    A 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.

  40. 40

    What is conditional probability?

    1. A

      The probability of all possible outcomes added together

    2. B

      The probability of one event occurring given that another event has occurred

    3. C

      The probability that two impossible events occur simultaneously

    4. D

      The probability of an event without considering any other event

    Correct answer
    B

    The 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.

  41. 41

    What is a property of a probability density function for a continuous variable?

    1. A

      The curve must contain only discrete categories

    2. B

      The total area under its curve equals 111

    3. C

      The probability at every exact point must equal 111

    4. D

      The curve cannot be continuous over an interval

    Correct answer
    B

    The total area under its curve equals 111

    Explanation

    For a probability density function, the total area under the curve is 111, and probabilities over intervals are represented by areas under the curve.

  42. 42

    What does the central limit theorem state?

    1. A

      Every individual observation in a population is normally distributed

    2. B

      The sampling distribution of the mean becomes approximately normal for sufficiently large samples

    3. C

      A dataset with a small sample must have zero variance

    4. D

      The mean of a sample is always exactly equal to the population mean

    Correct answer
    B

    The 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.

  43. 43

    What is the purpose of Bayes' theorem?

    1. A

      To calculate the slope of a linear regression line

    2. B

      To divide an unlabeled dataset into clusters

    3. C

      To relate a conditional probability to its inverse using prior and likelihood information

    4. D

      To calculate the range of a dataset from its quartiles

    Correct answer
    C

    To 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.

  44. 44

    What is point estimation?

    1. A

      Using a range of values to express uncertainty about a parameter

    2. B

      Testing whether two events are disjoint

    3. C

      Grouping observations according to their similarity

    4. D

      Using sample data to estimate a single value of an unknown population parameter

    Correct answer
    D

    Using 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.

  45. 45

    What is an interval estimate?

    1. A

      A category assigned to an unlabeled observation

    2. B

      A range of values used to estimate a population parameter

    3. C

      A single value used to estimate a population parameter

    4. D

      The difference between two class probabilities

    Correct answer
    B

    A 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.

  46. 46

    What does a confidence interval describe?

    1. A

      The percentage of observations classified correctly by a tree

    2. B

      The range of plausible values for a population parameter at a stated confidence level

    3. C

      The number of clusters in an unsupervised model

    4. D

      The exact value of every observation in the population

    Correct answer
    B

    The 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.

  47. 47

    What is the margin of error?

    1. A

      The greatest expected distance between a point estimate and the parameter it estimates at a given confidence level

    2. B

      The number of incorrectly labeled training examples

    3. C

      The difference between the largest and smallest observations

    4. D

      The probability that a classifier predicts a positive class

    Correct answer
    A

    The 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.

  48. 48

    What is the purpose of hypothesis testing?

    1. A

      To create clusters without evaluating evidence

    2. B

      To guarantee that a sample is identical to its population

    3. C

      To calculate only the median of a dataset

    4. D

      To determine whether sample evidence supports or rejects a claim about a population

    Correct answer
    D

    To 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.

  49. 49

    What is the null hypothesis generally intended to represent?

    1. A

      The assumption that is evaluated for possible rejection

    2. B

      The claim that must always be rejected

    3. C

      The set of all alternative machine-learning algorithms

    4. D

      The numerical average of the sample

    Correct answer
    A

    The 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.

  50. 50

    What is the main purpose of linear regression?

    1. A

      To model the relationship between independent variables and a continuous dependent variable

    2. B

      To group unlabeled observations into clusters

    3. C

      To classify observations into exactly two categories

    4. D

      To select actions that maximize rewards in an environment

    Correct answer
    A

    To 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.

  51. 51

    What does a linear regression equation represent?

    1. A

      A collection of unlabeled clusters

    2. B

      A probability distribution that must always be bell-shaped

    3. C

      A tree structure used to split categorical data

    4. D

      A line that best fits the observed relationship between predictors and a response

    Correct answer
    D

    A line that best fits the observed relationship between predictors and a response

    Explanation

    Linear regression fits a line, such as y=mx+cy = mx + cy=mx+c, that minimizes the discrepancy between predicted and observed values.

  52. 52

    What is the main difference between linear and logistic regression?

    1. A

      Linear regression uses a sigmoid function, whereas logistic regression uses only a straight line

    2. B

      Linear regression is unsupervised, whereas logistic regression is reinforcement learning

    3. C

      Linear regression predicts continuous values, whereas logistic regression predicts categorical outcomes or probabilities

    4. D

      Linear regression requires labels, whereas logistic regression never uses labels

    Correct answer
    C

    Linear 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.

  53. 53

    What is the purpose of the sigmoid function in logistic regression?

    1. A

      To map an input to a value between 000 and 111 that can represent a probability

    2. B

      To ensure that all input variables have a mean of zero

    3. C

      To convert a continuous response into a quartile

    4. D

      To calculate the distance between two observations

    Correct answer
    A

    To map an input to a value between 000 and 111 that can represent a probability

    Explanation

    The sigmoid function converts a real-valued input into a value between 000 and 111, supporting probability-based classification.

  54. 54

    What does an R2R^2R2 value measure in linear regression?

    1. A

      How closely the observed data fit the regression line

    2. B

      The probability of a categorical outcome

    3. C

      The number of predictors used in a model

    4. D

      The distance between two cluster centroids

    Correct answer
    A

    How closely the observed data fit the regression line

    Explanation

    R2R^2R2, or the coefficient of determination, measures how closely the data are related to the fitted regression line.

  55. 55

    Why is linear regression generally unsuitable as a direct classification method?

    1. A

      It requires unlabeled data rather than labeled data

    2. B

      It always produces a nonlinear decision boundary

    3. C

      Its predicted values are continuous and can fall outside the required class range

    4. D

      It cannot use numerical input variables

    Correct answer
    C

    Its 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 000 to 111.

  56. 56

    What is a decision tree?

    1. A

      A probability distribution with a bell-shaped curve

    2. B

      A method for storing data without labels

    3. C

      A numerical technique for calculating standard deviation

    4. D

      A graphical structure that represents decisions and their possible outcomes

    Correct answer
    D

    A 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.

  57. 57

    What is the root node in a decision tree?

    1. A

      Any node that contains a missing value

    2. B

      The final node that produces a prediction

    3. C

      The first or topmost node that represents the initial split

    4. D

      The node with the smallest information gain

    Correct answer
    C

    The 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.

  58. 58

    What is a leaf node?

    1. A

      The first node from which the tree grows

    2. B

      A node that always has two children

    3. C

      A node used only to calculate the sample mean

    4. D

      A terminal node that is not split into further child nodes

    Correct answer
    D

    A 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.

  59. 59

    What is pruning in a decision tree?

    1. A

      Removing unnecessary branches or nodes to reduce model complexity

    2. B

      Replacing all categorical variables with continuous variables

    3. C

      Increasing the number of clusters in the training data

    4. D

      Adding more branches until every observation has a separate node

    Correct answer
    A

    Removing unnecessary branches or nodes to reduce model complexity

    Explanation

    Pruning removes parts of a tree to reduce complexity and can produce a simpler model.

  60. 60

    What does the Gini impurity measure?

    1. A

      The probability that an event occurs unconditionally

    2. B

      The distance between two regression lines

    3. C

      The total number of observations in a node

    4. D

      The impurity or lack of homogeneity within a node

    Correct answer
    D

    The impurity or lack of homogeneity within a node

    Explanation

    Gini impurity measures how mixed the classes are within a decision-tree node.

  61. 61

    What is random forest?

    1. A

      A regression line selected entirely at random

    2. B

      A clustering algorithm that requires no numerical data

    3. C

      A single decision tree with no branches

    4. D

      An ensemble that combines multiple decision trees to produce a more stable prediction

    Correct answer
    D

    An 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.

  62. 62

    Why can random forests outperform a single decision tree?

    1. A

      Combining multiple trees can reduce variance and produce more robust predictions

    2. B

      They always use fewer features than any individual tree

    3. C

      They convert every classification problem into a regression problem

    4. D

      They use no training data and therefore cannot overfit

    Correct answer
    A

    Combining 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.

  63. 63

    What is the basic idea behind the K-nearest neighbors algorithm?

    1. A

      Build a hierarchy of clusters without measuring similarity

    2. B

      Classify a new observation according to the most similar nearby training observations

    3. C

      Choose the class with the smallest sample size

    4. D

      Fit a single straight line through every data point

    Correct answer
    B

    Classify 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.

  64. 64

    What does the parameter KKK represent in KNN?

    1. A

      The number of classes in the entire population

    2. B

      The number of nearest neighbors used to make a prediction

    3. C

      The number of features removed during preprocessing

    4. D

      The number of regression lines fitted to the data

    Correct answer
    B

    The number of nearest neighbors used to make a prediction

    Explanation

    KKK specifies how many nearby observations vote on the predicted class.

  65. 65

    What is the Euclidean distance between (1,1)(1,1)(1,1) and (5,4)(5,4)(5,4)?

    1. A

      7\sqrt{7}7​

    2. B

      121212

    3. C

      777

    4. D

      555

    Correct answer
    D

    555

    Explanation

    The Euclidean distance is (5−1)2+(4−1)2=16+9=5\sqrt{(5-1)^2+(4-1)^2}=\sqrt{16+9}=5(5−1)2+(4−1)2​=16+9​=5.

  66. 66

    Why is KNN sometimes called a lazy learner?

    1. A

      It discards all training data after calculating the mean

    2. B

      It cannot classify new observations after training

    3. C

      It learns only from labeled data with no distance calculations

    4. D

      It stores the training data and performs most computation when a prediction is requested

    Correct answer
    D

    It 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.

  67. 67

    What is the central assumption of the naive Bayes classifier?

    1. A

      The target variable must be continuous

    2. B

      Every class must contain exactly the same number of observations

    3. C

      Features contribute independently to the class probability, given the class

    4. D

      All features must have the same numerical scale

    Correct answer
    C

    Features 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.

  68. 68

    Which application is commonly associated with naive Bayes?

    1. A

      Spam email classification

    2. B

      Finding the shortest path between warehouse locations

    3. C

      Calculating a regression slope

    4. D

      Computing the interquartile range

    Correct answer
    A

    Spam email classification

    Explanation

    Naive Bayes is commonly used for text classification tasks such as identifying spam and non-spam email.

  69. 69

    What is the defining idea of a support vector machine?

    1. A

      It predicts only continuous numerical values

    2. B

      It uses no labeled training data

    3. C

      It chooses a separating hyperplane that maximizes the margin between classes

    4. D

      It always assigns each observation to the nearest centroid

    Correct answer
    C

    It 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.

  70. 70

    What are support vectors in an SVM?

    1. A

      The points farthest from every class boundary

    2. B

      The centroids of all clusters in the dataset

    3. C

      The observations that contain missing values

    4. D

      The closest training points to the separating hyperplane

    Correct answer
    D

    The 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.

  71. 71

    Why are kernel functions used with SVMs?

    1. A

      They guarantee that all features become independent

    2. B

      They transform nonlinear data into a feature space where a separating hyperplane may be used

    3. C

      They remove the need for any training data

    4. D

      They convert every classification problem into a time series

    Correct answer
    B

    They 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.

  72. 72

    What is the purpose of clustering?

    1. A

      To calculate the mean of a continuous variable

    2. B

      To group similar observations without relying on predefined labels

    3. C

      To maximize a reward through sequential actions

    4. D

      To predict a known output for every training instance

    Correct answer
    B

    To 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.

  73. 73

    What is the main objective of K-means clustering?

    1. A

      To calculate conditional probabilities for each feature

    2. B

      To fit one line through all observations

    3. C

      To classify observations using a known target label

    4. D

      To assign observations to KKK clusters based on proximity to cluster centroids

    Correct answer
    D

    To assign observations to KKK clusters based on proximity to cluster centroids

    Explanation

    K-means assigns observations to a predefined number KKK of clusters according to their distance from centroids.

  74. 74

    What is the elbow method used for in K-means clustering?

    1. A

      Choosing the margin of an SVM hyperplane

    2. B

      Determining whether a variable is nominal or ordinal

    3. C

      Selecting a suitable number of clusters by examining the reduction in within-cluster error

    4. D

      Calculating the probability of a class under Bayes' theorem

    Correct answer
    C

    Selecting 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 KKK increases and selects a point where improvement begins to level off.

  75. 75

    How does fuzzy C-means differ from ordinary K-means?

    1. A

      It requires labeled target values for every observation

    2. B

      A data point can have partial membership in more than one cluster

    3. C

      Every data point must belong exclusively to exactly one cluster

    4. D

      It cannot use distances to cluster centers

    Correct answer
    B

    A 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.

  76. 76

    What characterizes hierarchical clustering?

    1. A

      It requires a labeled output for every observation

    2. B

      It can only be used for binary classification

    3. C

      It always assigns each point to exactly one predefined cluster count

    4. D

      It builds a tree-like hierarchy of clusters without requiring the number of clusters in advance

    Correct answer
    D

    It 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.

  77. 77

    What does support measure in association-rule mining?

    1. A

      The strength of a rule compared with independent occurrence

    2. B

      The number of clusters in a transaction dataset

    3. C

      The fraction of transactions containing the itemset

    4. D

      The probability of the consequent given the antecedent

    Correct answer
    C

    The fraction of transactions containing the itemset

    Explanation

    Support measures how frequently an itemset appears across all transactions.

  78. 78

    What does confidence measure in an association rule A→BA \rightarrow BA→B?

    1. A

      How independent AAA and BBB are from one another

    2. B

      How often AAA and BBB occur together among transactions containing AAA

    3. C

      How frequently AAA occurs in the entire transaction database

    4. D

      The number of possible items in the database

    Correct answer
    B

    How often AAA and BBB occur together among transactions containing AAA

    Explanation

    Confidence measures the conditional frequency of BBB given that AAA occurs.

  79. 79

    What does lift measure in association-rule mining?

    1. A

      The number of features in a classification model

    2. B

      The total number of transactions in the database

    3. C

      The strength of an association compared with the items occurring independently

    4. D

      The absolute difference between support and confidence

    Correct answer
    C

    The 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.

  80. 80

    What is the role of an agent in reinforcement learning?

    1. A

      It selects actions and learns from the resulting rewards or penalties

    2. B

      It supplies fixed labels for every training observation

    3. C

      It calculates only the mean and standard deviation of the data

    4. D

      It defines the environment but never interacts with it

    Correct answer
    A

    It 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.

  81. 81

    What is the environment in reinforcement learning?

    1. A

      The mathematical formula for a regression line

    2. B

      The collection of features manually selected by an expert

    3. C

      The setting that receives an action and returns a new state and reward

    4. D

      The list of labels used to train a classifier

    Correct answer
    C

    The 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.

  82. 82

    What is a reward in reinforcement learning?

    1. A

      An immediate signal from the environment that evaluates the agent's recent action

    2. B

      A measure of the dataset's entropy

    3. C

      A label assigned before the agent takes any action

    4. D

      A distance between two observations

    Correct answer
    A

    An 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.

  83. 83

    What is a policy in reinforcement learning?

    1. A

      A table containing only the final rewards

    2. B

      A method for calculating the sample median

    3. C

      A strategy that determines which action to take in a given state

    4. D

      A fixed list of labels for supervised training

    Correct answer
    C

    A 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.

  84. 84

    What does the discount factor control in reinforcement learning?

    1. A

      How many features are removed before modeling

    2. B

      How strongly future rewards are weighted relative to immediate rewards

    3. C

      How many classes are present in the training data

    4. D

      How many observations are selected in a sample

    Correct answer
    B

    How strongly future rewards are weighted relative to immediate rewards

    Explanation

    The discount factor, often denoted by γ\gammaγ, controls the importance assigned to future rewards relative to immediate rewards.

  85. 85

    What is the main goal of Q-learning?

    1. A

      To estimate the quality of taking an action in a particular state

    2. B

      To find the median of a dataset

    3. C

      To identify nominal and ordinal variables

    4. D

      To calculate the probability density of a continuous variable

    Correct answer
    A

    To estimate the quality of taking an action in a particular state

    Explanation

    Q-learning estimates action values, commonly written Q(s,a)Q(s,a)Q(s,a), to help an agent select actions that maximize expected future rewards.

  86. 86

    What is the difference between exploration and exploitation?

    1. A

      Exploration uses known rewards, while exploitation ignores all prior information

    2. B

      Exploration gathers information about unfamiliar actions, while exploitation uses known information to obtain rewards

    3. C

      Exploration is supervised learning, while exploitation is unsupervised learning

    4. D

      Exploration removes the environment, while exploitation removes the agent

    Correct answer
    B

    Exploration 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.

  87. 87

    What is Jupyter Notebook fundamentally represented as?

    1. A

      A PDF file that cannot store executable code

    2. B

      A relational database containing only numerical tables

    3. C

      A compiled executable containing only machine code

    4. D

      A JSON file containing metadata, notebook-format information, and cells

    Correct answer
    D

    A 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.

  88. 88

    What is the main role of Anaconda Navigator?

    1. A

      To convert all Python code automatically into Java

    2. B

      To provide a graphical interface for launching applications and managing environments and packages

    3. C

      To prevent notebooks from executing any code

    4. D

      To replace every machine-learning algorithm with a single classifier

    Correct answer
    B

    To 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.

  89. 89

    What does the Files tab in the Jupyter dashboard display?

    1. A

      Only the active Python variables in memory

    2. B

      Only the models that achieved the highest accuracy

    3. C

      The probability distribution of the dataset

    4. D

      The files currently available in the notebook directory

    Correct answer
    D

    The files currently available in the notebook directory

    Explanation

    The Files tab lists files and folders in the current notebook directory.

  90. 90

    What does the Running tab in the Jupyter dashboard show?

    1. A

      Currently running terminals and notebooks or processes

    2. B

      The class distribution of the active dataset

    3. C

      All files that have ever been deleted

    4. D

      Only completed model-training experiments

    Correct answer
    A

    Currently running terminals and notebooks or processes

    Explanation

    The Running tab presents currently running notebooks, terminals, and related processes.

  91. 91

    What does the New menu in the Jupyter dashboard allow a user to create?

    1. A

      Items such as text files, folders, terminals, and Python notebooks

    2. B

      Only new database tables

    3. C

      Only new operating-system accounts

    4. D

      Only new machine-learning labels

    Correct answer
    A

    Items 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.

  92. 92

    What is feature engineering?

    1. A

      Using domain knowledge to transform data so patterns become more visible to a model

    2. B

      Choosing a reward for an agent without examining data

    3. C

      Randomly deleting all variables before model training

    4. D

      Converting every continuous variable into a nominal label

    Correct answer
    A

    Using 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.

  93. 93

    How does deep learning generally differ from traditional machine learning in feature engineering?

    1. A

      Neither approach uses features during training

    2. B

      Traditional machine learning automatically learns every feature, while deep learning requires manual coding

    3. C

      Deep learning cannot process raw data, while traditional methods always can

    4. D

      Deep learning can learn high-level features automatically, while traditional methods often require manual feature selection

    Correct answer
    D

    Deep 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.

  94. 94

    Why does deep learning often require GPUs?

    1. A

      Deep learning cannot run any operation on a CPU

    2. B

      Neural networks perform many matrix operations that GPUs can optimize efficiently

    3. C

      GPUs are required to store all categorical labels

    4. D

      GPUs are used only to calculate medians and modes

    Correct answer
    B

    Neural 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.

  95. 95

    What is a typical train-test split used to evaluate a machine-learning model?

    1. A

      Use one portion to train the model and hold back another portion for evaluation

    2. B

      Avoid separating the data because validation introduces bias

    3. C

      Use all data for training and evaluate the model on the same observations

    4. D

      Use only test data to estimate model parameters

    Correct answer
    A

    Use 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.

  96. 96

    What is cross-validation used for?

    1. A

      To remove the target variable before supervised learning

    2. B

      To convert categorical variables into continuous variables

    3. C

      To guarantee that every model has perfect accuracy

    4. D

      To estimate model performance by repeatedly training and testing on different data partitions

    Correct answer
    D

    To 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.

  97. 97

    Why should a final validation dataset be kept separate from model selection?

    1. A

      It makes classification unnecessary

    2. B

      It provides an independent check against overfitting or data leakage during model development

    3. C

      It forces every algorithm to produce the same result

    4. D

      It ensures that the model never sees any training examples

    Correct answer
    B

    It 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.

  98. 98

    Which skill is especially important for machine-learning engineers working with models?

    1. A

      Using only one programming language for every project

    2. B

      Focusing exclusively on hardware repair

    3. C

      Understanding programming, statistics, linear algebra, and model evaluation

    4. D

      Avoiding all mathematical concepts during development

    Correct answer
    C

    Understanding 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.

  99. 99

    Why is effective communication important for a machine-learning engineer?

    1. A

      Machine-learning engineers work independently and never present results

    2. B

      Only marketing teams need to understand model results

    3. C

      Engineers must explain technical findings to nontechnical teams and collaborate across departments

    4. D

      Communication replaces the need to understand algorithms

    Correct answer
    C

    Engineers 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.

  100. 100

    Why is industry knowledge valuable for machine-learning engineers?

    1. A

      It guarantees that every model will be perfectly accurate

    2. B

      It limits engineers to using only historical data

    3. C

      It eliminates the need for programming and mathematics

    4. D

      It helps them identify business problems where machine learning can provide useful solutions

    Correct answer
    D

    It 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.

  101. 101

    What is rapid prototyping in machine-learning work?

    1. A

      Training one model for as long as possible without evaluation

    2. B

      Avoiding experiments until the final product is built

    3. C

      Replacing all data with a manually designed prototype

    4. D

      Iterating quickly through models and ideas to find an effective approach

    Correct answer
    D

    Iterating 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.

  102. 102

    Why must machine-learning professionals keep up to date?

    1. A

      Machine-learning systems cannot use previously learned knowledge

    2. B

      Existing algorithms become invalid every day

    3. C

      Professional development is needed only before obtaining a first job

    4. D

      New models, tools, research findings, and techniques continue to develop rapidly

    Correct answer
    D

    New 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.

Question 1 of 102
Question 1 of 102

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent