Note:

Sum
Rule: Only type one letter. How many different letter 'A' can
be made using 5 different character fonts?
Think OR.
1+1+1+1+1
Sum
Rule: Only type one
letter. How many different letters can
be made using 5 different character fonts? Think OR.
26+26+26+26+26
26*26*26*10*10 + 26*26*10*10*10
What is the minimum number of people to invite to have at least 3 people born the same month?
Answers:éN/12ù = 3
By pigeonhole principle, need 1 more than 2 people in each of 12 months: N people = 2*12+1
é(2*12+1)/12ù = é25/12ù = é2 1/12ù = 3
or
By pigeonhole principle, need 2 people in each of 12 months plus 1 extra in any month: N people = 2*12+1
é((3-1)*12+1)/12ù = é25/12ù = é2 1/12ù = 3
- Experiment (in probability theory) - a procedure that yields one of a set of possible outcomes
- Sample Space - All Possible Outcomes
- A mathematical set containing all the possible outcomes of a probability experiment
- S is often used to denote the sample space
- Successful Outcomes
- A mathematical set containing all the possible outcomes that meet some criteria for success
- The criteria for success is determined prior to executing the experiment
- E is often used to denote the set of successful outcomes
- E Í S
- Definition
- If S is a finite sample space (i.e., a finite set of all possible outcomes from an experiment)
- All outcomes in S are equally likely to occur when the experiment is executed
- E is a set containing all the successful outcomes, and E Í S
- Then the probability function, denoted as p(E) = |E| / |S|
see the following web pages
4 Kings (4 out of 52 cards),
13
Spades (13 out of 52 cards),
however, 1 card is in both sets (i.e., King
of Spades); so (4 + 13 – 1)/52
B = Spade = {AS, 2S, 3S, 4S, 5S, 6S, 7S, 8S, 9S, 10S,
JS, QS, KS}
|A U B| = |A|+|B|-|AÇB|
= 4 + 13 - 1 = 16
Answer:
1
for sample space S
size |S| = n
"s Î S : p(s) = 1/n
which means all the outcomes in S are equally likely
14. Flip a fair coin 2 times.
t is drawn from the 22 possible outcomes of flipping a coin 2 times.
t Î {HH,HT,TH,TT}
What is X(t), the random variable for the number of tails that occur for outcome t?
Answer
t X(t)
HH X(HH)= 0 HT X(HT)= 1 TH X(TH)= 1 TT X(TT)= 2
|
Above is a diagram of a
function.
·
What is the domain of the function?
·
What is the range of the function?
·
In probability this function has a special name, what is it?
·
What is the probability distribution for this function?
Answers:
·
Domain = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}
·
Range = {0, 1, 2, 3}
·
Random Variable · {(3, 1/8), (2, 3/8), (1, 3/8), (0, 1/8)}
|

