Supervised vs unsupervised learning and deep learning

Supervised vs unsupervised learning and deep learning

Supervised vs unsupervised learning and deep learning

On this page

Learning Outcome Statement

Describe supervised machine learning, unsupervised machine learning, and deep learning.

On the exam. The given inputs are the data's label status, the learning objective, and any multilayer architecture named in the vignette. The asked quantity may be the learning category, the model's output, or the meaning of a pattern, and the item form is usually a multiple-choice question. Read the stem for those clues before you compare answer choices. Labeled targets point to supervised learning, missing targets paired with a search for groups point to unsupervised learning, and several neural-network layers point to deep learning as an architecture that can sit with either category.

On a machine-learning vignette, ask what signal the model learns from and what architecture carries that learning. A label is the result attached to an observation, such as whether a borrower repaid a loan, and it gives the model a result against which it can check its output. Labeled outcomes let the model connect inputs with known results and adjust its parameters to predict an outcome for a new input. Unlabeled data gives it no known result to match, so it searches for structure or patterns, while deep learning describes a multilayer neural network rather than a separate learning signal.

ApproachLearning signalDefining feature
Supervised learningLabeled outcomesLearns mapping for prediction
Unsupervised learningUnlabeled dataFinds structure or patterns
Deep learningLabeled or unlabeled dataUses multilayer neural networks

Supervised and unsupervised describe the learning signal. Deep learning describes the architecture, so it can accompany either signal. A bank that trains a multilayer network on past loan applications with repayment outcomes is using supervised deep learning because the labels guide the prediction. The same bank could use a multilayer network to group customers by similarities without repayment outcomes, which is unsupervised deep learning.

To see what supervised learning does, start with the training example rather than with the notation. Suppose the model receives an observation $x$ and, during training, sees its known outcome $y$. After the model studies many such pairs, its learned parameters $\theta$ define the mapping $f_{\theta}$ from an observation to an estimated outcome. For a new observation, that mapping produces a prediction $\hat{y}$ before the actual outcome is known, and the formula below describes this prediction step in supervised learning.

$$ \hat{y}=f_{\theta}(x) $$

The input $x$ carries observed information into the mapping $f_{\theta}$. During training, the model compares its prediction $\hat{y}$ with the known outcome $y$, and that comparison tells the model how its parameters should change. Changing $x$ can change $\hat{y}$ through the mapping, while changing $\theta$ changes the mapping itself, so the model can produce different predictions after learning. At prediction time, the new input is available but its outcome is not, which is why $y$ guides supervised training but is not the prediction.

The picture keeps the learning signal separate from the architecture. A candidate may see the word “deep” and select it as though it were an alternative to supervised learning. That feels right because the vignette may spend many words describing hidden layers, but the clue is that “deep” answers how the model is built, while labels answer what signal it learns from. If both clues appear, give both parts of the answer, such as supervised deep learning, instead of forcing the vignette into one category.

Worked example

You are handed a borrower dataset. Each record contains observed inputs and a known default status, and an analyst trains a multilayer neural network to predict default for a new borrower. The exam asks you to classify the learning signal, classify the architecture, and state the output.

Given
Inputs
Outcome
Architecture
Objective

Here, borrower records are the inputs, known default status is the labeled outcome, the multilayer neural network is the architecture, and predicted default is the objective.

Run the case through the label check and the architecture check. This keeps the two classifications distinct when you read the answer choices.

Loading diagram…
  1. Inspect the outcome field and confirm that every record has a known default status, because a known target supplies the label used to train the model. This produces the learning-signal classification: supervised learning.
  2. Read the objective and identify the model's required output, because the model must apply what it learned to a new borrower. This produces a default prediction for the new borrower.
  3. Inspect the architecture and confirm that the network is multilayer, because multiple layers are what support the deep-learning classification. This produces the architecture classification: deep learning, without changing the supervised learning signal.

Classify the method as supervised learning with deep learning. For the lending decision, use its output as a predicted default outcome, not as an unlabeled pattern.

Changed condition

You keep the inputs and the multilayer neural network, but you remove the known default status. That single change alters what the model can learn: without labeled outcomes, it looks for structure in the data instead of matching a known answer.

FeatureBeforeAfter
Outcome labelsKnown default statusNo outcome labels
ArchitectureMultilayer neural networkMultilayer neural network
OutputDefault predictionDiscovered structure or patterns

With no labels, the learning signal moves from supervised learning to unsupervised learning. Your architecture is still a multilayer neural network, so the deep-learning classification stays unchanged. The output changes from a default prediction to discovered structure or patterns because no known outcome guides the model. On the exam, classify the learning signal first, then the architecture.

Common error

A candidate sees a multilayer neural network and chooses deep learning as a mutually exclusive third category. That feels right because the architecture is prominent in the vignette and seems to name the whole method. What gives it away is that a multilayer neural network can be trained with labeled or unlabeled data, so classify the learning signal separately from the architecture.

Check yourself

Practice

