Tutorial 01
Tutorial 01
Tutorial 01
Tutorial #1
Reza Rafie
[email protected]
Administrivia
Reza Rafie
PhD Student in Communications
1
Administrivia
2
Administrivia
2
Administrivia
2
Administrivia
3
Administrivia
3
Illustrating randomness and the role of probability
theory in our lives
4
Illustrating randomness and the role of probability
theory in our lives
4
Illustrating randomness and the role of probability
theory in our lives
5
Illustrating randomness and the role of probability
theory in our lives
5
Illustrating randomness and the role of probability
theory in our lives
6
Illustrating randomness and the role of probability
theory in our lives
6
Illustrating randomness and the role of probability
theory in our lives
7
Question 1.1
8
(a) Specify the sample space of each experiment.
9
Question 1.1
10
Question 1.1
10
Question 1.1
10
Question 1.1
B and Z
10
Question 1.1
11
Question 1.1
11
Question 1.1
12
Question 1.1
13
Question 1.1
14
Question 1.1
Ni (n)
fi (n) =
n
15
Question 1.1
16
Question 1.1
For rolling a coin: fh (n) ≈ 0.5 and ft (n) ≈ 0.5. For rolling a
dice: fi (n) ≈ 61 , for i ∈ {1, 2, . . . , 6}.
16
Question 1.1
For rolling a coin: fh (n) ≈ 0.5 and ft (n) ≈ 0.5. For rolling a
dice: fi (n) ≈ 61 , for i ∈ {1, 2, . . . , 6}. For Experiment 3:
fi (n) ≈ 101 , for i ∈ {0, 1, 2, . . . , 9}.
16
Question 1.1
For rolling a coin: fh (n) ≈ 0.5 and ft (n) ≈ 0.5. For rolling a
dice: fi (n) ≈ 61 , for i ∈ {1, 2, . . . , 6}. For Experiment 3:
fi (n) ≈ 101 , for i ∈ {0, 1, 2, . . . , 9}. Note that for all of these
experiments we assumed a uniform distribution over all
possible outcomes, that is, the coin is unbiased, the dice
is fair, and all of the balls in the urn are identical.
16
Question 2.2
17
Question 2.2
18
Question 2.2
18
Question 2.2
18
Question 2.2
18
Question 2.2
..
.
18
Question 2.2
19
Question 2.2
|S| =?
19
Question 2.2
|S| = 36
19
Question 2.2
2nd
1st
19
Question 2.2
20
Question 2.2
21
Question 2.2
22
Question 2.2
22
Question 2.2
Fact:
In this course, if the sample space is discrete, then all
of the subsets of the sample space are usually events!
22
Question 2.2
2nd
1st
Question 2.2
2nd
1st
Question 2.2
2nd
1st
23
Question 2.2
24
Question 2.2
|A| =
24
Question 2.2
|A| = 21
24
Question 2.2
25
Question 2.2
2nd
1st
Question 2.2
2nd
1st
Question 2.2
2nd
1st
26
Question 2.2
27
Question 2.2
|B| =
27
Question 2.2
|B| = 6
27
Question 2.2
28
Question 2.2
29
Question 2.2
29
Question 2.2
29
Question 2.2
29
Question 2.2
30
Question 2.2
Bc is the complement of B.
31
Question 2.2
Bc is the complement of B.
So, A ∩ Bc is the event that A occurs and B does not occur.
31
Question 2.2
Bc is the complement of B.
So, A ∩ Bc is the event that A occurs and B does not occur.
In words
Number of dots in first toss is not less than number of
dots in second toss and number of dots in first toss is
not 6.
31
Question 2.2
2nd
1st
32
Question 2.2
A ∩ Bc = {11, 21, 22, 31, 32, 33, 41, 42, 43, 44, 51, 52, 53, 54, 55}
33
Question 2.2
34
Question 2.2
35
Question 2.2
35
Question 2.4
36
Question 2.4
37
Question 2.4
37
Question 2.4
37
Question 2.4
37
Question 2.4
37
Question 2.4
38
Question 2.4
39
Question 2.4
39
Question 2.4
39
Question 2.4
Y
X = +2 +2
+1
−1
X = −2 −2
40
Question 2.4
41
Question 2.4
42
Question 2.4
42
Question 2.5
43
Question 2.5
Sa = {G
44
Question 2.5
Sa = {G, DG,
44
Question 2.5
44
Question 2.5
(b) Suppose that only the number, and not the sequence,
of pens tested in part (a) is noted. Specify the sample
space.
45
Question 2.5
46
Question 2.5
Sb = {1, 2, 3, 4, 5}
46
Question 2.5
(c) Suppose that the pens are selected one by one and
tested until both good pens have been identified, and
the sequence of test results is noted. What is the sample
space?
47
Question 2.5
Sc = {GG
48
Question 2.5
Sc = {GG, GDG
48
Question 2.5
48
Question 2.5
48
Question 2.5
48
Question 2.5
48
Question 2.5
48
Question 2.5
48
Question 2.5
49
Question 2.5
50
Question 2.5
Sd = {2, 3, 4, 5, 6}
50
Question 2.5
Sd = {2, 3, 4, 5, 6}
What is |Sd |?
50
Question 2.9
51
Question 2.9
−∞ r s +∞
C = B ∩ Ac
52
Question 2.10
53
Question 2.10
A ∪ (B ∪ C) = (A ∪ B) ∪ C
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
54
Question 2.10
A ∪ (B ∪ C) = (A ∪ B) ∪ C
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
Think about it for 1 minute!
54
Question 2.12
55
Question 2.12
56
Question 2.12
56
Question 2.12
56
Question 2.12
57
Question 2.12
∀x ∈ A : A = A ∩ B =⇒ x ∈ (A ∩ B)
=⇒ x ∈ B =⇒ A ⊂ B
57
Question 2.12
58
Question 2.12
∀x ∈ B : x ∈ B ∪ A = A =⇒ x ∈ A
=⇒ B ⊂ A
58
Question 2.12
A ⊂ B and B ⊂ A =⇒ A = B
59
Questions?
59
Fun fact
60
Fun fact
61
Fun fact
61
Fun fact
61
Fun fact
61
Fun fact
61
Fun fact
62
Fun fact
i t e r a t i o n s = 100;
pi_approx = z e r o s ( i t e r a t i o n s , 1 ) ;
for k = 1: iterations
num_of_samples = 1 0 0 0 0 0 0 0 ;
X = rand ( num_of_samples , 1 ) ;
Y = rand ( num_of_samples , 1 ) ;
d i s t = s q r t ( X. ^2 + Y. ^2) ;
num_samples_inside = nnz ( d i s t <= 1 ) ;
pi_approx ( k ) = 4 * num_samples_inside / ...
num_of_samples ;
end
format l o n g
mean ( pi_approx )
pi
63
Fun fact
64
Fun fact
64