















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















































Introduction to Machine Learning
Winter 2012
Areas of math essential to machine learning z^
Machine learning is part of both
statistics
and computer
science– Probability– Statistical inference– Validation– Estimates of error, confidence intervals Li
l^
b
z
Li
near algebra – Hugely useful for compact representation of linear
transformations on datatransformations on data
Optimization
theory
Introduction to Machine Learning
Winter 2012
p
y
These intuitions will allow you to:
Choose the right algorithm(s) for the problem
validation strategies
g
Troubleshoot poor / ambiguous results
uncertainty on resultsuncertainty on results
incorporating them into more complex
Jeff Howbert
Introduction to Machine Learning
Winter 2012
p
g
p
analysis pipelines
z
a
set membership
a
is
member
of set
z
cardinality
: number of items in set
z
cardinality
: number of items in set
z
v
norm
: length of vector
v
z
summation
z
summation
z
integral
th
t^
f^
l^
b
z
th
e set of
real
numbers
z
n^
real number space
of dimension
n
n = 2 : plane or 2-spacen = 3 : 3- (dimensional) spacen > 3 :
n
-space or
hyperspace
Introduction to Machine Learning
Winter 2012
p^
yp
p
Intuition: z
In some process, several outcomes are possible.When the process is repeated a large number oftimes, each outcome occurs with a characteristic^ relative frequency
or
probability
If a particular
relative
frequency
, or
probability
. If a particular
outcome happens more often than anotheroutcome we say it is more probableoutcome, we say it is more probable.
Introduction to Machine Learning
Winter 2012
Arises in two contexts: z
In actual repeated experiments.
by. 57 of them are green. You
estimate
the
probability of a car being green as 57 / 1000 = 0 0057probability of a car being green as 57 / 1000 = 0.0057.
z
In idealized conceptions of a repeated process.
Example: You consider the behavior of an unbiasedsix-sided die. The
expected
probability of rolling a 5 is
1 / 6 = 0.1667.
are distributed. You choose a normal distribution(bell-shaped curve) to represent the
expected
relative
Introduction to Machine Learning
Winter 2012
(^
p
)^
p^
p
probabilities.
Non-negativity:
for any event
F p( E
for any event
F, p( E
2
All possible outcomes:
All possible outcomes:
p(
Additivity of disjoint events:
for all events
where
p
p( E ) + p( E’ ) Introduction to Machine Learning
Winter 2012
Define |
| = number of possible outcomes
z
Discrete space
| is finite
Analysis involves
summations
summations
ti
| i
i fi it
z
ontinuous space
| is infinite
integrals
Introduction to Machine Learning
Winter 2012
Three consecutive flips of a coin
O
= HHH, HHT, HTH, HTT,
p
,^
,^
,^
,
THH, THT, TTH, TTT
8
= 256 possible events
example:
E
= (
O
∈
{ HHT, HTH, THH } ), i.e. exactly two flips
are heads
example:
E
= (
O
∈
{ THT, TTT } ), i.e. the first and third flips
are tails
p
( HHH ) =
p
( HHT ) =
p
( HTH ) =
p
( HTT ) =
p
( HHH )
p
( HHT )
p ( HTH )
p ( HTT )
p
( THH ) =
p
( THT ) =
p
( TTH ) =
p
( TTT ) = 1 / 8
example: probability of event
E
= ( exactly two heads ) is
( HHT ) +
( HTH ) +
( THH )
3 / 8
Introduction to Machine Learning
Winter 2012
p ( HHT ) +
p
( HTH ) +
p
( THH ) = 3 / 8
O
has some
Infinite number of possible outcomes:
O
has some
single value in range 2 feet to 8 feet
example:
E
= (
O
|^
O
< 5.5 feet ), i.e. individual chosen is less
than 5.5 feet tall
Probabilities of outcomes are not equal, and aredescribed by a continuous function,
p
(^
O
)
Jeff Howbert
Introduction to Machine Learning
Winter 2012
z
Discrete:
probability mass function
(pmf)
example:
sum of twofair dice
z
Continuous:
probability density function
(pdf)
example:
waiting time betweeneruptions of Old Faithful
probability
Introduction to Machine Learning
Winter 2012
(minutes)
z^
A random variable
X
is a function that associates a number
x
with
each outcome
O
of a process
C
t ti
X
(^ O
)^
j^
t^ X
-^
Common notation:
X
(^ O
) =
x
, or just
X
=
x
z^
Basically a way to redefine (usually simplify) a probability space to anew probability space–
X
must obey axioms of probability (over the possible values of
x
)
-^
X
can be discrete or continuous
z^
Example:
X
= number of heads in three flips of a coin
z^
Example:
X
= number of heads in three flips of a coin
-^
Possible values of
X
are 0, 1, 2, 3
-^
p (
X
= 0 ) =
p
(^ X
= 3 ) = 1 / 8
p (
X
= 1 ) =
p
(^ X
= 2 ) = 3 / 8
-^
Size of space (number of “outcomes”) reduced from 8 to 4
z^
Example:
X
= average height of five randomly chosen American men
-^
Size of space unchanged (
X^
can range from 2 feet to 8 feet) but
Introduction to Machine Learning
Winter 2012
Size of space unchanged (
X^
can range from 2 feet to 8 feet), but
pdf of
X
different than for single man
joint probability:
p
(^ X
= minivan,
Y
= European ) = 0.
Introduction to Machine Learning
Winter 2012
z
Marginal
probability
joint distribution
and
Example: two random variables
and
p
x
b =
all values of Y
p
x
b
z
Conditional
probability
z
Conditional
probability
given
that another variable takes a certain valuethat
another variable takes a certain value
and
p
x |
y
p
x
y
p
y
Introduction to Machine Learning
Winter 2012
p
x
y
p
x
y
p
y