Finite Sample Space - Discrete Mathematics - Solved Homework, Slides of Discrete Mathematics

During the study of discrete mathematics, I found this course very informative and applicable.The main points in these lecture slides are:Finite Sample Space, Prove by Induction, Induction Step, Computer Text Generation Program, Probability of Generating, Random Variable, Expression for Expectation, Successive Outcomes, Independent Distributions

Typology: Slides

2012/2013

Uploaded on 04/27/2013

atmaja
atmaja 🇮🇳

4.2

(45)

181 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS173: Discrete Mathematical Structures
Spring 2006
Homework #9
Due 03/30/06, 8am
Solutions, Grading Rubric
1. (3 Points) Express E[X2] in terms of E[X] and Var[X].
Solution:
Var [X]=Xs− E[X]2Ps=...=E[X2]− E2[X]
E[X2]=Var [X] E2[X]
2. (6 points, 3 for base case, 3 for the step.)
Let E1,E2,...,EN be N events from finite sample space. prove by induction that
P1 ∩Ε2 ∩...∩ΕΝ )>=P(E1)+P(E2)+...+P(EN )-(n-1).
Solution:
Base case:
P1 ∩Ε2 )=1−P(¬Ε1 ∪¬Ε2 )=1−[P(¬Ε1 )+P(¬Ε2 )−P(¬Ε1 ∩¬Ε2 )]>=
1−[P(¬Ε1 )+P(¬Ε2 )]=1−[1−P1 )+1−P2 )]=P1 )+P2 )−1
Induction step:
P1 ∩Ε2 ∩...∩ΕΝ )=P([Ε1 ∩Ε2 ∩..ΕΝ −1].∩ΕΝ )>=[base case]>=
P([Ε1 ∩Ε2 ∩..ΕΝ −1])+P (ΕΝ )−1>=[hypothesis]>=
[P(E1)+P(E2)+...+P(EN-1 )-(n-2)]+P (ΕΝ )−1=P(E1)+P(E2)+...+P(EN )-(n-1)
3. (3 points) A computer text generation program randomly chose a letter (out of the 26) 8
times(with repetitions) with uniform probability and the word was “mananaga”. What was the
probability of generating this word? Give an expression with explanation, not a number.
Solution:
1
26
8
4. (27 points, 2 points each leaf, except 4.3.4 worth 3 points)
We are given a random variable X whose domain is {1, 2, 3, 4, 5, 6} (each number represents
the event of throwing a die that lands with that number facing up).
1. If Pr(X = 1) = 1,
1. What is: Pr(X = 2)?
Solution: 0
2. What is Pr(X = 1 X = 2)?
Solution: 0
2. If Pr(X{1, 2, 3}) = 0.9 and Pr(X{3,4,5,6}) = 0.5,
Docsity.com
pf3

Partial preview of the text

Download Finite Sample Space - Discrete Mathematics - Solved Homework and more Slides Discrete Mathematics in PDF only on Docsity!

CS173: Discrete Mathematical Structures

Spring 2006

Homework

Due 03/30/06, 8am

Solutions, Grading Rubric

  1. (3 Points) Express E[X^2 ] in terms of E[X] and Var[X]. Solution:

Var [ X ]=∑  X  s − E [ X ]

