Statistika Probabilitas Pertemuan 10

 Normal Probability Distributions

Adopted from "Elementary Statistics - Picturing the World" 6th edition

{'height': '100%', 'scroll': True, 'width': '100%'}

from notebook.services.config import ConfigManager

cm = ConfigManager()

cm.update('livereveal', {

'scroll': True,

'width': "100%",

'height': "100%",

})


5.1.

Introduction to Normal Distributions and

the Standard Normal Distribution


A normal distribution is a continuous probability distribution for a random variable .

The graph of a normal distribution is called the normal curve.

Definition of a Normal Distribution


x


A normal distribution has these properties:

1. The mean, median, and mode are equal.

2. The normal curve is bell-shaped and is symmetric about the mean.

3. The total area under the normal curve is equal to 1.

4. The normal curve approaches, but never touches, the -axis as it extends farther and

farther away from the mean

5. Between and (in the center of the curve), the graph curves downward.

The graph curves upward to the left of and to the right of .

The points at which the curve changes from curving upward to curving downward are

called inflection points.

Properties of a Normal Distribution


x


μ − σ μ + σ


μ − σ μ + σ


Properties of a Normal Distribution


A discrete probability distribution can be graphed with a histogram.

A continuous probability distribution, we can use a probability density function (pdf).

A probability density function has two requirements:

1. the total area under the curve is equal to 1, and

2. the function can never be negative.

Formula for pdf:

Properties of a Normal Distribution


y =

1

σ√2π

e−(x−μ) /(2 )

2

σ

2


Meand and Standard Deviation (recap)


Understanding Mean and Standard Deviation


1. Which normal curve has a greater mean?

2. Which normal curve has a greater standard deviation?

Properties of a Normal Distribution [example 1]


1. The line of symmetry of curve A occurs at .

The line of symmetry of curve B occurs at .

So, curve A has a greater mean.

2. Curve B is more spread out than curve A.

So, curve B has a greater standard deviation.

Properties of a Normal Distribution [solution]

x = 15

x = 12


Interpreting Graphs of Normal Distributions

The scaled test scores for the New York State Grade 8 Mathematics Test are normally

distributed.

The normal curve shown below represents this distribution.

What is the mean test score? Estimate the standard deviation of this normal distribution.

Properties of a Normal Distribution [example 2]


The scaled test scores for the New York State Grade Mathematics Test are normally

distributed with a mean of about and a standard deviation of about .

Properties of a Normal Distribution [solution]


8


675 35


The normal distribution with a mean of and a standard deviation of is called the

standard normal distribution.

The horizontal scale of the graph of the standard normal distribution corresponds to -

scores.


It is important that you know the difference between and . The random variable is

sometimes called a raw score and represents values in a nonstandard normal distribution,

whereas represents values in the standard normal distribution.

The Standard Normal Distribution


0 1


z


z = =

value−mean

standard_deviation

x−μ

σ


x z x


z


1. The cumulative area is close to for -scores close to .

2. The cumulative area increases as the -scores increase.

3. The cumulative area for is .

4. The cumulative area is close to for -scores close to .

Properties of the Standard Normal Distribution


0 z z = −3.49

z

z = 0 0.5

1 z z = 3.49


Q1: Find the cumulative area that corresponds to a -score of

Q2: Find the cumulative area that corresponds to a -score of

Using the Standard Normal Table and SciPy [example 3]

z 1.15

z −0.24


Q1: Find the cumulative area that corresponds to a -score of


Using -score calculator

Using SciPy

Using the Standard Normal Table and SciPy [solution]

z 1.15


z


from scipy import stats

z_score = 1.15


0.8749280643628496

p = stats.norm.cdf(z_score)

print(p)


from scipy import stats

import numpy as np

import matplotlib.pyplot as plt

def draw_z_score(x, cond, mu=0, sigma=1):

y = stats.norm.pdf(x, mu, sigma)

z = x[cond]

plt.plot(x, y)

plt.fill_between(z, 0, stats.norm.pdf(z, mu, sigma))

plt.show()

x = np.arange(-3, 3, 0.001)

draw_z_score(x, x<z_score)


Using SciPy

Q2: Find the cumulative area that corresponds to a z-score of −0.24


0.40516512830220414

from scipy import stats

z_score = -0.24

p = stats.norm.cdf(z_score)

print(p)


from scipy import stats

import numpy as np

import matplotlib.pyplot as plt

def draw_z_score(x, cond, mu=0, sigma=1):

y = stats.norm.pdf(x, mu, sigma)

z = x[cond]


plt.plot(x, y)

plt.fill_between(z, 0, stats.norm.pdf(z, mu, sigma))

plt.show()

x = np.arange(-3, 3, 0.001)

draw_z_score(x, x<z_score)

Komentar

Postingan populer dari blog ini

Pertemuan 3 Stastiska Probabilitas