Statistics Tutorial
Statistics Tutorial
Statistics Tutorial
= P ((B1 [ B2 [ ... [ Bn ) \ A)
P (A \ Bk )
P (Bk )P (A|Bk )
= Pn
.
P (A)
i=1 P (Bi )P (A|Bi )
Exercise 1 There is a copycat AK47 for shooting test. During the test, we
will have three shoot respectively. The probability that hit the target in first
time is 0.4, that hit the target in second time is 0.5 and that hit the target in
third time is 0.7. If the target is hit one time, two time and three time, the
probability of destroy is 20%, 60% and 80% respectively. What is the probability that target destroy?
Exercise 2 Suppose that 5% of men and 0.25% of women are color-blind.A
person is chosen at random and that person is color-blind. What is the probability that the person is male?(Assume males and females to be in equal numbers.)
Exercise 3 A computer can send any one of three characters A, B, C to
a printer. During each transmission, each character has equal chance to be
sent. However, the printer may not print the same character as transmitted
for transmission errors. The probability that an A will be incorrectly printed
as B is 0.2, and that of C to be printed as A is 0.5. Other printer errors are
impossible.
1. Suppose two characters are transmitted independently. What is the probability that two As will be printed?
2. Suppose that a single character is transmitted. If B is printed, what is the
probability that a B was transmitted?
2. Discrete random variables and Probability Mass Function(p.m.f.)
1. A random variable(r.v.) is a function X that maps each element s 2 S
to a real number x, that is X(s) = x.
Discrete random variable:If the set {x : X(s) = x, s 2 S} has finite or
countably infinite real numbers.
Remark: A random variable X is a function from sample space S to R.
X itself is not an event but X = some real number is.
X=1
X=4
X=2
X=3
the whole space S
2. The Probability Mass Function (p.m.f.) of a discrete random variable X is a function f(x) satisfies
(1) fP(x) > 0, 8x 2 S;
(2) x2S f (x) =
P1.
(3) p(x 2 A) = x2A f (x), 8A S;
Exercise 4 For each of the following discrete random variable X, determine
the constant c such that f (x) is the p.m.f. of X.
1. f (x) = xc , x = 1, 2, ..., n.
2. f (x) = c
1 x
4
, x = 1, 2, 3, ....
x2S
x2S
Properties of Expectation
1. If c is a constant, E(c) = c.
2. If c1 and c2 are two constants, X and Y are two random variables,
E[c1 X + c2 Y ] = c1 EX + c2 EY.
3. If X and Y are independent, E(XY ) = E(X)E(Y ).
Exercise 6 Suppose the largest prize of Mark Six lottery is 1500 HKD, and
each bet costs 10 HKD. How small the probability is when the expectation income is below zero(which means we should not buy it)?
5. Variance
To measure the variation or dispersion of the distribution of the random variable
X (about its own mean), we are going to introduce Variance.
V ar(X) = E[X
E(X)]2 = E[X 2 ]
[EX]2 .