Chapter 7: PROBABILITY

14
Chapter 7: PROBABILITY “When you deal in large numbers, probabilities are the same as certainties. I wouldn’t bet my life on the toss of a single coin, but I would, with great confidence, bet on heads appearing between 49 % and 51 % of the throws of a coin if the number of tosses was 1 billion.” Brian Silver, 1998, The Ascent of Science, Oxford University Press. Sir Francis Galton’s Quincunx

description

Chapter 7: PROBABILITY. “When you deal in large numbers, probabilities are the same as certainties. I wouldn’t bet my life on the toss of a single coin, but I would, with great confidence, bet on heads appearing between 49 % and 51 % of the throws of a coin if the number of tosses was 1 billion.” - PowerPoint PPT Presentation

Transcript of Chapter 7: PROBABILITY

Page 1: Chapter 7: PROBABILITY

Chapter 7: PROBABILITY

“When you deal in large numbers, probabilities are the same as certainties. I wouldn’t bet my life on the toss of a single coin, but I would, with great confidence, bet on heads appearing between 49 % and 51 % of the throws of a coin if the number of tosses was 1 billion.”

Brian Silver, 1998, The Ascent of Science, Oxford University Press.

Sir Francis Galton’s Quincunx

Page 2: Chapter 7: PROBABILITY

Representing Population Behavior

Page 3: Chapter 7: PROBABILITY

Histogram

10 digital values: 1.5, 1.0, 2.5, 4.0, 3.5, 2.0, 2.5, 3.0, 2.5 and 0.5 V

resorted in order: 0.5, 1.0, 1.5, 2.0, 2.5, 2.5, 3.0, 3.5, 4.0 V

Time record Histogram

N = 9 occurrences; j = 8 cells; nj = occurrences in j-th cell

The histogram is a plot of nj (ordinate) versus magnitude (abscissa).

Page 4: Chapter 7: PROBABILITY

Proper Choice of Δx

← made using 3histos.m

The choice of Δx is critical to the interpretation of the histogram.

Page 5: Chapter 7: PROBABILITY

Δx ChoicesTypically, we construct equal-width-interval histograms.

Page 6: Chapter 7: PROBABILITY

Histogram Construction Rules

To construct equal-width histograms:

1. Identify the minimum and maximum values of x and its range

where xrange = xmax – xmin.

2. Determine K class intervals (usually use K = 1.15N1/3).

3. Calculate Δx = xrange / K.

4. Determine nj (j = 1 to K) in each Δx interval. Note ∑nj = N.

5. Check that nj > 5 and Δx ≥ ux.

6. Plot nj versus xmj,where xmj is the midpoint value of each interval.

Page 7: Chapter 7: PROBABILITY

Figure 7.7

Frequency DistributionThe frequency distribution is a plot of nj /N versus magnitude. It is very similar to the histogram.

← made using hf.m

Page 8: Chapter 7: PROBABILITY

Probability Density Function Concept

Figure 7.8

• Consider a signal that varies in time.

• What is the probability that the signal at a future time will reside between x and x + x?

Page 9: Chapter 7: PROBABILITY

Probability Density Function (pdf)

• Definition:

• For x(t):

• For n occurrences: fj /x

Page 10: Chapter 7: PROBABILITY

0 2 4 6 8 10 12 140

0.02

0.04

0.06

0.08

0.1

0.12

0.14

0.16

0.18

x

p(x)

Probability Density Function

In-Class Example• Determine the probability that x is between 1 and 7.

Page 11: Chapter 7: PROBABILITY

Probability Distribution Function (PDF)• The probability distribution function (PDF) is related to the integral of the pdf.

• A consequence of this is that

Figure 7.14

pdf PDF

Page 12: Chapter 7: PROBABILITY

Normalization of the pdf

1)( dxxpWhen the pdf is ‘normalized’ correctly:

Here,

>> not normalized

So, define pnew(x) = 1/3 p(x)

such that

Page 13: Chapter 7: PROBABILITY

In-Class Example• Determine the expressions for the PDF curve, knowing that of the pdf curve.

13713

71)(

721332

21

361

7212

21

361

xxx

xxxxP

• Integrating the pdf expressions give

0 2 4 6 8 10 12 140

0.02

0.04

0.06

0.08

0.1

0.12

0.14

0.16

0.18

x

p(x)

Probability Density Function

130

13713

711

10

)(361

361

x

xx

xx

x

xp

0 2 4 6 8 10 12 140

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

P(x

)

Probability Distribution Function

Page 14: Chapter 7: PROBABILITY

The Normal pdf and PDF

Figure 8.4