| t |
X(t) |
X(t) distribution |
p(t)*X(t) |
| HHH | X(HHH)= 3 | p(X=3) = 1/8 | 1/8*3 = 3/8 |
| HHT HTH THH |
X(HHT)= X(HTH)= X(THH)=2 |
p(X=2) = 3/8 | 3/8*2 = 6/8 |
| HTT THT TTH |
X(HTT)= X(THT)= X(TTH)=1 |
p(X=1) = 3/8 | 3/8*1 = 3/8 |
| TTT | X(TTT)=0 | p(X=0) = 1/8 | 1/8*0 = 0 |
|
Sum |
12/8 = 1.5 |
||
Conditional probability, the probability of E
given F
|
What is the probability of flipping exactly 2 heads given that the first of
3 flips is a head?
S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}
F = first flip is a heads = {HHH, HHT, HTH, HTT}
p(F)=|F|/|S|=4/8=1/2
E = exactly 2 heads = {HHT,HTH,THH}
E Ç F = {HHT, HTH}
p(E Ç F) = |E Ç
F| / |S| = 2/8=1/4
p(E|F) = (1/4) / (1/2) = 1/2
4% of computers are
infected with the NasTeaSmell virus, p(Infected).
97% of infected computers test positive when scanned for viruses, p(Positive
| Infected) .
2% of computers not infected test positive when scanned for viruses, p(Postive | Infective).
Infected is event random computer is infected with
the NasTeaSmell virus.
p(Infected) = .04
p(Infected) = .96
Positive is event random computer tests positive
for NasTeaSmell virus.
p(Positive | Infected) = .97
p(Postive | Infected) = .03
p(Postive | Infective) = .02
p(Postive | Infected)
= .98
What is the probability a computer testing positive is infected?
p(Infected|Postive) =
p(Postive | Infected) p(Infected)
_________________________________________________[p(Positive | Infected) p(Infected) + p(Postive | Infected) p(Infected)]
= .97*.04/[.97*.04+.02*.96]
= .669
__________________________
Box 1 has 2 green and 7 red balls, 9 total.
Box 2 has 4 green and 3 red balls,
7 total.
Pick a ball from Box 1 or Box 2.
Red is red ball drawn
One is Box 1 picked
p( One ) = 1/2
p( One) = 1/2
p( Red | One) = 7/9
p( Red | One) = 3/7
p(One | Red) is probability picked from Box 1 given red ball drawn.
p(One | Red) =
p(Red | One) p(One)
____________________________________[p(Red | One) p( One ) + p(Red | One) p(One)]
=
7/9 * 12
___________________[7/9 * 1/2 + 3/7 * 1/2]
Recurrences
an = an-1 + an-2
a1 = 3
a0 =4
a2 = 3+4=7
a3 = a2 + a1
= 7+3 = 10
an = -4an-1 + 5an-2 if an = 1
an = -4(1) + 5(1) = -4 + 5 = 1
Show that the sequence {an} is a solution of the recurrence relation an = -3an-1+ 4an-2 if
an = (-4)n
an-1 = (-4)n-1
an-2 = (-4)n-2
| an = | -3an-1+ 4an-2 | |
| = -3*(-4)n-1+ 4*(-4)n-2 | Substitute | |
| = (-4)n-2 (-3*-4+4) | (-4)n-1 is -4*(-4)n-2 | |
| = (-4)n-2 16 | ||
| = (-4)n-2 (-4)2 | ||
| = (-4)n |
an = 3an-1
a0 =4
an = 3an-1= 3(3an-2) = ... = 3n-1(3an-n) = 3na0 = 3n(4)
an = 3 + an-1
a0 =4
an = 3 + an-1= 3 + (3+ an-2) = ... =
3(n-1)+(3 + an-n) = 3n + a0 = 3n + 4
11% interest compounded annually
P0 = $10,000
Find P1 P2 P3
P1 = P0 + 0.11P0 = 1.11P0
P2 = P1 + 0.11P1 = 1.11P1
P3 = P2 + 0.11P2 = 1.11P2
Find Recurrence relation
Pn = Pn-1 + 0.11Pn-1 = 1.11Pn-1
Find closed form of Pn
Pn = 1.11Pn-1 Recurrence = 1.11(1.11Pn-2) Substitute
Pn-1= 1.11Pn-2= 1.11(1.11(1.11Pn-3)) Substitute
Pn-2= 1.11Pn-3: Observe pattern = 1.11nPn-n = 1.11nP0 Closed form solution Pn = 1.11nP0
Find amount in 30 years.
Initial conditions
P0 = $10,000
P30 = 1.1130 * $10,000 = $228,922.97
a
transitive |
|||||||||||||||||||||||||
b
reflexive, symmetric, transitive |
|||||||||||||||||||||||||
c
symmetric |
|||||||||||||||||||||||||
d
antisymmetric |
|||||||||||||||||||||||||
e
reflexive, symmetric, antisymmetric, transitive |
|||||||||||||||||||||||||
f
none |



a
| 0 | 1 | 2 | 3 | |
| 0 | 1 | 1 | ||
| 1 | 1 | 1 | ||
| 2 | 1 | 1 | ||
| 3 | 1 | 1 |
b
| 0 | 1 | 2 | 3 | |
| 0 | 1 | 1 | 1 | |
| 1 | 1 | 1 | 1 | |
| 2 | 1 | 1 | 1 | |
| 3 | 1 |