An analyst has records with a known outcome for each observation and trains a multilayer neural network to predict that outcome for new observations.

Question 1

Which learning signal does the analyst use?

Question 2

Which architecture is present?

Question 3

Which combined description best fits the analyst's method?

Question 4

What does the trained model produce for a new observation?

An analyst gives unlabeled observations to a multilayer neural network. Which description is most accurate?

Revision snapshot

For a labeled input $x$, the learned mapping $f_{\theta}$ produces prediction $\hat{y}$.

$$ \hat{y}=f_{\theta}(x) $$

Supervised learning uses labeled outcomes to learn a mapping and make predictions. Unsupervised learning uses unlabeled data to discover structure or patterns. Deep learning uses multilayer neural networks and may be supervised or unsupervised. Classify the learning signal separately from the model architecture. On the exam, read the label status, objective, and architecture. The trap is treating deep learning as a mutually exclusive third category.

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Practice Questions: Supervised vs unsupervised learning and deep learning

  1. 1. An investor deposits USD 10,000 for 18 months at a stated annual rate of 6%, compounded monthly. The calculated future value is closest to:

    • A. USD 10,900
    • B. USD 10,913
    • C. USD 10,939
    Show answer

    Answer: C. USD 10,939

    USD 10,939 - The monthly rate is 0.5% (6% ÷ 12), and 18 months gives 18 compounding periods. - The future value is USD 10,000 × (1.005)^18 ≈ USD 10,939. USD 10,900 - This comes from simple interest: USD 10,000 × [1 + (0.06 × 1.5)] = USD 10,900. - It is too low because it omits the interest earned on interest during the 18 monthly periods. USD 10,913 - This comes from using annual rather than monthly compounding: USD 10,000 × (1.06)^1.5 ≈ USD 10,913. - The stated rate is compounded monthly, so the calculation must use 0.005 per month for 18 periods.

  2. 2. An analyst compares one-period simple returns with continuously compounded returns for an asset whose price remains positive. Which conclusion is most accurate?

    • A. Both returns have a lower bound of −100%
    • B. Neither return has a finite lower bound
    • C. Only the continuously compounded return is unbounded below
    Show answer

    Answer: C. Only the continuously compounded return is unbounded below

    Only the continuously compounded return is unbounded below - The simple return, \(P1/P0-1\), has a lower bound of −100% because both prices are positive. - The continuously compounded return, \(\ln(P1/P0)\), approaches negative infinity as the ending price approaches zero. Both returns have a lower bound of −100% - −100% is the lower bound for the simple return, not the continuously compounded return. - The logarithm of a positive price relative has no finite lower bound. Neither return has a finite lower bound - The continuously compounded return is unbounded below, but the simple return is not. - A positive ending price makes the simple return greater than −100%, however close the price gets to zero.

  3. 3. An analyst obtains a p-value of 0.030 for a two-sided test conducted at the 5% significance level. The analyst should most likely:

    • A. Reject the null hypothesis
    • B. Fail to reject the null hypothesis
    • C. Accept the null hypothesis as true
    Show answer

    Answer: A. Reject the null hypothesis

    Reject the null hypothesis - The p-value of 0.030 is below the 0.050 significance level. - The test result is therefore statistically significant, so the analyst rejects the null hypothesis. Fail to reject the null hypothesis - That decision would apply if the p-value were greater than 0.050, not 0.030. - Choosing it reverses the decision rule for this test. Accept the null hypothesis as true - A hypothesis test cannot establish that the null hypothesis is true. - Even when a p-value exceeds the significance level, the decision is to fail to reject, not to accept the null hypothesis.

  4. 4. For 36 independent monthly active returns, the mean is 0.80% and sample standard deviation is 2.40%. At 5%, test H₀: μ ≤ 0 against H₁: μ > 0; the one-tailed critical t-value is 1.69.

    • A. Fail to reject the null because 0.80% is economically small
    • B. Fail to reject the null because the test statistic is below 1.96
    • C. Reject the null in favor of a positive mean return
    Show answer

    Answer: C. Reject the null in favor of a positive mean return

    Reject the null in favor of a positive mean return - The standard error is 2.40%/√36 = 0.40%, giving a t-statistic of 0.80%/0.40% = 2.00. - Because 2.00 exceeds the supplied one-tailed critical value of 1.69, reject H₀ at 5% in favor of a positive mean return. Fail to reject the null because 0.80% is economically small - Economic size does not determine whether the sample mean is statistically significant in this hypothesis test. - The mean of 0.80% produces a t-statistic of 2.00, above the rejection threshold of 1.69. Fail to reject the null because the test statistic is below 1.96 - The test statistic is 2.00, so it is not below 1.96. - Moreover, 1.96 is not the supplied one-tailed t critical value; the applicable threshold is 1.69.

  5. 5. A deposit earns a nominal annual rate of 7.20%, compounded monthly. The calculated value of its effective annual return is closest to:

    • A. 7.20%
    • B. 7.44%
    • C. 7.47%
    Show answer

    Answer: B. 7.44%

    7.44% - The monthly rate is 0.60% (7.20% ÷ 12). - Compounding for 12 months gives (1 + 0.072/12)^12 − 1 ≈ 7.44%. 7.20% - This is the stated nominal annual rate, not the effective annual return. - It omits the interest earned on interest during the 12 monthly compounding periods. 7.47% - This results from using continuous compounding: e^0.072 − 1 ≈ 7.47%. - The deposit compounds monthly, so its effective annual return is 7.44% instead.

  6. 6. An investor deposits USD 1,000 at the beginning of each quarter for two years. At 8% nominal compounded quarterly, the value immediately after the eighth quarter's interest is credited is closest to:

    • A. USD 8,000.00
    • B. USD 8,582.97
    • C. USD 8,754.63
    Show answer

    Answer: C. USD 8,754.63

    USD 8,754.63 - The eight beginning-of-quarter deposits form an annuity due earning 8% ÷ 4 = 2% per quarter. - Immediately after the eighth quarter’s interest is credited, their value is USD 1,000(1.02⁸ − 1) ÷ 0.02 = USD 8,754.63. USD 8,000.00 - This is eight deposits × USD 1,000 = USD 8,000, with no interest included. - It misses the interest earned because every deposit is made before a quarter’s interest is credited. USD 8,582.97 - USD 1,000[(1.02⁸ − 1) ÷ 0.02] = USD 8,582.97 treats the deposits as an ordinary annuity made at quarter-end. - Beginning-of-quarter deposits each earn one additional quarter of interest, requiring multiplication by 1.02.

  7. 7. For 36 independent monthly returns, the sample mean is 0.8% and sample standard deviation is 2.4%. Testing H0: μ ≤ 0 against Ha: μ > 0 at 5%, with critical t = 1.690, the analyst should:

    • A. Reject the null hypothesis
    • B. Fail to reject because the test is one-tailed
    • C. Fail to reject because the sample mean is below 1.0%
    Show answer

    Answer: A. Reject the null hypothesis

    Reject the null hypothesis - The standard error is 2.4%/√36 = 0.4%, so the t-statistic is (0.8% − 0)/0.4% = 2.00. - Because 2.00 exceeds the stated 5% critical t-value of 1.690, reject H0 in favor of μ > 0. Fail to reject because the test is one-tailed - The alternative μ > 0 places the rejection region in the upper tail; being one-tailed does not itself justify failing to reject. - The calculated t-statistic of 2.00 is above the stated upper-tail cutoff of 1.690. Fail to reject because the sample mean is below 1.0% - The null hypothesis compares μ with 0, not with a 1.0% threshold. - Although the sample mean is 0.8%, its t-statistic of 2.00 exceeds the critical value of 1.690.

  8. 8. A portfolio's mean annual return is 8.00% from 36 independent observations, with sample standard deviation 12.00%. Using a 1.96 critical value, the calculated 95% confidence interval is closest to:

    • A. 7.35% to 8.65%
    • B. 4.08% to 11.92%
    • C. 3.30% to 12.70%
    Show answer

    Answer: B. 4.08% to 11.92%

    4.08% to 11.92% - The standard error is 12.00% ÷ √36 = 2.00% because the sample contains 36 independent observations. - Using the specified critical value gives 8.00% ± 1.96(2.00%), or 4.08% to 11.92%. 7.35% to 8.65% - This interval results from dividing the standard deviation by 36 instead of √36. - That slip gives 8.00% ± 1.96(12.00% ÷ 36), which rounds to 7.35% to 8.65%. 3.30% to 12.70% - This interval results from using 25 instead of 36 observations when calculating the standard error. - With 25 observations, 8.00% ± 1.96(12.00% ÷ √25) rounds to 3.30% to 12.70%.

Flashcards: Supervised vs unsupervised learning and deep learning

  1. 1. What are typical tasks for supervised learning?

    Show answer

    classification and regression

  2. 2. When given the prob. of correct call, IC =

    Show answer

    \= 2(% correct) - 1

  3. 3. What is accuracy?

    Show answer

    the % of correctly predicted classes out of total predictions

  4. 4. When is LASSO useful?

    Show answer

    in building parsimonious models through feature reduction

  5. 5. What are the investment applications of random forest?

    Show answer

    - factor-based asset allocation - prediction models for success of an IPO

  6. 6. What are the investment applications of KNN?

    Show answer

    - predicting bankruptcy - assigning a bond to a ratings class - predicting stock prices - creating customized indices

  7. 7. Do you want more precision or recall if the cost of a Type II error is large?

    Show answer

    recall

  8. 8. What kind of mean is a F1 score?

    Show answer

    the harmonic mean of recall and precision

  9. 9. Do you want more precision or recall if the cost of a Type I error is large?

    Show answer

    precision

  10. 10. What is the x and y axis for ROC?

    Show answer

    x: precision\ y: recall

Everything you need for CFA prep

Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

GET STARTED FOR FREE
75% OFFLimited time offer
GET 75% OFF