2 Ps =...= E [ X 2 ]− E 2 [ X ] E [ X 2 ]= Var [ X ] E 2 [ X ]

  1. (6 points, 3 for base case, 3 for the step.) Let E 1 ,E 2 ,...,EN be N events from finite sample space. prove by induction that P(Ε 1 ∩Ε 2 ∩...∩ΕΝ )>=P(E 1 )+P(E 2 )+...+P(EN )-(n-1). Solution: Base case: P(Ε 1 ∩Ε 2 )=1−P(¬Ε 1 ∪¬Ε 2 )=1−[P(¬Ε 1 )+P(¬Ε 2 )−P(¬Ε 1 ∩¬Ε 2 )]>= 1−[P(¬Ε 1 )+P(¬Ε 2 )]=1−[1−P(Ε 1 )+1−P(Ε 2 )]=P(Ε 1 )+P(Ε 2 )− Induction step: P(Ε 1 ∩Ε 2 ∩...∩ΕΝ )=P([Ε 1 ∩Ε 2 ∩..ΕΝ −1].∩ΕΝ )>=[base case]>= P([Ε 1 ∩Ε 2 ∩..ΕΝ −1])+P (ΕΝ )−1>=[hypothesis]>= [P(E 1 )+P(E 2 )+...+P(EN-1 )-(n-2)]+P (ΕΝ )−1=P(E 1 )+P(E 2 )+...+P(EN )-(n-1)
  2. (3 points) A computer text generation program randomly chose a letter (out of the 26) 8 times(with repetitions) with uniform probability and the word was “mananaga”. What was the probability of generating this word? Give an expression with explanation, not a number. Solution: 

8

  1. (27 points, 2 points each leaf, except 4.3.4 worth 3 points) We are given a random variable X whose domain is { 1 , 2 , 3 , 4 , 5 , 6 } (each number represents the event of throwing a die that lands with that number facing up).
    1. If Pr(X = 1) = 1,
      1. What is: Pr(X = 2)? Solution: 0
  2. What is Pr(X = 1 ∧ X = 2)? Solution: 0
  3. If Pr(X∈{ 1 , 2 , 3 }) = 0.9 and Pr(X∈{3,4,5,6}) = 0.5,
  1. What is the lower bound on Pr(X∈{ 1 , 2 , 4 })?
  2. What is the upper bound on Pr(X∈{ 1 , 2 , 4 })? Solution: Pr({1, 2 ,4})=Pr({ 1 , 2 ,3,4,5,6})-Pr({3,5,6})=1-Pr(3)-Pr(5)-Pr(6). But Pr({3,4,5,6}) = 0.5, thus Pr(3)<=0. Also, from question 2, Pr(3)=Pr(X∈{ 1 , 2 , 3 }∩{3,4,5,6}) >=0.9+0.5-1=0.4. Thus 0.4<=Pr(3)<=0.5, but Pr(X∈{3,4,5,6}) = 0.5, therefore, 0<=Pr(4),Pr(5),Pr(6)<=0. Pr(X∈{ 1 , 2 , 3 }) = 0.9, therefore Pr(X∈{ 1 , 2 })<=0. So: Pr(X∈{ 1 , 2 , 4 })<=0.5+0.1 [P(3)=0.4, P(4)=0.1] 0.4<=Pr(X∈{ 1 , 2 , 4 }) [P(3)=0.5, P(4)=0.0] 0.4<=Pr(X∈{ 1 , 2 , 4 }) <=0.
  3. If Pr(X = 1) = Pr(X = 2) = ... = Pr(X = 6), what is:
  4. Pr(X = 2 ∧ X = 5)? Solution:
  5. What is Pr(X =1) + Pr(X = 2) + Pr(X = 3)? Solution: ½
  6. E[X]? Solution: 11/6+21/6+...+61/6=[1+2+3+4+5+6]1/6=21/
  7. Var[X]?

Solution: ∑ i = 1

6 

i  2 1 6

2 1. 2 0. 2 0. 2 1. 2 2. 2 

  1. What is the expected number of times needed to throw a die to achieve 6 at least once? Prove your answer. Answer without proof will not be accepted. Solution and grading: 2 points for writing an expression for the expectation, 1 point for solving the sum. Let the random variable T denote the number of throws needed to obtain 6 at least once. E[T]=P(T=1)1+P(T=2)2+...P(T=i)*i+.... Note that PT = i =

i − 1 1 6 , because we need to have (i-1) successive outcomes of a number other than 6 followed by exactly one outcome of 6. Now we have to sum: E [ T ]=

∑ i = 1

i − 1 i Now consider the sum Sx =

∑ i = 1

∞ x i − 1 i