Lecture 8 - Joint Probability Distributions - Applications in Machine Learning
Lecture 8 - Joint Probability Distributions - Applications in Machine Learning
• Image Classification
• Example: Using Pre-trained CNNs for Medical Image
Classification A model trained on a large dataset like
ImageNet (which contains millions of labeled general images)
can be fine-tuned to classify medical images such as X-rays or
MRI scans, even though medical images differ significantly
from the original dataset.
1
N
𝟏Τ𝟑 𝟑Τ𝟓
𝟏Τ𝟔 D
𝟏Τ𝟑
2
𝟓Τ𝟔 N
𝟏Τ𝟑 𝟑Τ𝟖 D
3
𝟓Τ𝟖 N
Dr. Faisal Bukhari, Department of Data
16
Science, PU, Lahore
𝟐
Example : A coin, weighted so that P(H) = and P(T) =
𝟑
𝟏
,
is tossed. If heads appears, then a number is selected
𝟑
at random from the numbers 1 through 9; if tails
appears, then a number is selected at random from the
numbers 1 through 6.
𝟐 H
𝟑 𝟒
E
𝟗
𝟏 O
𝟏 𝟐
𝟑 T
𝟏
𝟐 E
Dr. Faisal Bukhari, Department of Data 18
Science, PU, Lahore
Probability of even using 1 through 9:
4
P(E) =
9
2 4 1 1 𝟐𝟓
p= ( )( )+( )( ) =
3 9 3 2 𝟓𝟒
A
𝟎. 𝟗𝟕 N
𝟎. 𝟓𝟎
𝟎. 𝟎𝟒 D
𝟎. 𝟑𝟎 B
𝟎. 𝟗𝟔 N
𝟎. 𝟎𝟓 D
𝟎. 𝟐𝟎
C
𝟎. 𝟗𝟓 N
Dr. Faisal Bukhari, Department of Data
21
Science, PU, Lahore
Solution:
Let D be the event that the item is defective
∵ P(B) = P(A1 )P(B|A1) + P(A2 )P(B|A2) + ... + P(An
)P(B|An)
∴ P(D) = P(A)P(D|A) + P(B )P(D|B) + P(C )P(D|C)
= (0.50)(0.03) + (0.30)(0.04) + (0.20)(0.05)
= 0.037 (or 3.7%)
P(A)P(D|A)
P(A|D) =
P(A)P(D|A) + P(B )P(D|B) +P(C )P(D|C)
(0.50)(0.03)
P(A|D) =
(0.50)(0.03) + (0.30)(0.04) +(0.20)(0.05)
15
= (or 0.4054)
37