Professional Documents
Culture Documents
By Tafari Lemma: Probability and Random Processes
By Tafari Lemma: Probability and Random Processes
By Tafari Lemma
由NordriDesign提供
www.nordridesign.com
Lecture Outline
• Random Variables
• Type of random variable
• Discrete random variable
• Probability Distributions
• Mean and Variance
• Independence of Random Variables
• Specific Discrete Distributions
• Continuous Random Variable
• Specific Continuous Distributions
2
Random Variables
Often it is useful to consider random variables. These map the
outcomes of a random experiment to a number.
A random variable X is a function from the sample space to the
real numbers.
Example:
•X is the random variable corresponding to the temperature of
the room at time t.
• x is the measured temperature of the room at time t.
3
Type of Random Variables
4
Discrete Random Variables
5
Probability Distributions
The probability distribution of a random variable X is a
description of the probabilities associated with each possible
outcome of X.
6
Example
You toss a fair coin twice, and let X be defined as the number of heads
you observe. Find the range of X, RX, as well as its probability mass
function .
Here, our sample space is given by
S={HH,HT,TH,TT}
We can identify each request with a number. For instance identify Print,
Save and Cancel with 0,1, and 2, respectively. Let X be the random variable
corresponding to the random experiment above.
8
A valid probability mass function
9
Cumulative Distribution Function
Properties:
10
C.D.F. Example
-1 0 1 2 3 4 5 -1 0 1 2 3 4 5 11
11
C.D.F. Example
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
-1 0 1 2 3 4 5
12
Example of CDF
The CDF of the random variable X is given by
13
Cont’d
a. The graph of the CDF is as shown in below
14
Mean and Variance
There are certain “summaries” of the distribution of a random
variable that can give a lot of information about it. These have
also easy intuitive interpretations.
Definition: Mean and Variance (discrete r.v.)
15
Mean and Variance
The mean is a weighted average of the possible values of X,
where the weights are their corresponding probabilities.
Therefore the mean describes the “center” of the distribution.
In other words X takes values “around” its mean…
14
16
Example
17
Example
18
Properties of the Mean and Variance
Properties:
WARNING!!!
19
Properties of Independent R.V.s
Definition:
20
Specific Discrete Distributions
• Bernoulli Distribution
• Binomial Distribution
• Poisson Distribution
21
Discrete Uniform Distribution
Definition: Discrete Uniform Distribution
Example:
22
Discrete Uniform Distribution
23
Dices
24
Bernoulli Random Variables
Definition: Bernoulli Random Variable
Examples:
25
Binomial Distribution
Definition: Binomial Random Variable
26
Binomial Distribution
27
Binomial Distribution
28
Binomial Distribution Example
Samples from a certain water supply have a 10% chance of
containing an organic pollutant. Suppose you collect 20 samples
over time, and these are taking in such a way that you can
assume these are independent. Let X be the number of
contaminated samples.
29
Poisson Process
Assumptions:
30
Poisson Distribution
Definition: Poisson random variable
31
Properties
The mean and variance are easily calculated from the p.m.f:
32
Example
There are many situations where the Poisson distribution
seems to be a good fit.
33
Example
34
Continuous Random Variable
Examples:
• Heights
• Birth weights
• Blood pressure
• Length of life of a medicine
35
Probability Density Function
Probability distribution describes how the probabilities are
distributed over all possible values. A probability distribution for a
continuous random variable x is specified by a mathematical
function denoted by f(x) which is called the density function.
36
Probability Density Functions
37
Probability Density Functions
Probability Density Function Probability Mass Function
(continuous random variables) (discrete random variables)
39
Cumulative Distribution Function
We already saw that we can consider also different descriptions
of a random variable, namely we defined in the first lecture the
40
Cumulative Distribution Function
42
C.D.F. Example
43
Mean and Variance
As we did for discrete random variables, we can consider also
certain summaries of the distributions
44
Mean and Variance
The mean is a weighted average of the possible values of X,
where the weights are their corresponding probabilities.
Therefore the mean describes the “center” of the distribution.
In other words X takes values “around” its mean.
16
45
Example
Suppose you want to model the clock frequency (in GHz) of a
certain mobile device processor. This is a random quantity, and
in some cases it can be well modeled by a continuous random
variable with density
46
Example
Let’s first check this is a valid probability density function:
47
Example
48
Example
Suppose you replace the old processor with a better one, with
the same average speed, but much more steady.
49
Example
50
Properties of the Mean and Variance
WARNING!!!
51
Specific Continuous Distributions
52
Continuous Uniform Distribution
Definition: Continuous Uniform Distribution
53
Countinuous Uniform Distribution
54
Normal Distribution
Remarkably the sum of many independent random variables
almost always looks similar to a bell curve !!! No matter what
these random variables look like themselves.
30
55
Why is the Normal Distribution Important?
The result relating the sum of many independent random variables and
the normal distribution is called the Central Limit Theorem. It is a very
important result that we will state later on. For now it is important to
note that normal distributions can be used to model many different
things:
•Total time it takes to download a file (the time is the sum of the time
is takes to receive each packet)
•Average grade of a test (this is the sum of all the grades, divided
by the number of tests)
56
Example
57
Basic Properties
58
Standard Normal Distribution
Unfortunately it is not possible to calculate in closed form
the areas under the normal density :(. One must resort to
either numerical evaluation of the integral, or the use of
tables – however, we need only one table for a very specific
normal distribution.
Definition: Standard Normal Density
36
59
Standardizing a Normal R. Variable
61
A Practical Example
In a communication system each bit to be transmitted is
converted into an electrical signal, that is send through a
copper wire. This transmitted signal is then converted into a
potential (in volt). Let X be a random variable denoting this
value:
62
Normal Distribution table
63
A Practical Example
64
A Practical Example
65
A Practical Example
66
Exponential Distribution
When we discussed discrete random variables we encountered
the Poisson or geometric random variables, which had an
interesting memoryless property. In the continuous setting
we also have a similar random variable.
67
Properties
The facts above are easily checked, and left as an exercise. The
lack of memory property is rather interesting. If X denotes the
time until a certain event happens:
•Given that we already waited t1 for the event implies that the
probability that we must wait t2 more time does not depend on
the value of t1.
68
Applicability of the Exponential Dist.
•The time until a device fails (if the device doesn’t wear out,
as it is the case in some electronic components)
69
Example
The duration of IC555 integrated circuits under normal
operation conditions is well modeled by an exponential
distribution with mean 2000 days.
70
Example
The duration of IC555 integrated circuits under normal
operation conditions is well modeled by an exponential
distribution with mean 2000 days.
71
Erlang Distribution
72
Gamma Distribution
The Erlang distribution can be generalized for the case r is not an integer
(although our interpretation of this random variable is no longer based on
the Poisson process). For this we need to generalize the factorial function
73
Gamma Distribution
Definition: Gamma Distribution
74
Example
For record keeping purposes, each electronic transaction made
in a ATM machine much be stored recorded in a paper roll. The
transactions are well modeled by a Poisson process, with an
average of 25 transactions per hour.
Suppose you install a new roll. Let X denote the time (in
minutes) until three transactions are registered. What is the
distribution of X ?
75
Weibull Distribution
If we want to model the time until failure of a part that is
subject to wear over time the exponential distribution is no
longer a suitable candidate, due to the lack-of-memory
property. In that case the Weibull distribution is much more
reasonable:
63
76
Properties
77
Example
The lifetime of bottom bracket (dichte trapas) from a certain bicycle
manufacturer is well modeled by a Weibull distribution with parameters
=2 and =5000.
78
Example
79
Thank You !!!