CS307
Machine Learning
Lecture 2
Feasibility of Learning
Krishnendu Ghosh
Department of Computer Science & Engineering
Indian Institute of Information Technology Dharwad
Source: Slide 2 from Tom Mitchell
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Questions to think about
16
Basic Premise of Learning
using a set of observations to uncover an underlying process
broad premise ⇒ many variations
• Supervised Learning
• Unsupervised Learning
• Reinforcement Learning
17
Supervised Learning
Example from vending machines coin recognition
18
Unsupervised Learning
Instead of (input,correct output), we get (input, ? ) Mass
19
Reinforcement Learning
Instead of (input,correct output),
we get (input,some output,grade for this output)
20
A Learning Puzzle
21
Probability Overview
22
Random Variables
23
A little formalism
More formally, we have
24
Visualizing A
25
The Axioms of Probability
26
The Axioms of Probability
[di Finetti 1931]:
when gambling based on “uncertainty formalism A” you can be exploited by an opponent
iff
your uncertainty formalism A violates these axioms
27
Interpreting the axioms
28
Interpreting the axioms
29
The Axioms of Probability
30
Theorems from the Axioms
0 <= P(A) <= 1, P(True) = 1, P(False) = 0
P(A or B) = P(A) + P(B) - P(A and B)
P(not A) = P(~A) = 1-P(A)
31
Theorems from the Axioms
0 <= P(A) <= 1, P(True) = 1, P(False) = 0
P(A or B) = P(A) + P(B) - P(A and B)
P(not A) = P(~A) = 1-P(A)
32
Elementary Probability in Pictures
P(~A) + P(A) = 1
33
Another useful theorem
0 <= P(A) <= 1, P(True) = 1, P(False) = 0,
P(A or B) = P(A) + P(B) - P(A and B)
P(A) = P(A ^ B) + P(A ^ ~B)
A = A and (B or ~B) = (A and B) or (A and ~B)
P(A) = P(A and B) + P(A and ~B) – P((A and B) and (A and ~B))
P(A) = P(A and B) + P(A and ~B) – P(A and A and B and ~B)
34
Elementary Probability in Pictures
P(A) = P(A ^ B) + P(A ^ ~B)
35
Multivalued Discrete Random Variables
Suppose A can take on more than 2 values
A is a random variable with arity k if it can take on exactly one value out of {v1, v2, ... , vk}
Thus
P(A=vi ∧ A=vj) = 0 if i ≠ j
P(A=v1 ∨ A=v1 ∨ … ∨ A=vk ) = 1
36
Elementary Probability in Pictures
37
Definition of Conditional Probability
P(A|B) = P(A ^ B) / P(B)
Corollary: The Chain Rule
P(A ^ B) = P(A|B) P(B)
38
Conditional Probability in Pictures
P(B|A=2)
39
Independent Events
Definition:
two events A and B are independent if Pr(A and B)=Pr(A)*Pr(B)
Intuition:
knowing A tells us nothing about the value of B (and vice versa)
40
Other Forms of Bayes Rule
41
You should know
42
Thank You
43