← Back to quizzesFree quiz

Fundamentals of AI and Machine Learning

Artificial Intelligence (AI) is a broad discipline that aims to create systems capable of intelligent behavior. Machine Learning (ML) is a subfield of AI that focuses on algorithms that…

20 questions~10 min
Fundamentals of AI and Machine Learning — Qwi
0 / 20
Score: 0%
1

Which of the following best describes the relationship between artificial intelligence (AI) and machine learning (ML)?

2

In the supervised learning example with patients, what is the role of the label column?

3

Which scenario exemplifies unsupervised learning?

4

In reinforcement learning, how does the agent improve its performance?

5

What distinguishes a target column from independent columns in a dataset?

6

Which regression technique is most appropriate when the dependent variable follows a Poisson distribution?

7

When would you prefer to use Lasso regression over Ridge regression?

8

In the context of AI, why does the example of an air‑conditioner turning off automatically not involve machine learning?

9

What is the primary purpose of a 'feature' in a machine‑learning dataset?

10

Which of the following best characterizes a 'instance' in a tabular dataset?

11

Why might a linear regression model be insufficient for modeling a highly non‑linear relationship?

12

In a multiple linear regression model, what does the coefficient B_i represent?

13

Which regression technique is specifically designed to handle high‑dimensional data with strong multicollinearity?

14

What is the main advantage of using a Bayesian regression approach over a traditional point‑estimate regression?

15

When applying logistic regression, what does the S‑shaped curve represent?

16

Which of the following best explains why a decision‑tree model is considered a form of AI but not necessarily machine learning?

17

In the context of AI applications, what distinguishes 'automation' from 'machine learning'?

18

Which type of learning would be most appropriate for recommending YouTube videos to a user based on their watch history?

19

What is the primary purpose of the error term (E_i) in a regression equation?

20

When analyzing a dataset with both continuous and categorical predictors, which regression model can naturally handle both types?

Understanding the Relationship Between AI and Machine Learning

Artificial Intelligence (AI) is a broad discipline that aims to create systems capable of intelligent behavior. Machine Learning (ML) is a subfield of AI that focuses on algorithms that learn patterns from data without being explicitly programmed.

Key point:

  • Every ML model is an AI technique, but AI also includes rule‑based, symbolic, and heuristic approaches that do not involve learning.
  • ML is therefore a subset of AI, not a separate discipline.

Supervised Learning: Labels and Targets

What is a label column?

In supervised learning, the dataset contains features (independent variables) and a label (target column). The label provides the correct answer for each training example, allowing the algorithm to learn the mapping from inputs to outputs.

Example with patient data:

  • Features: age, blood pressure, cholesterol level, etc.
  • Label (target): disease outcome (e.g., "has disease" vs. "no disease").

The label column is essential because it guides the model during training, enabling it to predict future, unseen cases.

Unsupervised Learning: Discovering Structure Without Labels

Unsupervised learning algorithms explore data without any predefined target. They aim to uncover hidden patterns, group similar observations, or reduce dimensionality.

Typical unsupervised tasks

  • Clustering: grouping patients by age and gender without using health status labels.
  • Dimensionality reduction: summarizing many features into a few principal components.
  • Anomaly detection: identifying outliers that deviate from normal behavior.

Because no label is required, unsupervised learning is ideal for exploratory data analysis and situations where labeling is costly or impossible.

Reinforcement Learning: Learning Through Interaction

Reinforcement Learning (RL) differs from supervised and unsupervised approaches. An agent interacts with an environment, takes actions, and receives rewards or penalties. Over time, the agent learns a policy that maximizes cumulative reward.

  • Improvement is driven by feedback (rewards) rather than explicit error minimization.
  • Typical applications: robotics, game playing, autonomous navigation.

Target vs. Independent Variables in Datasets

When preparing data for modeling, it is crucial to distinguish between the target column (also called the response or label) and the independent columns (features).

  • The target column is what the model aims to predict.
  • Independent columns provide the input information used to make that prediction.
  • During training, the model learns the relationship: features → target.

Understanding this distinction helps avoid data leakage and ensures that the model is evaluated correctly.

Choosing the Right Regression Technique

Poisson Regression for Count Data

If the dependent variable represents counts (e.g., number of website clicks per day) and follows a Poisson distribution, Poisson regression is the appropriate model. It links the expected count to the linear combination of predictors via a log‑link function.

Linear vs. Ridge vs. Lasso Regression

When the response is continuous and approximately normally distributed, linear regression works well. However, real‑world data often suffers from multicollinearity or high dimensionality, prompting the use of regularized methods:

  • Ridge regression adds an L2 penalty, shrinking coefficients but keeping all features.
  • Lasso regression adds an L1 penalty, which can force some coefficients to exactly zero, performing automatic feature selection.

Choose Lasso when you need a sparse model that highlights the most important predictors.

When Machine Learning Is Not Involved

Not every intelligent‑looking system uses machine learning. Consider an air‑conditioner that turns off automatically when the temperature reaches a preset threshold. This behavior is driven by a hard‑coded rule (e.g., "if temperature > 25°C, turn off"). Because the rule does not adapt or improve from data, the system does not employ ML.

Key distinction:

  • ML systems learn from data and can evolve over time.
  • Rule‑based systems execute predefined logic without learning.

Summary of Core Concepts

  • AI encompasses all techniques that exhibit intelligent behavior; ML is a subset focused on data‑driven learning.
  • Supervised learning relies on labeled data; the label column provides the target for training.
  • Unsupervised learning discovers patterns without labels, such as clustering patients by demographics.
  • Reinforcement learning improves through reward signals, not error minimization.
  • Target columns are predicted using independent columns; proper separation prevents data leakage.
  • Poisson regression suits count data; Lasso regression offers feature selection, while Ridge retains all features.
  • Hard‑coded rules, like an automatic air‑conditioner shutdown, do not constitute machine learning.

Understanding these fundamentals equips you to select the right AI technique for a given problem, design effective datasets, and recognize when a simple rule‑based approach is sufficient.