Docsity

Probability Theory Summary, Summaries of Probability and Statistics

Toggle sidebar
bg1
Probability Theory Summary
1. Basic Concepts
1.1 Set Theory
Before we venture into the depths of probability, we start our journey with a field trip on set theory.
1.1.1 What is a set?
Sets are collections of elements or samples. Sets are denoted by capital letters (A,B). Elements are
denoted by ωi. The set containing all elements is the sample space Ω. The set with no elements is
called the empty set ∅.
Now let’s discuss some notation. If we say that A={ω1, ω2, . . . , ωn}, then we say that Aconsists of the
elements ω1, ω2, . . . , ωn.ωi∈Ameans that ωiis in A, whereas ωi6∈ Ameans that ωiis not in A.
1.1.2 Comparing sets
We can compare and manipulate sets in many ways. Let’s take a look at it. We say that Ais a subset
of B(denoted by A⊂B) if every element in Ais also in B. When (at least) one element in Ais not
in B, then A6⊂ B. If A⊂Band B⊂A(they consist of the same elements), then Aand Bare equal:
A=B. Sets are said to be disjoint if they have no common elements.
We can’t just add up sets. But we can take the intersection and the union of two sets. The intersection
of Aand B(denoted by A∩B) consists of all elements ωithat are in both Aand B. (So ωi∈A∩B
if ωi∈Aand ωi∈B.) On the other hand, the union of Aand B(denoted by A∪B) consists of all
elements ωithat are in either Aor B, or both. (So ωi∈A∪Bif ωi∈Aor ωi∈B.)
The set difference A\Bconsists of all elements that are in A, but not in B. There is also the
complement of a set A, denoted by Ac. This consists of all elements that are not in A. Note that
Ac= Ω \Aand A\B=A∩Bc.
There’s one last thing we need to define. A partition of Ω is a collection of subsets Ai, such that
•the subsets Aiare disjoint: Ai∩Aj=∅for i6=j.
•the union of the subsets equals Ω: Sn
i=1 Ai=A1∪A2∪. . . ∪An= Ω.
1.2 Introduction to Probability
It’s time to look at probability now. Probability is all about experiments and their outcomes. What can
we say about those outcomes?
1.2.1 Definitions
Some experiments always have the same outcome. These experiments are called deterministic. Other
experiments, like throwing a dice, can have different outcomes. There’s no way of predicting the outcome.
We do, however, know that when throwing the dice many times, there is a certain regularity in the
outcomes. That regularity is what probability is all about.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Probability Theory Summary and more Summaries Probability and Statistics in PDF only on Docsity!

Probability Theory Summary

1. Basic Concepts

1.1 Set Theory

Before we venture into the depths of probability, we start our journey with a field trip on set theory.

1.1.1 What is a set?

Sets are collections of elements or samples. Sets are denoted by capital letters (A, B). Elements are denoted by ωi. The set containing all elements is the sample space Ω. The set with no elements is called the empty set ∅.

Now let’s discuss some notation. If we say that A = {ω 1 , ω 2 ,... , ωn}, then we say that A consists of the elements ω 1 , ω 2 ,... , ωn. ωi ∈ A means that ωi is in A, whereas ωi 6 ∈ A means that ωi is not in A.

1.1.2 Comparing sets

We can compare and manipulate sets in many ways. Let’s take a look at it. We say that A is a subset of B (denoted by A ⊂ B) if every element in A is also in B. When (at least) one element in A is not in B, then A 6 ⊂ B. If A ⊂ B and B ⊂ A (they consist of the same elements), then A and B are equal: A = B. Sets are said to be disjoint if they have no common elements.

We can’t just add up sets. But we can take the intersection and the union of two sets. The intersection of A and B (denoted by A ∩ B) consists of all elements ωi that are in both A and B. (So ωi ∈ A ∩ B if ωi ∈ A and ωi ∈ B.) On the other hand, the union of A and B (denoted by A ∪ B) consists of all elements ωi that are in either A or B, or both. (So ωi ∈ A ∪ B if ωi ∈ A or ωi ∈ B.)

The set difference A \ B consists of all elements that are in A, but not in B. There is also the complement of a set A, denoted by Ac. This consists of all elements that are not in A. Note that Ac^ = Ω \ A and A \ B = A ∩ Bc.

There’s one last thing we need to define. A partition of Ω is a collection of subsets Ai, such that

  • the subsets Ai are disjoint: Ai ∩ Aj = ∅ for i 6 = j.
  • the union of the subsets equals Ω:

⋃n i=1 Ai^ =^ A^1 ∪^ A^2 ∪^...^ ∪^ An^ = Ω.

1.2 Introduction to Probability

It’s time to look at probability now. Probability is all about experiments and their outcomes. What can we say about those outcomes?

1.2.1 Definitions

Some experiments always have the same outcome. These experiments are called deterministic. Other experiments, like throwing a dice, can have different outcomes. There’s no way of predicting the outcome. We do, however, know that when throwing the dice many times, there is a certain regularity in the outcomes. That regularity is what probability is all about.

A trial is a single execution of an experiment. The possible outcomes of such an experiment are denoted by ωi. Together, they form the probability space Ω. (Note the similarity with set theory!) An event A is a set of outcomes. So A ⊂ Ω. We say that Ω is the sure event and ∅ is the impossible event.

Now what is the probability P (A) of an event A? There are many definitions of probability, out of which the axiomatic definition is mostly used. It consists of three axioms. These axioms are rules which P (A) must satisfy.

  1. P (A) is a nonnegative number: P (A) ≥ 0.
  2. The probability of the sure event is 1: P (Ω) = 1.
  3. If A and B have no outcomes in common (so if A ∩ B = ∅), then the probability of A ∪ B equals the sum of the probabilities of A and B: P (A ∪ B) = P (A) + P (B).

1.2.2 Properties of probability

From the three axioms, many properties of the probability can be derived. Most of them are, in fact, quite logical.

  • The probability of the impossible event is zero: P (∅) = 0.
  • The probability of the complement of A satisfies: P (Ac) = 1 − P (A).
  • If A ⊂ B, then B is equally or more likely than A: P (A) ≤ P (B).
  • The probability of an event A is always between 0 and 1: 0 ≤ P (A) ≤ 1.
  • For any events A and B, there is the relation: P (A ∪ B) = P (A) + P (B) − P (A ∩ B).

Using the probability, we can also say something about events. We say two events A and B are mutually independent if P (A ∩ B) = P (A)P (B). (1.2.1)

Identically, a series of n events A 1 ,... , An are called mutually independent if any combination of events Ai, Aj ,... , Ak (with i, j,... , k being numbers between 1 and n) satisfies

P (Ai ∩ Aj ∩... ∩ Ak) = P (Ai)P (Aj )P (Ak). (1.2.2)

1.2.3 Conditional Probability

Sometimes we already know some event B happened, and we want to know what the chances are that event A also happened. This is the conditional probability of A, given B, and is denoted by P (A|B). It is defined as

P (A|B) =

P (A ∩ B)

P (B)

The conditional probability satisfies the three axioms of probability, and thus also all the other rules. However, using this conditional probability, we can derive some more rules. First, there is the product rule, stating that

P (A 1 ∩ A 2 ∩... ∩ An) = P (A 1 )P (A 2 |A 1 )P (A 3 |A 2 ∩ A 1 )... P (An|An− 1 ∩... ∩ A 2 ∩ A 1 ). (1.2.4)

Another rule, which is actually quite important, is the total probability rule. Let’s suppose we have a partition B 1 ,... , Bn of Ω. The total probability rule states that

P (A) =

∑^ n

i=

P (A ∩ Bi) =

∑^ n

i=

P (Bi)P (A|Bi). (1.2.5)

By combining this rule with the definition of conditional probability, we find another rule. This rule is called Bayes’ rule. It says that

P (Bj |A) =

P (A|Bj )P (Bj ) ∑n i=1 P^ (A|Bi)P^ (Bi)^

2.1.4 Probability density function

For continuous random variables there is a continuous CDF. From it, we can derive the probability density function (PDF), which is defined as

fx(x) =

dFx(x) dx

⇔ Fx(x) =

∫ (^) x

−∞

fx(t)dt. (2.1.4)

Since the CDF Fx(x) is always increasing, we know that fx(x) ≥ 0. The PDF does not exist for discrete random variables.

2.2 Discrete Distribution types

There are many distribution types. We’ll be looking at discrete distributions in this part, while continuous distributions will be examined in the next part. But before we even start examining any distributions, we have to increase our knowledge on combinations. We use the following paragraph for that.

2.2.1 Permutations and combinations

Suppose we have n elements and want to order them. In how many ways can we do that? The answer to that is n! = n · (n − 1) ·... · 2 · 1. (2.2.1)

