1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning Basics

Study methods

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

Machine Learning Basics

  • 37Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Introduction and Basic Concepts

What is the definition of machine learning according to the content?

37 questions

  1. 1

    What is the definition of machine learning according to the content?

    1. A

      A class of algorithms that are data-driven and require explicit programming for each task.

    2. B

      The use of statistical techniques to find patterns in structured data only.

    3. C

      A method of data analysis that automates analytical model building using big data.

    4. D

      An application of artificial intelligence that provides systems the ability to automatically learn and improve from experience without being explicitly programmed.

    Correct answer
    D

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

  2. 2

    How does machine learning differ from traditional programming?

    1. A

      Traditional programming uses algorithms that learn on their own, while machine learning requires explicit instructions.

    2. B

      In traditional programming, data and predicted output are provided; in machine learning, data and program are provided.

    3. C

      Machine learning always produces better results than traditional programming.

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

    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.

  3. 3

    What is a key feature of machine learning mentioned in the content?

    1. A

      It can only work with large datasets.

    2. B

      It requires data to be always labeled for training.

    3. C

      It replaces the need for any human intervention.

    4. D

      It uses data to detect patterns and adjust program actions accordingly.

    Correct answer
    D

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

  4. 4

    According to the McKinsey report cited, what is the shortage of people with deep analytical expertise in the United States?

    1. A

      140,000 to 190,000 data scientists and 1.5 million machine learning engineers.

    2. B

      1.5 million data scientists and 140,000 to 190,000 analysts.

    3. C

      1.5 million people with deep analytical expertise and 140,000 to 190,000 managers and analysts.

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

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

  5. 5

    What does data science employ techniques and theories from?

    1. A

      Business management and economics only.

    2. B

      Biology, chemistry, and physics.

    3. C

      Mathematics, statistics, information science, and computer science.

    4. D

      Data visualization and storytelling.

    Correct answer
    C

    Mathematics, 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.'

  6. 6

    Which application of machine learning uses historic trip data to make more accurate ETA predictions?

    1. A

      Netflix video recommendations.

    2. B

      Google Maps navigation.

    3. C

      Facebook face recognition.

    4. D

      Uber's personalized app.

    Correct answer
    D

    Uber'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.'

  7. 7

    How does Facebook use machine learning for automatic friend tagging suggestions?

    1. A

      Through tracking user location and mutual friends.

    2. B

      Using DeepFace, a machine learning project that recognizes faces and suggests tags based on matches in its database.

    3. C

      By analyzing user posts and comments to find similar people.

    4. D

      By using GPS data to suggest nearby friends.

    Correct answer
    B

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

  8. 8

    What percentage of Amazon's revenue is generated by product recommendations, according to the content?

    1. A

      50%

    2. B

      25%

    3. C

      75%

    4. D

      35%

    Correct answer
    D

    35%

    Explanation

    The content states: '35% of Amazon's revenue is generated by the products recommendation.'

  9. 9

    Which type of machine learning algorithm does Nvidia use for self-driving cars according to the content?

    1. A

      Unsupervised learning algorithm.

    2. B

      Deep learning algorithm based on supervised learning.

    3. C

      Supervised learning algorithm.

    4. D

      Reinforcement learning algorithm.

    Correct answer
    A

    Unsupervised learning algorithm.

    Explanation

    The content mentions: 'Nvidia's artificial intelligence is driven by unsupervised learning algorithm.'

  10. 10

    What is the value of the autonomous vehicle market predicted by McKinsey?

    1. A

      1 trillion dollars.

    2. B

      750 billion dollars.

    3. C

      500 billion dollars.

    4. D

      100 billion dollars.

    Correct answer
    B

    750 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.'

  11. 11

    What is the first step in the machine learning life cycle according to the content?

    1. A

      Data wrangling.

    2. B

      Collecting data.

    3. C

      Training the algorithm.

    4. D

      Analyzing data.

    Correct answer
    B

    Collecting data.

    Explanation

    The content lists the six steps: collecting data, data wrangling, analyzing data, training the algorithm, testing the algorithm, deploying the algorithm.

  12. 12

    What is data wrangling in the machine learning lifecycle?

    1. A

      The process of collecting data from various sources.

    2. B

      The process of cleaning and converting raw data into a format suitable for consumption.

    3. C

      The process of analyzing data to select features.

    4. D

      The process of training the algorithm.

    Correct answer
    B

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

  13. 13

    Which Python library is described as 'simple and efficient for data mining and data analysis'?

    1. A

      Scikit-learn.

    2. B

      Pandas.

    3. C

      Matplotlib.

    4. D

      Seaborn.

    Correct answer
    A

    Scikit-learn.

    Explanation

    The content states: 'Scikit-learn is simple and efficient for data mining and for data analysis.'

  14. 14

    What is the primary purpose of the matplotlib library in Python for machine learning?

    1. A

      Performing numerical operations on arrays.

    2. B

      Enabling visualization such as bar charts, scatter plots, line charts, and histograms.

    3. C

      Providing data structures for data wrangling.

    4. D

      Implementing machine learning algorithms.

    Correct answer
    B

    Enabling 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.'

  15. 15

    Which type of machine learning uses input variable X and output variable Y to learn a mapping function?

    1. A

      Unsupervised learning.

    2. B

      Supervised learning.

    3. C

      Reinforcement learning.

    4. D

      Semi-supervised learning.

    Correct answer
    B

    Supervised 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.'

  16. 16

    Which supervised learning algorithm is used to estimate real values like cost of houses or total sales?

    1. A

      Random forest.

    2. B

      Decision tree.

    3. C

      Logistic regression.

    4. D

      Linear regression.

    Correct answer
    D

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

  17. 17

    In linear regression, what does the slope represent?

    1. A

      The correlation between variables.

    2. B

      The change in the dependent variable for a unit increase in the independent variable.

    3. C

      The value of the dependent variable when the independent variable is zero.

    4. D

      The intercept of the line with the y-axis.

    Correct answer
    B

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

  18. 18

    What is the main difference between linear regression and logistic regression?

    1. A

      Linear regression predicts continuous values; logistic regression predicts discrete binary outcomes.

    2. B

      Linear regression requires labeled data; logistic regression works with unlabeled data.

    3. C

      Linear regression uses a sigmoid curve; logistic regression uses a straight line.

    4. D

      Logistic regression is used for regression problems; linear regression for classification.

    Correct answer
    A

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

  19. 19

    What shape does the logistic regression curve take?

    1. A

      U-shaped curve.

    2. B

      Straight line.

    3. C

      Exponential curve.

    4. D

      Sigmoid curve (S-curve).

    Correct answer
    D

    Sigmoid curve (S-curve).

    Explanation

    The content says: 'The logistic regression curve is also called a sigmoid curve or the S curve.'

  20. 20

    In a decision tree, what does a leaf node represent?

    1. A

      A test on an attribute.

    2. B

      A classification rule.

    3. C

      A class label or decision after computing all attributes.

    4. D

      An outcome of a test.

    Correct answer
    C

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

  21. 21

    How does a random forest classifier make predictions compared to a single decision tree?

    1. A

      It averages the outputs of multiple linear regressions.

    2. B

      It combines results from many decision trees and uses majority voting, often yielding higher accuracy.

    3. C

      It randomly selects features and builds one tree.

    4. D

      It uses a single decision tree but with more data.

    Correct answer
    B

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

  22. 22

    Naive Bayes classifier is based on which theorem?

    1. A

      Pythagorean theorem.

    2. B

      Bayes theorem.

    3. C

      Gauss-Markov theorem.

    4. D

      Central limit theorem.

    Correct answer
    B

    Bayes theorem.

    Explanation

    The content states: 'Naive Bayes is a classification technique based on the Bayes theorem with an assumption of independence among predictors.'

  23. 23

    What is the assumption made by a Naive Bayes classifier about features?

    1. A

      They are dependent on each other.

    2. B

      They are linearly related to the output.

    3. C

      They are all normally distributed.

    4. D

      They are independent of each other given the class.

    Correct answer
    D

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

  24. 24

    Which type of clustering forces each data point to belong exclusively to one cluster?

    1. A

      Density-based clustering.

    2. B

      Overlapping (soft) clustering, e.g., fuzzy c-means.

    3. C

      Exclusive (hard) clustering, e.g., k-means.

    4. D

      Hierarchical clustering.

    Correct answer
    C

    Exclusive (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.'

  25. 25

    In k-means clustering, how is the distance from a data point to a centroid typically calculated?

    1. A

      Euclidean distance.

    2. B

      Cosine similarity.

    3. C

      Manhattan distance.

    4. D

      Correlation coefficient.

    Correct answer
    A

    Euclidean 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.'

  26. 26

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

    1. A

      Measuring the quality of clusters.

    2. B

      Determining the optimal number of clusters (K).

    3. C

      Initializing centroids.

    4. D

      Reducing dimensionality.

    Correct answer
    B

    Determining 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.'

  27. 27

    What is a key advantage of fuzzy c-means clustering over k-means clustering?

    1. A

      It always produces deterministic results.

    2. B

      It is faster and more scalable.

    3. C

      It allows a data point to belong to multiple clusters with different membership degrees.

    4. D

      It does not require specifying the number of clusters.

    Correct answer
    C

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

  28. 28

    Which type of clustering builds a hierarchy from bottom-up without requiring the number of clusters beforehand?

    1. A

      DBSCAN clustering.

    2. B

      Hierarchical clustering.

    3. C

      K-means clustering.

    4. D

      Fuzzy c-means clustering.

    Correct answer
    B

    Hierarchical 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.'

  29. 29

    In association rule mining, what does 'support' measure?

    1. A

      The probability that item B is bought given item A is bought.

    2. B

      The number of times item A appears in transactions.

    3. C

      The fraction of transactions that contain both items A and B.

    4. D

      The strength of the rule over random occurrence.

    Correct answer
    C

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

  30. 30

    What does the 'lift' metric in association rule mining indicate?

    1. A

      The proportion of transactions containing B when A is present.

    2. B

      The strength of the rule over the random occurrence of A and B.

    3. C

      The number of rules generated.

    4. D

      The frequency of the itemset.

    Correct answer
    B

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

  31. 31

    In reinforcement learning, what is the role of the agent?

    1. A

      It learns from trial and error by performing actions and observing rewards to maximize cumulative reward.

    2. B

      It stores the Q-values.

    3. C

      It defines the environment and obstacles.

    4. D

      It provides the reward signal.

    Correct answer
    A

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

  32. 32

    What does the discount factor gamma (ฮณ) in reinforcement learning control?

    1. A

      The number of states in the environment.

    2. B

      The probability of exploration.

    3. C

      The learning rate of the algorithm.

    4. D

      The importance of future rewards compared to immediate rewards.

    Correct answer
    D

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

  33. 33

    In Q-learning, what does the Q-value represent?

    1. A

      The probability of transitioning to the next state.

    2. B

      The expected long-term reward for taking an action in a given state.

    3. C

      The number of times an action has been taken.

    4. D

      The immediate reward received after taking an action.

    Correct answer
    B

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

  34. 34

    What is the main difference between exploration and exploitation in reinforcement learning?

    1. A

      Exploration focuses on immediate reward; exploitation focuses on long-term reward.

    2. B

      Exploration uses known information; exploitation gathers new information.

    3. C

      Exploitation uses known information to maximize reward; exploration gathers new information to find better rewards.

    4. D

      They are the same concept.

    Correct answer
    C

    Exploitation 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.'

  35. 35

    In the epsilon-greedy algorithm, what does the agent do with probability epsilon?

    1. A

      It chooses the action with maximum Q-value.

    2. B

      It stops learning.

    3. C

      It exploits the best known action.

    4. D

      It explores by taking a random action.

    Correct answer
    D

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

  36. 36

    What mathematical framework is used to model reinforcement learning problems according to the content?

    1. A

      Bayesian network.

    2. B

      Markov decision process (MDP).

    3. C

      Linear programming.

    4. D

      Hidden Markov model (HMM).

    Correct answer
    B

    Markov decision process (MDP).

    Explanation

    The content states: 'The mathematical approach for mapping a solution in reinforcement learning is called Markov decision process (MDP).'

  37. 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?

    1. A

      100

    2. B

      -1

    3. C

      50

    4. D

      0

    Correct answer
    A

    100

    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.

Question 1 of 37
Question 1 of 37

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent