Download Slides for Rosen, 5th edition

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Module #1 - Logic
Probability Theory
Based on Rosen, Discrete Mathematics & Its Applications. Prepared
by (c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
1
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Why Probability?



In the real world, we often don’t know
whether a given proposition is true or false.
Probability theory gives us a way to reason
about propositions whose truth is
uncertain.
Useful in weighing evidence, diagnosing
problems, and analyzing situations whose
exact details are unknown.
2
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Random Variables

A random variable V is a variable whose
value is unknown, or that depends on the
situation.




e.g., the number of students in class today
Whether it will rain tonight (Boolean
variable)
Let the domain of V be dom[V]={v1,…,vn}
The proposition V=vi may be uncertain, and
be assigned a probability.
3
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Experiments



A (stochastic) experiment is a process by
which a given random variable gets
assigned a specific value.
The sample space S of the experiment is
the domain of the random variable.
The outcome of the experiment is the
specific value of the random variable that is
selected.
4
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Events


An event E is a set of possible outcomes.
That is, E  S = dom[V]. We say that event
E occurs when VE.
Note that VE is the (uncertain)
proposition that the actual outcome will be
one of the outcomes in the set E.
5
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Probability

The probability p = Pr[E]  [0,1] of an event E is
a real number representing our degree of certainty
that E will occur.



If Pr[E] = 1, then E is absolutely certain to occur,
 thus VE is true.
If Pr[E] = 0, then E is absolutely certain not to occur,
 thus VE is false.
If Pr[E] = ½, then we are completely uncertain about
whether E will occur; that is, VE and VE are
considered equally likely.
6
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Four Definitions of Probability

Several alternative definitions of
probability are commonly encountered:



Frequentist, Bayesian, Laplacian, Axiomatic
They have different strengths &
weaknesses.
Fortunately, they coincide and work well
with each other in most cases.
7
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Probability: Laplacian Definition




First, assume that all outcomes in the sample
space are equally likely
 This term still needs to be defined.
Then, the probability of event E,
Pr[E] = |E|/|S|. Very simple!
Problems: Still needs a definition for equally
likely, and depends on existence of a finite sample
space with all equally likely outcomes.
We will use Laplace’s definition of the probability
of an event in this course.
8
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Probability of Complementary
Events



Let E be an event in a sample space S.
Then, E represents the complementary event
that VE.
Pr[E ] = 1 − Pr[E]
9
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Probability of Unions of Events


Let E1,E2  S = dom[V].
Then:
Pr[E1 E2] = Pr[E1] + Pr[E2] − Pr[E1E2]

By the inclusion-exclusion principle.
10
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Mutually Exclusive Events



Two events E1, E2 are called mutually
exclusive if they are disjoint: E1E2 = 
Note that two mutually exclusive events
cannot both occur in the same instance of a
given experiment.
For mutually exclusive events,
Pr[E1  E2] = Pr[E1] + Pr[E2].
11
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Exhaustive Sets of Events

A set E = {E1, E2, …} of events in the
sample space S is exhaustive if
E
i

S
An exhaustive set of events that are all
mutually exclusive with each other has the
property that
 Pr[ E ]  1
i
12
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Independent Events



Two events E, F are independent if
Pr[EF] = Pr[E]·Pr[F].
Relates to product rule for number of ways
of doing two independent tasks
Example: Flip a coin, and roll a die.

Pr[ quarter is heads  die is 1 ] =
Pr[quarter is heads] × Pr[die is 1]
13
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Conditional Probability




Let E, F be events such that Pr[F]>0.
Then, the conditional probability of E given
F, written Pr[E|F], is defined as
Pr[EF]/Pr[F].
This is the probability that E would turn out
to be true, given just the information that F
is true.
If E and F are independent, Pr[E|F] = Pr[E].
14
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Expectation Values


For a random variable V having a numeric
domain, its expectation value or expected
value or weighted average value or
arithmetic mean value Ex[V] is defined as
vdom[V] v·p(v)
The term “expected value” is widely used,
but misleading since the expected value
might be totally unexpected or impossible!
15
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Derived Random Variables



Let S be a sample space over values of a random
variable V (representing possible outcomes).
Then, any function f over S can also be
considered to be a random variable (whose value
is derived from the value of V).
If the range R = range[f] of f is numeric, then
Ex[f] can still be defined, as
 p( s)  f ( s)
sS
16
Based on Rosen, Discrete Mathematics & Its Applications. Prepared by
(c)2001-2004, Michael P. Frank and Modified By Mingwu Chen
Review: Probability





Random Variables
Probability definition
Independent events
Conditional probability
Expectation values
17
Related documents