Here n! means n factorial. But what if we only want to order k items out of a set of n items? The amount of ways is called the amount of permutations and is

n! (n − k)! = n · (n − 1) ·... · (n − k + 1). (2.2.2)

Sometimes the ordering doesn’t matter. What if we just want to select k items out of a set of n items? In how many ways can we do that? This result is the amount of combinations and is ( n k

n! k!(n − k)!

n · (n − 1) ·... · (n − k + 1) k · (k − 1) ·... · 2 · 1

2.2.2 The binomial distribution and related distributions

Now we will examine some types of discrete distributions. The most important parameter for discrete distributions is the probability mass function (PMF) Px(k). So we will find it for several distribution types.

Suppose we have an experiment with two outcomes: success and failure. The chance for success is always just p. We do the experiment n times. The random variable x denotes the amount of successes. We now have

Px(k) = P (x = k) =

n k

pk(1 − p)n−k. (2.2.4)

This distribution is called the binomial distribution.

Sometimes we want to know the probability that we need exactly k trials to obtain r successes. In other words, the rth^ success should occur in the kth^ trial. The random variable x now denotes the amount of trials needed. In this case we have

Px(k) = P (x = k) =

k − 1 r − 1

pr^ (1 − p)k−r^. (2.2.5)

This distribution is called the negative binomial distribution.

We can also ask ourselves: how many trials do we need if we only want one success? This is simply the negative binomial distribution with r = 1. We thus have

Px(k) = P (x = k) = p(1 − p)k−^1. (2.2.6)

This distribution is called the geometric distribution.

2.2.3 Other discrete distributions

Let’s discuss some other discrete distributions. A random variable x follows a Poisson distribution with parameter λ > 0 if

Px(k) = e−λ^ λk k!

This distribution is an approximation of the binomial distribution if np = λ, p → 0 and n → ∞.

A random variable x has a uniform distribution if

Px(k) =

n

where n is the amount of possible outcomes of the experiment. In this case every outcome is equally likely.

A random variable has a Bernoulli distribution (with parameter p) if

Px(k) =

p for k = 1, 1 − p for k = 0.

Finally there is the hypergeometric distribution, for which

Px(k) =

r k

m − r n − k

m n

2.3 Continuous Distribution Types

It’s time we switch to continuous distributions. The most important function for continuous distributions is the probability density function (PDF) fx(k). We will find it for several distribution types.

2.3.1 The normal distribution

We start with the most important distribution type there is: the normal distribution (also called Gaussian distribution). A random variable x is a normal random variable (denoted by x ∼ N (x, σ^2 x)) if

fx(x) =

2 πσx

e−^

(^12) ( xσx−x )

2

. (2.3.1)

Here x and σx are, respectively, the mean and the standard deviation. (We will discuss them in the next part.) It follows that the cumulative distribution function (CDF) is

Fx(x) =

2 πσx

∫ (^) x

−∞

e−^

(^12) ( tσx−x )

2 dt. (2.3.2)

2.4.2 The variance

The variance or dispersion of a random variable is denoted by σ^2 x. Here σx is the standard deviation. If x is discrete, then the variance is given by

σ^2 x = D(x) = E

(x − x)^2

∑^ n

i=

(xi − x)^2 Px(xi) (2.4.5)

If x is continuous, then it is given by

σ x^2 = D(x) = E

(x − x)^2

−∞

(x − x)^2 fx(x) dx. (2.4.6)

Here D(.. .) is the mathematical dispersion operator. It can be shown that σ x^2 can also be found (for both discrete and continuous random variables) using

σ^2 x = E(x^2 ) − x^2. (2.4.7)

Note that in general E(x^2 ) 6 = x^2. The value E(x) = x is called the first moment, while E(x^2 ) is called the second moment. The variance σ x^2 is called the second central moment.

This is all very nice to know, but what is it good for? Let’s take a look at that. The variance σ^2 x tells something about how far values are away from the mean x. In fact, Chebyshev’s inequality states that for every  > 0 we have

P (|x − x| ≥ ) ≤

σ x^2 ^2

2.4.3 Other moments

After the first and the second moment, there is of course also the third moment, being

E

(x − x)^3

The third moment is a measure of the symmetry around the center (the skewness). For symmetrical distributions this third moment is 0.

The fourth moment E

(x − x)^4

is a measure of how peaked a distribution is (the kurtosis). The

kurtosis of the normal distribution is 3. If the kurtosis of a distribution is less than 3 (so the distribution is less peaked than the normal distribution), then the distribution is platykurtic. Otherwise it is leptokurtic.

2.4.4 Median and mode

Finally there are the median and the mode. The median is the value x for which Fx(x) = 1/2. So half of the possible outcomes has a value lower than x and the other half has values higher than x.

The mode is the value x for which (for discrete distributions) Px(x) or (for continuous distributions) fx(x) is at a maximum. So you can see the mode as the value x which is most likely to occur.

  1. Multiple Random Variables

3.1 Random Vectors

Previously we have only dealt with one random variable. Now suppose we have more random variables. What distribution functions can we then define?

3.1.1 Joint and marginal distribution functions

Let’s suppose we have n random variables x 1 , x 2 ,... , xn. We can put them in a so-called random vector x = [x 1 , x 2 ,... , xn]T^. The joint distribution function (also called the simultaneous distribution function) Fx(x) is then defined as

Fx(x 1 , x 2 ,... , xn) = Fx(x) = P (x 1 ≤ x 1 , x 2 ≤ x 2 ,... , xn ≤ xn). (3.1.1)

(You should read the commas ”,” in the above equation as ”and” or, equivalently, as the intersection operator ∩.) From this joint distribution function, we can derive the marginal distribution function Fxi (xi) for the random variable xi. It can be found by inserting ∞ in the joint distribution function for every xj other than xi. In an equation this becomes

Fxi (xi) = Fx(∞, ∞,... , ∞, xi, ∞,... , ∞). (3.1.2)

The marginal distribution function can always be derived from the joint distribution function using the above method. The opposite is, however, not always true. It often isn’t possible to derive the joint distribution function from the marginal distribution functions.

3.1.2 Density functions

Just like for random variables, we can also distinguish discrete and continuous random vectors. A random vector is discrete if its random variables xi are discrete. Similarly, it is continuous if its random variables are continuous.

For discrete random vectors the joint (mass) distribution function Px(x) is given by

Px(x) = P (x 1 = x 1 , x 2 = x 2 ,... , xn = xn). (3.1.3)

For continuous random vectors, there is the joint density function fx. It can be derived from the joint distribution function Fx(x) according to

fx(x 1 , x 2 ,... , xn) = fx(x) =

∂nFx(x 1 , x 2 ,... , xn) ∂x 1 ∂x 2... ∂xn

3.1.3 Independent random variables

In the first chapter of this summary, we learned how to check whether a series of events A 1 ,... , An are independent. We can also check whether a series of random variables are independent. This is the case if

P (x 1 ≤ x 1 , x 2 ≤ x 2 ,... , xn ≤ xn) = P (x 1 ≤ 1)P (x 2 ≤ 2)... P (xn ≤ n). (3.1.5)

If this is, indeed the case, then we can derive the joint distribution function Fx(x) from the marginal distribution functions Fxi (xi). This goes according to

Fx(x) = Fx 1 (x 1 )Fx 2 (x 2 )... Fxn (xn) =

∏^ n

i=

Fxi (xi). (3.1.6)

3.3.1 Conditional relations

Given an event B, let’s define the conditional CDF as

Fx(x|B) = P (x ≤ x|B) = P (x ≤ x, B) P (B)

Here the event B can be any event. Also, the comma once more indicates an intersection. The conditional PDF now follows as

fx(x|B) =

dFx(x|B) dx

The nice thing is that conditional probability has all the properties of normal probability. So any rule that you’ve previously seen about probability can also be used now.

Let’s see if we can derive some rules for these conditional functions. We can rewrite the total probability rule for the conditional CDF and the conditional PDF. Let B 1 , B 2 ,... , Bn be a partition of Ω. We then have

Fx(x) =

∑^ n

i=

Fx(x|Bi)P (Bi) ⇒ fx(x) =

∑^ n

i=

fx(x|Bi)P (Bi). (3.3.3)

From this we can derive an equivalent for Bayes’ rule, being

fx(x|A) =

P (A|x)fx(x) ∫ (^) ∞ −∞ P^ (A|x)fx(x)dx

Here the event A can be any event. The probability P (A|x) in the above equation is short for P (A|x = x).

3.3.2 The conditional probability density function

In the previous paragraph, there always was some event A or B. It would be nice if we can replace that by a random variable as well. We can use the random variable y for that. By doing so, we can derive that

fx(x|y) =

fx,y (x, y) fy (y)

where fx,y (x, y) is the joint density function of x and y. Note that if x and y are independent, then fx,y (x, y) = fx(x)fy (y) and thus fx(x|y) = fx(x).

We can also rewrite the total probability rule. We then get

fy (y) =

−∞

fy (y|x)fx(x)dx. (3.3.6)

Similarly, we can rewrite Bayes’ rule to

fx(x|y) =

fy (y|x)fx(x) fy (y)

fy (y|x)fx(x) ∫ (^) ∞ −∞ fy^ (y|x)fx(x)dx

3.3.3 The conditional mean

The conditional mean of y, given x = x, can be found using

E(y|x) =

−∞

y fy (y|x) dy. (3.3.8)

Note that this mean depends on x, and is therefore a function of x. Now let’s look at E(y|x). We know that x is a random variable, and E(y|x) is a function of x. This implies that E(y|x) is a random variable. We may ask ourselves, what is the mean of this new random variable? In fact, it turns out that

E(E(y|x)) = E(y) = y. (3.3.9)

3.3.4 n random variables

Suppose we have n random variables x 1 , x 2 ,... , xn. We can then also have a conditional PDF, being

f (xn,... , xk+1|xk,... , x 1 ) =

f (x 1 ,... , xk, xk+1,... , xn) f (x 1 ,... , xk)

From this, the so-called chain rule can be derived, being

f (x 1 ,... , xn) = f (xn|xn− 1 ,... , x 1 )f (xn− 1 |xn− 2 ,... , x 1 )... f (x 2 |x 1 )f (x 1 ). (3.3.11)

4.1.3 Functions of two random variables

Let’s suppose we now have two random variables x 1 and x 2. Also, let’s define y = g(x 1 , x 2 ). In this case, we can find the CDF Fy (y) using

Fy (y) = P (y ≤ y) = P (g(x 1 , x 2 ) ≤ y) = P ((x 1 , x 2 ) ∈ Dy ), (4.1.5)

where the set Dy consists of all the pairs (x 1 , x 2 ) such that g(x 1 , x 2 ) ≤ y. To find the PDF, we can use

fy (y) =

−∞

fx 1 ,x 2 (x 1 , g−^1 (x 1 , y))

dg−^1 (x 1 , y) dy

∣ dx^1 =

−∞

fx 1 ,x 2 (g−^1 (y, x 2 ), x 2 )

dg−^1 (y, x 2 ) dy

∣ dx^2. (4.1.6)

4.1.4 Transformations of two random variables

Now let’s not only define y 1 = g 1 (x 1 , x 2 ), but also y 2 = g 2 (x 1 , x 2 ). Now we can find the joint CDF using

Fy 1 ,y 2 (y 1 , y 2 ) = P (y 1 ≤ y 1 , y 2 ≤ y 2 ) = P (g 1 (x 1 , x 2 ) ≤ y 1 , g 2 (x 1 , x 2 ) ≤ y 2 ) = P ((x 1 , x 2 ) ∈ Dy 1 ,y 2 ), (4.1.7) where the region Dy 1 ,y 2 is the intersection of the regions Dy 1 and Dy 2. We can now find the joint PDF by differentiating the CDF. We then get

fy 1 ,y 2 (y 1 , y 2 ) =

∂^2 Fy 1 ,y 2 (y 1 , y 2 ) ∂y 1 ∂y 2

∂^2

∂y 1 ∂y 2

Dy 1 ,y 2

fx 1 ,x 2 (x 1 , x 2 ) dx 1 dx 2. (4.1.8)

There is, however, another way to find the joint PDF. For that, let’s examine the matrix

g(x 1 , x 2 )∂xT^ =

[

g 1 (x 1 , x 2 ) g 2 (x 1 , x 2 )

]

[

∂ ∂x 1

∂ ∂x 2

]

[ (^) ∂g 1 (x 1 ,x 2 ) ∂x 1

∂g 1 (x 1 ,x 2 ) ∂x 2 ∂g 2 (x 1 ,x 2 ) ∂x 1

∂g 2 (x 1 ,x 2 ) ∂x 2

]

The determinant of this matrix is called the Jacobian of g. The joint PDF can now be found using

fy 1 ,y 2 (y 1 , y 2 ) =

fx 1 ,x 2 (x 1 , x 2 ) ∣ ∣ ∣det

g(x 1 , x 2 )∂xT^

The above equation also works for dimension higher than 2. In fact, it works for any pair of n-dimensional vectors y and x for which y = g(x).

4.1.5 The multi-dimensional mean

Let’s suppose we have an n-dimensional random vector x, an m-dimensional random vector y and a function G(x) such that y = G(x). It would be interesting to know the expectation vector E(y). It can be found using

E(y) =

Rm

yfy(y) dy ⇔ E(yi) =

Rm

yify(y) dy. (4.1.11)

Using the right part of the above equation, you can find one component of E(y). The left part is the general (vector) equation. Note that in both cases you need to integrate m times. Once for every component of y.

Generally, we don’t know fy(y) though. But we do know fx(x). So to find E(y), we can first find fy(y). This is, however, not always necessary. There is a way to find E(y) without finding fy(y). You then have to use

E(y) = E(G(x)) =

Rn

G(x)fx(x) dx. (4.1.12)

The above equation is called the expectation law. If the function G(x) is linear (so you can write it as G(x) = Ax + b for a constant matrix A), then the above equation simplifies greatly. In that case we have y = Ax + b, where y = E(y) and x = E(x).

4.1.6 Multi-dimensional variance and covariance

Calculating the variance D(y) of y goes more or less similar to calculating the mean. There is a slight difference though. While E(y) was an m × 1 vector, D(y) is an m × m matrix. To find this matrix, we can use either of the following two equations

D(y) = E

(y − y) (y − y)T^

Rm

(y − y) (y − y)T^ fy(y) dy, (4.1.13)

D(y) = D(G(x)) = E

(G(x) − y) (G(x) − y)T^

Rn

(G(x) − y) (G(x) − y)T^ fx(x) dx. (4.1.14)

If G(x) is, once more, linear, we can simplify the above equation. In this case we have

D(y) = AD(x)AT^ ⇔ Qyy = AQxxAT^ , (4.1.15)

where Qyy = D(y) and Qxx = D(x). From these two matrices, we can also find the covariance matrices Qyx and Qxy , according to

C(y, x) = Qyx = AQxx and C(x, y) = Qxy = QxxAT^. (4.1.16)

Here Qyx is an m × n matrix, while Qxy is an n × m matrix. So in the multi-dimensional situation we do not have C(y, x) = C(x, y). However, since Qxx is symmetric, we do have Qyx = QTxy.

4.2 The Central Limit Theorem

If we put together multiple random variables, interesting things start happening. And it has something to do with the normal distribution. If you want to know more about it, then quickly read the chapter below.

4.2.1 The central limit theorem

Let’s suppose we have a number of (possibly different) independent random variables x 1 , x 2 ,... , xn. Now let’s define a new random variable y as the sum of all these variables, so y = x 1 + x 2 +... + xn. Let’s suppose we know the mean y and the standard deviation and σy. The central limit theorem states that as n increases, we have

Fy (y) ≈ Φ

y − y σy

In words, we see that as n increases, y behaves like a normal distribution with average y and standard deviation σy. The corresponding PDF then is

fy (y) ≈

σy

2 π

e

− (y−y) 2 2 σ^2 y (^). (4.2.2)

Let’s now look at a special case. Suppose x 1 = x 2 =... = xn = x. Also, all these distributions have mean x and standard deviation σx. In this case we can find y and σy. We have y = nx. The average of y evidently becomes y = nx. To find the standard deviation of y, we first look at the variance of y. Since the random variables x are independent, we find that σ y^2 = nσ^2 x. From this follows that σy =

nσx. The random variable y thus behaves like a normal distribution with the just found mean y and standard deviation σy.

Many things can be derived from the PDF, for which we just gave the equation. Examples are the marginal distributions and the conditional distributions. An interesting thing is that those distributions are, in turn, also normal distributions. And if that wasn’t interesting enough, also all linear transformations of a multivariate normal distribution are (multivariate) normal distributions.

4.3.2 The χ^2 distribution

Let’s suppose x 1 , x 2 ,... xn are all normally distributed random variables with mean xi and variance 1, so xi ∼ N (xi, 1). The Chi-square distribution with n degrees of freedom, denoted as χ^2 (n, λ), is now defined as

χ^2 =

∑^ n

i=

x^2 i. (4.3.3)

The non-centrality parameter λ is defined as

λ =

∑^ n

i=

x^2 i. (4.3.4)

If λ = 0, we are dealing with the central Chi-square distribution χ^2 (n, 0).

The Chi-square distribution has mean E(χ^2 ) = n+λ and variance D(χ^2 ) = 2n+4λ. If two (independent) Chi-square distributions χ^21 and χ^22 are added up, we once more get a Chi-square distribution, but now with (n 1 + n 2 ) degrees of freedom and non-centrality parameter (λ 1 + λ 2 ).

4.3.3 The t distribution

Suppose that x ∼ N (∇, 1) and χ^2 ∼ χ^2 (n, 0) are independent random variables. The (Student’s) t distribution with n degrees of freedom, denoted as t (n, ∇), is now defined as

t =

x √ χ^2 /n

Here ∇ is the non-centrality parameter. If ∇ = 0, we are dealing with the central t distribution.

4.3.4 The F distribution

Suppose that χ^21 ∼ χ^2 (n 1 , λ) and χ^22 ∼ χ^2 (n 2 , 0) are two independent Chi-square distributions. The F distribution, denoted as F (n 1 , n 2 , λ), is then defined as

F =

χ^21 /n 1 χ^22 /n 2

It is said to have n 1 and n 2 degrees of freedom. Also, λ is the non-centrality parameter. When λ = 0, we are dealing with a central F distribution.

  1. Estimation

5.1 Introduction to Estimation

One of the powers of probability is that you can estimate the behavior of phenomena. How can we do that? That’s something we will look at in this chapter.

5.1.1 Definitions

It often occurs that there is some phenomenon of which we want to know the behavior. Such a phe- nomenon can be modeled as a random vector y, with a certain size m. However, we usually don’t know the distribution of such a random variable. The PDF just isn’t known to us. But, given certain param- eters, we can find it. In this case we can put the n unknown parameters into a vector x. Then, once x is known, we can find the PDF of y. This PDF is written as fy(y|x). (An example could be where we know y is normally distributed, but we don’t know the mean y and the standard deviation σy .)

Now how can we find x? The truth is, we can’t. However, by observing the phenomenon described by y, we can guess it. Let’s say our guess xˆ (called the estimate of x) is given by some function ˆx = G(y). Our task is to set this function G(y). Once we have done so, we can also define a new random variable, called the estimator, as ˆx = G(y).

5.1.2 Finding a good estimator

So we now know we have to choose an estimator ˆx = G(y). How would we know what would be a good one? There are three criteria for that. First there is the estimation error ˆ = xˆ − x, which is also a random variable. The estimator ˆx is said to be an unbiased estimator of x if, and only if E(ˆ) = E(ˆx − x) = 0 , or, equivalently, E(ˆx) = x. If the estimator ˆx is not unbiased, then we say that its bias is E(ˆ).

Another measure of quality is the mean squared error (MSE), defined as E

|ˆx − x|^2

, or, equivalently,

E

ˆ^2

. Of course the mean squared error should be as small as possible.

Finally, let’s look at the third measure of quality. It is defined as P (|ˆx − x|^2 ≤ r^2 ), for some radius r. In words, this is the probability that the vector ˆ is in the (hyper-)sphere with radius r. This chance should be as big as possible.

There are three common ways of finding an estimator. Which one to use depends on the data that you have and the accuracy that you want. We will take a look at them in the rest of this chapter.

5.2 Least-Squares Estimation

One of the most well-known methods of determining an estimation is the least-squares estimation method. Let’s take a look at how it works.

5.2.1 The consistent case

Let’s suppose we have a set of measurements y, having size m, and a set of unknown parameters x, having size n. To apply the least-squares method, we assume that

y = Ax, (5.2.1)

5.2.4 Implementing random vectors

Previously we saw the system of equations y = Ax+e. Here, the vector y represented a series of measure- ments. However, we can take more measurements from a phenomenon. Every time, these measurements can take different values. So it would be wise to represent y by a random vector y. Equivalently, the vector e also has a different value every time. So it should also be a random vector e. We thus get

y = Ax + e. (5.2.7)

We assume we have chosen our estimate x (which does stay constant during different measurements) such that E(e) = 0 or, equivalently, E(y) = Ax. If this is indeed the case, then we say that the above linear system is called a linear model of E(y).

From y, we can derive the random variables ˆx, ˆy and ˆe. For that, we can use relations we actually already know. They are

ˆx =

AT^ W A

AT^ W y = x +

AT^ W A

AT^ W e, (5.2.8)

ˆy = PAy = Ax + PAe and ˆe = P (^) A⊥ y = 0 + P (^) A⊥ e. (5.2.9)

And that’s all we need to know if we want to estimate what the outcome of the experiment will be next.

5.3 Best linear unbiased estimation

The second method of finding ˆx we will look at is the BLUE method. To use it, you also need the variance matrix Qyy of y. Because the BLUE method considers Qyy , it can be a rather accurate estimation method. Let’s find out how it works.

5.3.1 Definitions and conditions

Let’s consider the linear system of equations

E(y) = Ax. (5.3.1)

Just like in the previously discussed method, we want to find an estimate x (or more precise, an estimator x) that corresponds to certain conditions. Before we look at those conditions, we first make some definitions.

Let’s define the vector z (having size k) as a linear combination of x. So, z = F T^ x + f 0 , for some known n × k matrix F and k-vector f 0. Just like we want to find an estimator ˆx for x, we can also be looking for an estimator z for z. This gives us also the relation z = F T^ x + f 0. So to find x we might as well try to find z. The estimator z depends on y. So let’s define G(y) such that z = G(y).

Enough definitions. Let’s look at what conditions we want the estimator z to have. First of all we want it to be unbiased. This means that E(z) = z or, equivalently, E(G(y)) = F T^ x + f 0. For reasons of simplicity, we also want it to be linear. This is the case if G(y) is a linear function, and can thus be written as G(y) = LT^ y + l 0 for some m × k matrix L and a k-vector l 0. This linearity condition can be rewritten to two conditions, being

AT^ L = F and l 0 = f 0. (5.3.2)

Any estimator z of z that is both linear and unbiased is called a linear unbiased estimator (LUE).

5.3.2 Finding the best linear unbiased estimator

There is one slight problem. There are many LUEs. We want only the so-called best linear unbiased estimator (BLUE), denoted by ˆz. But what is the best LUE? We now define the best LUE (the BLUE) to be the LUE with the smallest mean squared error (MSE). So we have

E

|ˆz − z|^2

≤ E

|z − z|^2

for every LUE z. Now the question arises how we can find this BLUE ˆz and the corresponding best estimator xˆ for x. For that, we use the Gauss-Markov theorem, which states that

ˆx =

AT^ Q− yy^1 A

AT^ Q− yy^1 y and ˆz = F T^ ˆx + f 0 , (5.3.4)

where Qyy is the variance matrix of y (so Qyy = D(y)). It is interesting to note that the final value of xˆ does not depend on the matrix F or the vector f 0 at all. It just depends on A and y.

Another interesting fact to note is the link with the weighted least-squares estimation method. If the weight matrix W in the WLSE method is equal to the inverse of the variance matrix Qyy (so W = Q− yy^1 ) in the BLUE method, you would find exactly the same estimator x.

5.4 Maximum Likelihood Estimation and Confidence Regions

The third method of finding ˆx uses the PDF of y. It can therefore not always be applied. But its advantage is that it can be applied in the case where y can’t be written as Ax.

5.4.1 The condition

To make a maximum likelihood estimation (MLE) we need to know the PDF of y, given a certain unknown vector x. We write this as fy(y|x).

Now suppose we have some measurement y. The idea behind the MLE is to choose the value of x for which it is most likely that y occurred. The likelihood of y then is fy(y|x). Note that this likelihood is a function of the unknown vector x. This likelihood should be maximized. The corresponding x, now denoted as ˆx, is the maximum likelihood estimation.

5.4.2 Finding the maximum likelihood estimation

There is no general method of finding the MLE. For relatively easy PDFs of y, simple logic can often lead to the MLE. For more difficult PDFs, finding the MLE might even require complicated (numerical) computation.

If, however, fy(y|x) is sufficiently smooth, then ˆx can be found using the conditions

∂xfy(y|ˆx) = 0 and ∂ xx^2 T fy (y|ˆx) < 0. (5.4.1)

If the PDF simply gives a scalar result, then the above states that the first derivative must be zero, indicating that there is a local minimum/maximum. The second derivative must be smaller than zero, indicating it is in fact a maximum.

If, however, the PDF returns a vector, then things are a bit more difficult. Then the first condition requires that the gradient has to be zero. The second condition states that the so-called Hessian matrix (the matrix of derivatives) needs to be negative definite. In other words, all its eigenvectors need to be negative.

Finally, when multiple values satisfy the above conditions, just insert their values ˆx into fy(y|ˆx) and see which value gives the highest likelihood of y.