Machine Learning Basics
- 37Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the definition of machine learning according to the content?
What is the definition of machine learning according to the content?
37 questions
- 1
What is the definition of machine learning according to the content?
- A
A class of algorithms that are data-driven and require explicit programming for each task.
- B
The use of statistical techniques to find patterns in structured data only.
- C
A method of data analysis that automates analytical model building using big data.
- D
An application of artificial intelligence that provides systems the ability to automatically learn and improve from experience without being explicitly programmed.
Correct answer
DAn application of artificial intelligence that provides systems the ability to automatically learn and improve from experience without being explicitly programmed.
Explanation
The content states: 'Machine learning is an application of artificial intelligence that provides systems the ability to automatically learn and improve from experience without being explicitly programmed.'
- A
- 2
How does machine learning differ from traditional programming?
- A
Traditional programming uses algorithms that learn on their own, while machine learning requires explicit instructions.
- B
In traditional programming, data and predicted output are provided; in machine learning, data and program are provided.
- C
Machine learning always produces better results than traditional programming.
- D
In traditional programming, data and program are provided to generate output; in machine learning, data and predicted output are provided to create a model.
Correct answer
DIn traditional programming, data and program are provided to generate output; in machine learning, data and predicted output are provided to create a model.
Explanation
The content explains: In traditional programming, data and program are given to produce output. In machine learning, data and predicted output are given; the machine learns from data to create a model.
- A
- 3
What is a key feature of machine learning mentioned in the content?
- A
It can only work with large datasets.
- B
It requires data to be always labeled for training.
- C
It replaces the need for any human intervention.
- D
It uses data to detect patterns and adjust program actions accordingly.
Correct answer
DIt uses data to detect patterns and adjust program actions accordingly.
Explanation
The content lists features: 'It uses the data to detect patterns in a data set and adjust program actions accordingly.'
- A
- 4
According to the McKinsey report cited, what is the shortage of people with deep analytical expertise in the United States?
- A
140,000 to 190,000 data scientists and 1.5 million machine learning engineers.
- B
1.5 million data scientists and 140,000 to 190,000 analysts.
- C
1.5 million people with deep analytical expertise and 140,000 to 190,000 managers and analysts.
- D
140,000 to 190,000 people with deep analytical expertise and 1.5 million managers and analysts who can understand and make decisions based on big data analysis.
Correct answer
D140,000 to 190,000 people with deep analytical expertise and 1.5 million managers and analysts who can understand and make decisions based on big data analysis.
Explanation
The content states: 'The United States alone faces a shortage of 140,000 to 190,000 people with deep analytical expertise and 1.5 million managers and analysts with the skills to understand and make decisions based on the analysis of big data.'
- A
- 5
What does data science employ techniques and theories from?
- A
Business management and economics only.
- B
Biology, chemistry, and physics.
- C
Mathematics, statistics, information science, and computer science.
- D
Data visualization and storytelling.
Correct answer
CMathematics, statistics, information science, and computer science.
Explanation
The content mentions: 'Data science employs many techniques and theories from fields like mathematics, statistics, information science, and computer science.'
- A
- 6
Which application of machine learning uses historic trip data to make more accurate ETA predictions?
- A
Netflix video recommendations.
- B
Google Maps navigation.
- C
Facebook face recognition.
- D
Uber's personalized app.
Correct answer
DUber's personalized app.
Explanation
The content states: 'Uber uses machine learning algorithm layered on top of historic trip data to make more accurate ETA predictions.'
- A
- 7
How does Facebook use machine learning for automatic friend tagging suggestions?
- A
Through tracking user location and mutual friends.
- B
Using DeepFace, a machine learning project that recognizes faces and suggests tags based on matches in its database.
- C
By analyzing user posts and comments to find similar people.
- D
By using GPS data to suggest nearby friends.
Correct answer
BUsing DeepFace, a machine learning project that recognizes faces and suggests tags based on matches in its database.
Explanation
The content explains: 'Facebook uses DeepFace, its machine learning project, for recognition of faces and suggests tags based on matches in its database.'
- A
- 8
What percentage of Amazon's revenue is generated by product recommendations, according to the content?
- A
50%
- B
25%
- C
75%
- D
35%
Correct answer
D35%
Explanation
The content states: '35% of Amazon's revenue is generated by the products recommendation.'
- A
- 9
Which type of machine learning algorithm does Nvidia use for self-driving cars according to the content?
- A
Unsupervised learning algorithm.
- B
Deep learning algorithm based on supervised learning.
- C
Supervised learning algorithm.
- D
Reinforcement learning algorithm.
Correct answer
AUnsupervised learning algorithm.
Explanation
The content mentions: 'Nvidia's artificial intelligence is driven by unsupervised learning algorithm.'
- A
- 10
What is the value of the autonomous vehicle market predicted by McKinsey?
- A
1 trillion dollars.
- B
750 billion dollars.
- C
500 billion dollars.
- D
100 billion dollars.
Correct answer
B750 billion dollars.
Explanation
The content states: 'According to the data gathered by McKinsey, the autonomous data will hold a tremendous value of 750 billion dollars.'
- A
- 11
What is the first step in the machine learning life cycle according to the content?
- A
Data wrangling.
- B
Collecting data.
- C
Training the algorithm.
- D
Analyzing data.
Correct answer
BCollecting data.
Explanation
The content lists the six steps: collecting data, data wrangling, analyzing data, training the algorithm, testing the algorithm, deploying the algorithm.
- A
- 12
What is data wrangling in the machine learning lifecycle?
- A
The process of collecting data from various sources.
- B
The process of cleaning and converting raw data into a format suitable for consumption.
- C
The process of analyzing data to select features.
- D
The process of training the algorithm.
Correct answer
BThe process of cleaning and converting raw data into a format suitable for consumption.
Explanation
The content defines: 'Data wrangling is the process of cleaning and converting raw data into a format that can be used for consumption.'
- A
- 13
Which Python library is described as 'simple and efficient for data mining and data analysis'?
- A
Scikit-learn.
- B
Pandas.
- C
Matplotlib.
- D
Seaborn.
Correct answer
AScikit-learn.
Explanation
The content states: 'Scikit-learn is simple and efficient for data mining and for data analysis.'
- A
- 14
What is the primary purpose of the matplotlib library in Python for machine learning?
- A
Performing numerical operations on arrays.
- B
Enabling visualization such as bar charts, scatter plots, line charts, and histograms.
- C
Providing data structures for data wrangling.
- D
Implementing machine learning algorithms.
Correct answer
BEnabling visualization such as bar charts, scatter plots, line charts, and histograms.
Explanation
The content says: 'Matplotlib enables you to make bar charts, scatter plots, line charts, histograms... helps in the visualization aspect.'
- A
- 15
Which type of machine learning uses input variable X and output variable Y to learn a mapping function?
- A
Unsupervised learning.
- B
Supervised learning.
- C
Reinforcement learning.
- D
Semi-supervised learning.
Correct answer
BSupervised learning.
Explanation
The content defines supervised learning: 'Supervised learning is where you have the input variable X and the output variable Y and you use an algorithm to learn the mapping function from the input to the output.'
- A
- 16
Which supervised learning algorithm is used to estimate real values like cost of houses or total sales?
- A
Random forest.
- B
Decision tree.
- C
Logistic regression.
- D
Linear regression.
Correct answer
DLinear regression.
Explanation
The content states: 'Linear regression is used to estimate real values, for example the cost of houses, the number of calls, the total sales.'
- A
- 17
In linear regression, what does the slope represent?
- A
The correlation between variables.
- B
The change in the dependent variable for a unit increase in the independent variable.
- C
The value of the dependent variable when the independent variable is zero.
- D
The intercept of the line with the y-axis.
Correct answer
BThe change in the dependent variable for a unit increase in the independent variable.
Explanation
The content explains: 'Slope is the change in the dependent variable for a unit increase in the independent variable. It is the tangent of the angle made by the line with the x-axis.'
- A
- 18
What is the main difference between linear regression and logistic regression?
- A
Linear regression predicts continuous values; logistic regression predicts discrete binary outcomes.
- B
Linear regression requires labeled data; logistic regression works with unlabeled data.
- C
Linear regression uses a sigmoid curve; logistic regression uses a straight line.
- D
Logistic regression is used for regression problems; linear regression for classification.
Correct answer
ALinear regression predicts continuous values; logistic regression predicts discrete binary outcomes.
Explanation
The content clarifies: Linear regression estimates real values (continuous), while logistic regression estimates discrete values (binary) like yes/no.
- A
- 19
What shape does the logistic regression curve take?
- A
U-shaped curve.
- B
Straight line.
- C
Exponential curve.
- D
Sigmoid curve (S-curve).
Correct answer
DSigmoid curve (S-curve).
Explanation
The content says: 'The logistic regression curve is also called a sigmoid curve or the S curve.'
- A
- 20
In a decision tree, what does a leaf node represent?
- A
A test on an attribute.
- B
A classification rule.
- C
A class label or decision after computing all attributes.
- D
An outcome of a test.
Correct answer
CA class label or decision after computing all attributes.
Explanation
The content states: 'Each leaf node represents the class label, which is a decision taken after computing all attributes.'
- A
- 21
How does a random forest classifier make predictions compared to a single decision tree?
- A
It averages the outputs of multiple linear regressions.
- B
It combines results from many decision trees and uses majority voting, often yielding higher accuracy.
- C
It randomly selects features and builds one tree.
- D
It uses a single decision tree but with more data.
Correct answer
BIt combines results from many decision trees and uses majority voting, often yielding higher accuracy.
Explanation
The content explains: 'Random forest is an ensemble classifier made using many decision tree models... every tree votes for one class, the final decision is based upon the majority of votes, and it is better than decision tree.'
- A
- 22
Naive Bayes classifier is based on which theorem?
- A
Pythagorean theorem.
- B
Bayes theorem.
- C
Gauss-Markov theorem.
- D
Central limit theorem.
Correct answer
BBayes theorem.
Explanation
The content states: 'Naive Bayes is a classification technique based on the Bayes theorem with an assumption of independence among predictors.'
- A
- 23
What is the assumption made by a Naive Bayes classifier about features?
- A
They are dependent on each other.
- B
They are linearly related to the output.
- C
They are all normally distributed.
- D
They are independent of each other given the class.
Correct answer
DThey are independent of each other given the class.
Explanation
The content says: 'Naive Bayes assumes the presence of a particular feature in a class is unrelated to the presence of any other feature.'
- A
- 24
Which type of clustering forces each data point to belong exclusively to one cluster?
- A
Density-based clustering.
- B
Overlapping (soft) clustering, e.g., fuzzy c-means.
- C
Exclusive (hard) clustering, e.g., k-means.
- D
Hierarchical clustering.
Correct answer
CExclusive (hard) clustering, e.g., k-means.
Explanation
The content defines: 'In exclusive clustering, an item belongs exclusively to one cluster, not several clusters. An example is K-means clustering.'
- A
- 25
In k-means clustering, how is the distance from a data point to a centroid typically calculated?
- A
Euclidean distance.
- B
Cosine similarity.
- C
Manhattan distance.
- D
Correlation coefficient.
Correct answer
AEuclidean distance.
Explanation
The content says: 'The algorithm calculates the Euclidean distance of the point from each centroid and assigns the data point to the closest cluster.'
- A
- 26
What is the elbow method used for in k-means clustering?
- A
Measuring the quality of clusters.
- B
Determining the optimal number of clusters (K).
- C
Initializing centroids.
- D
Reducing dimensionality.
Correct answer
BDetermining the optimal number of clusters (K).
Explanation
The content explains: 'To decide the number of clusters we have the elbow method. It chooses the K at which the SSE decreases abruptly.'
- A
- 27
What is a key advantage of fuzzy c-means clustering over k-means clustering?
- A
It always produces deterministic results.
- B
It is faster and more scalable.
- C
It allows a data point to belong to multiple clusters with different membership degrees.
- D
It does not require specifying the number of clusters.
Correct answer
CIt allows a data point to belong to multiple clusters with different membership degrees.
Explanation
The content states: 'Fuzzy c-means discovers the soft clusters in which any point can belong to more than one cluster at a time with a certain affinity value.'
- A
- 28
Which type of clustering builds a hierarchy from bottom-up without requiring the number of clusters beforehand?
- A
DBSCAN clustering.
- B
Hierarchical clustering.
- C
K-means clustering.
- D
Fuzzy c-means clustering.
Correct answer
BHierarchical clustering.
Explanation
The content explains: 'Hierarchical clustering is an alternative approach which builds a hierarchy from the bottom up or top to bottom and does not require to specify the number of clusters beforehand.'
- A
- 29
In association rule mining, what does 'support' measure?
- A
The probability that item B is bought given item A is bought.
- B
The number of times item A appears in transactions.
- C
The fraction of transactions that contain both items A and B.
- D
The strength of the rule over random occurrence.
Correct answer
CThe fraction of transactions that contain both items A and B.
Explanation
The content says: 'Support gives the fraction of the transaction which contains an item A and B. It is basically the frequency of the item in the whole item set.'
- A
- 30
What does the 'lift' metric in association rule mining indicate?
- A
The proportion of transactions containing B when A is present.
- B
The strength of the rule over the random occurrence of A and B.
- C
The number of rules generated.
- D
The frequency of the itemset.
Correct answer
BThe strength of the rule over the random occurrence of A and B.
Explanation
The content explains: 'Lift indicates the strength of the rule over the random occurrence of A and B. If the value of lift is more, it implies that the rule is strong.'
- A
- 31
In reinforcement learning, what is the role of the agent?
- A
It learns from trial and error by performing actions and observing rewards to maximize cumulative reward.
- B
It stores the Q-values.
- C
It defines the environment and obstacles.
- D
It provides the reward signal.
Correct answer
AIt learns from trial and error by performing actions and observing rewards to maximize cumulative reward.
Explanation
The content states: 'The agent is the reinforcement learning algorithm that learns from trial and error. It selects actions to maximize reward.'
- A
- 32
What does the discount factor gamma (ฮณ) in reinforcement learning control?
- A
The number of states in the environment.
- B
The probability of exploration.
- C
The learning rate of the algorithm.
- D
The importance of future rewards compared to immediate rewards.
Correct answer
DThe importance of future rewards compared to immediate rewards.
Explanation
The content says: 'Gamma is a discount factor between 0 and 1. The smaller the gamma, the larger the discount on future rewards.'
- A
- 33
In Q-learning, what does the Q-value represent?
- A
The probability of transitioning to the next state.
- B
The expected long-term reward for taking an action in a given state.
- C
The number of times an action has been taken.
- D
The immediate reward received after taking an action.
Correct answer
BThe expected long-term reward for taking an action in a given state.
Explanation
The content explains that the Q matrix represents memory of what the agent has learned, and the Q-value is the expected discounted reward for taking an action in a state.
- A
- 34
What is the main difference between exploration and exploitation in reinforcement learning?
- A
Exploration focuses on immediate reward; exploitation focuses on long-term reward.
- B
Exploration uses known information; exploitation gathers new information.
- C
Exploitation uses known information to maximize reward; exploration gathers new information to find better rewards.
- D
They are the same concept.
Correct answer
CExploitation uses known information to maximize reward; exploration gathers new information to find better rewards.
Explanation
The content states: 'Exploitation is about using the already known expert information to heighten his rewards, whereas exploration is all about exploring and capturing more information about the environment.'
- A
- 35
In the epsilon-greedy algorithm, what does the agent do with probability epsilon?
- A
It chooses the action with maximum Q-value.
- B
It stops learning.
- C
It exploits the best known action.
- D
It explores by taking a random action.
Correct answer
DIt explores by taking a random action.
Explanation
The content says: 'With probability epsilon, the algorithm explores (takes a random action). With probability 1-epsilon, it exploits the best option.'
- A
- 36
What mathematical framework is used to model reinforcement learning problems according to the content?
- A
Bayesian network.
- B
Markov decision process (MDP).
- C
Linear programming.
- D
Hidden Markov model (HMM).
Correct answer
BMarkov decision process (MDP).
Explanation
The content states: 'The mathematical approach for mapping a solution in reinforcement learning is called Markov decision process (MDP).'
- A
- 37
In the Q-learning example with five rooms and outside (room 5), what reward is given for an action that leads directly to room 5?
- A
100
- B
-1
- C
50
- D
0
Correct answer
A100
Explanation
The content shows: 'The doors that directly lead to the target (room 5) have a reward of 100.' The R matrix has 100 for transitions to room 5.
- A

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