0% found this document useful (0 votes)
34 views

statics CH5

Uploaded by

Jason Lee
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

statics CH5

Uploaded by

Jason Lee
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 89

統計學(一)

第五章 連續型隨機變數
(Continuous Random Variables)
授課教師:唐麗英教授

國立交通大學 工業工程與管理學系
聯絡電話:(03)5731896
e-mail:[email protected]
2013

☆ 本講義未經同意請勿自行翻印 ☆
本課程內容參考書目

• 教科書
– Mendenhall, W., & Sincich, T. (2007). Statistics for engineering and the sciences, 5th Edition. Prentice Hall.
• 參考書目
– Berenson, M. L., Levine, D. M., & Krehbiel, T. C. (2009). Basic business statistics: Concepts and applications,
11th Edition. Upper Saddle River, N.J: Pearson Prentice Hall.
– Larson, H. J. (1982). Introduction to probability theory and statistical inference, 3rd Edition. New York: Wiley.
– Miller, I., Freund, J. E., & Johnson, R. A. (2000). Miller and Freund's Probability and statistics for engineers,
6th Edition. Upper Saddle River, NJ: Prentice Hall.
– Montgomery, D. C., & Runger, G. C. (2011). Applied statistics and probability for engineers, 5th Edition.
Hoboken, NJ: Wiley.
– Watson, C. J. (1997). Statistics for management and economics, 5th Edition. Englewood Cliffs, N.J: Prentice Hall.
– 林惠玲、陳正倉(2009),「統計學:方法與應用」,第四版,雙葉書廊有限公司。
– 唐麗英、王春和(2013),「從範例學MINITAB統計分析與應用」,博碩文化公司。
– 唐麗英、王春和(2008),「SPSS 統計分析 14.0 中文版」,儒林圖書公司。
– 唐麗英、王春和(2007),「Excel 2007統計分析」,第二版,儒林圖書公司。
– 唐麗英、王春和(2005),「STATISTICA6.0與基礎統計分析」,儒林圖書公司。
– 陳順宇(2004),「統計學」,第四版,華泰書局。
– 彭昭英、唐麗英(2010),「SAS123」,第七版,儒林圖書公司。

統計學(一)唐麗英老師上課講義 2
隨機變數的兩種型式

1) 定義:離散型隨機變數 (Discrete Random Variable)


– 離散型隨機變數為計數值的隨機變數。
– 例:生產線上某次抽檢之不良品的數目

2) 定義:連續型隨機變數 (Continuous Random Variable)


– 連續型隨機變數為連續值的隨機變數。
– 例:厚度、重量與長度

統計學(一)唐麗英老師上課講義 3
隨機變數的兩種型式

• 例1 : Each of the following experiments results in one


value of the random variable (one measurement).
1. State whether the random variable is a discrete or continuous.
2. Determine, at least in principle, all possible values of the
random variable.
a) The number of the leaves on a tree.
b) The time required to read the book “How to lie with
Statistics”
c) The number of women in a jury of 12.
d) The speed of a passing car.
e) The number of heads observed when flip a coin two times.
f) The sum of the two numbers that occur when roll a pair of
fair dice one time.
統計學(一)唐麗英老師上課講義 4
(Cumulative) Distribution Function (c.d.f.)

• Def: The (Cumulative) Distribution Function


(簡稱c.d.f. or d.f.)累加函數
– The distribution function (c.d.f.) of a random variable X is
defined to be

𝐹𝑋 𝑡 = 𝑃 𝑋 ≤ 𝑡 𝑓𝑜𝑟 −∞≤𝑡 ≤∞

Remark:
– If X is a discrete R.V., then 𝐹𝑋 𝑡 = 𝑥≤𝑡 𝑃(𝑋 = 𝑡)
(i.e. 𝐹𝑋 𝑡 是一累積機率函數)

統計學(一)唐麗英老師上課講義 5
Example
(Cumulative) Distribution Function (c.d.f.)

• 例2 :
– Suppose a hat contains four slips of paper; each slip bears the
number 1, 2, 3 and 4. One slip is drawn from the hat without
looking. Let X be the number on the slip that is drawn.

1) What is the probability function of X ?


2) What is the distribution function of X ?
3) Graph the distribution function of X.

統計學(一)唐麗英老師上課講義 7
(Cumulative) Distribution Function (c.d.f.)

• Properties or Requirements of F(x)


1) If 𝑎 < 𝑏, 𝑡ℎ𝑒𝑛 𝐹 𝑎 ≤ 𝐹 𝑏
(i.e. F(x) is a monotone nondecreasing function.單調非減函數)

2) 𝑙𝑖𝑚 𝐹𝑋 𝑡 = 0
𝑡→−∞
3) 𝑙𝑖𝑚 𝐹𝑋 𝑡 = 1
𝑡→∞
4) 𝐹𝑋 𝑡 is a right continuous function. (右連續函數)
(i.e., 𝑙𝑖𝑚 𝐹 𝑡 + ℎ = 𝐹 𝑡 𝑓𝑜𝑟 𝑎𝑛𝑦 𝑡 𝑎𝑛𝑑 ℎ > 0)
ℎ→0

Remarks: We may use the c.d.f. , FX(t), to evaluate the


probability that X lies in a particular interval.
統計學(一)唐麗英老師上課講義 8
(Cumulative) Distribution Function (c.d.f.)

• 例3 : Show that 𝑃 𝑎 < 𝑋 ≤ 𝑏 = 𝐹𝑋 𝑏 − 𝐹𝑋 𝑎


Proof:

• 例4 : Show that 𝑃 𝑋 < 𝑏 = 𝑙𝑖𝑚 𝐹(𝑏 − ℎ) .


ℎ→0
Proof:

• Note:
If X is a discrete R.V., then 𝑃 𝑋 ≤ 𝑏 ≠ 𝑃 𝑋 < 𝑏 . Why ?

統計學(一)唐麗英老師上課講義 9
(Cumulative) Distribution Function (c.d.f.)

• 例5 : Verify that
 0 t  2 
 1 / 3  2  t  1
 
Fy (t )   7 / 12 1  t  5 
11 / 12 5  t  11 
 
 1 11  t 

is a distribution function and specify the probability function for Y.

• Use it to compute P(-1 < Y < 2)

統計學(一)唐麗英老師上課講義 10
The Density Function for a
Continuous Random Variable

統計學(一)唐麗英老師上課講義 11
Continuous Random Variable

• Def: Continuous Random Variable


– X is a continuous random variable if its distribution function,
FX(t), is a continuous function of X, for −∞ < 𝒕 < ∞ .

– For a continuous R.V. X, the role of the probability function


is taken by a probability density function, f(x).

統計學(一)唐麗英老師上課講義 12
The Density Function for a Continuous R.V.

• Def: The Probability Density Function of a Continuous R.V.


– Let X be a continuous random variable with distribution
function,
– F(x) = P(X≤x). The probability density function for X is

𝑑𝐹(𝑥)
f(x) = = 𝐹′(𝑥)
𝑑𝑥

– The range for a continuous R.V. X is Rx = {x|f(x)≥0}.

統計學(一)唐麗英老師上課講義 13
Example
The Density Function for a Continuous R.V.

• The properties of the probability density function, f(x):


1) 𝑓 𝑥 ≥ 0

2) −∞
𝑓 𝑥 𝑑𝑥 = 1

• Remark:
– If X is a continuous R.V. with a density function f(x), then
for any a < b the probability that X falls in the interval (a, b)
is the area under the density function between a and b:

𝑏
𝑃 𝑎≤𝑋≤𝑏 = 𝑎
𝑓 𝑥 𝑑𝑥

統計學(一)唐麗英老師上課講義 15
The Density Function for a Continuous R.V.

• Remark:
– If X is a continuous R.V., then the probability that X takes on
any particular value is 0:

𝑃 𝑋=𝑡 =0

– If X is a continuous R.V., then

𝑃 𝑎 ≤ 𝑋 ≤ 𝑏 = 𝑃 𝑎 ≤ 𝑋 < 𝑏 = 𝑃 𝑎 < 𝑋 ≤ 𝑏 = 𝑃(𝑎 < 𝑋 < 𝑏)

Note : this is not true for a discrete R.V.

統計學(一)唐麗英老師上課講義 16
The Density Function for a Continuous R.V.

• Remark:
– The c.d.f. can also be defined as

𝑡
𝐹𝑋 𝑡 = 𝑃 𝑋 ≤ 𝑡 = −∞
𝑓 𝑥 𝑑𝑥.

– The c.d.f. can be used to evaluate the probability that X falls


in an interval:

𝑏 𝑎
𝑃 𝑎 ≤ 𝑋 ≤ 𝑏 = 𝐹𝑋 𝑏 − 𝐹𝑋 𝑎 = 𝑓 𝑥 𝑑𝑥 − 𝑓 𝑥 𝑑𝑥
−∞ −∞

統計學(一)唐麗英老師上課講義 17
The Density Function for a Continuous R.V.

• Example 6: Verify that

0 , 𝑡<0
𝐹𝑋 𝑡 = 𝑡 , 0≤𝑡≤1
1 , 𝑡>1

is a distribution function and derive the density function for X.

• Use it to compute P(1/4 < X < 3/4)

統計學(一)唐麗英老師上課講義 18
The Density Function for a Continuous R.V.

• 例7 :

Given Y has probability density function

1, 99 < 𝑦 < 100


𝑓 𝑦 =
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒

derive FY(t).

統計學(一)唐麗英老師上課講義 19
Expected Values and Summary
Measures

統計學(一)唐麗英老師上課講義 20
Expected Value

• Measure of the Center of a probability Function


(衡量機率函數”重心”之指標)
– Mean or the Expected Value
• Recall : The Expected Value of a Discrete Random Variable
– If X is a discrete R.V. with the probability mass function p(x), the
Expected Value of X, denote by E(X) or μX (Greek letter mu), is

𝐸 𝑋 = 𝜇𝑋 = 𝑥‧𝑝(𝑥)
𝑎𝑙𝑙 𝑥

provide X ‧p x < ∞ . If the sum diverges, the expectation is undefined.


Note: E X = μX is the balancing point of the probability function

統計學(一)唐麗英老師上課講義 21
Expected Value

• Def : The Expected Value of a Continuous Random Variable


– If X is a continuous R.V. with the density function f(x), the
Expected Value of X, is

𝐸 𝑋 = 𝜇𝑋 = 𝑥 ‧𝑓 𝑥 𝑑𝑥
−∞

provided x ‧f x dx < ∞. If the integral diverges, the expectation is undefined.

• Remark :
– E(X) is a weighted average of all possible value of X with
each value weighted by it associated probability.

統計學(一)唐麗英老師上課講義 22
Variability of a Probability Function

• Measure of the variability of a Probability Function


(衡量機率函數”變異”之指標)
– Variance or Standard Deviation

• Def : The Variance and Standard Deviation of any R.V. X

Var(X) = σ2 = E[(X − μ)2 ]= E X 2 − μ2

St. D.(X) = σ = σ2

統計學(一)唐麗英老師上課講義 23
Definition and Theorem

• Def : Let X be a continuous R.V. with the density function f(x), and
let g(X) be any function of X. Then the expected value of g(X) is

E g(X) = g(X) ‧f x dx
−∞

• Theorem 5.1: Let X be a continuous R.V., and let g1(X), g2(X),…,


gk(X) be k functions of X. Then,

a) E(C)= C , where C is any constant.


b) E[C‧X]=C‧E[X]
c) E[g1(X)+g2(X)+…+gk(X)] = E[g1(X)]+ E[g2(X)]+…+ E[gk(X)]

統計學(一)唐麗英老師上課講義 24
Definition and Theorem

• Theorem 5.2 : Let X be a continuous R.V. with E(X)=m. Then,

σ2 =E[(X − μ)2 ]= E X 2 − μ2

• Theorem 5.3 : Let X be a continuous R.V. (discrete or continuous)


with E(X)=μ𝐗 and Var(X)= σ2𝐗 . If Y=aX+b, where a and b are any
constants, then

a) μY = aμX + b
b) σ2Y =a2 σ2X
c) σY = a ‧σX

統計學(一)唐麗英老師上課講義 25
Expected Values and Summary Measures for
Continuous R.V.

• Example 1 : Suppose E(X)=5, Var(X)=10, Find


a) E(3X-5)
b) Var(3X-5)

統計學(一)唐麗英老師上課講義 26
Expected Values and Summary Measures for
Continuous R.V.

• Example 2:
– Suppose you agree to meet a friend (who is generally late) at
a specified time. Assume that you arrive on time and let the
random variable T be the length of time you must wait for
you friend. If the density function for T is assume to be

1
f t = , t ≧ 1 (minute)
t2

Find the time you should expect to wait.

統計學(一)唐麗英老師上課講義 27
Expected Values and Summary Measures for
Continuous R.V.

• Example 3:
– Let X be a continuous R.V. with the density function
f(x) = 2x, 0 < x <1
Find
a) E(X)
b) E(X2), Var(X), St.D.(X)

統計學(一)唐麗英老師上課講義 28
Expected Values and Summary Measures for
Continuous R.V.

• Example 4:
– If T is a continuous R.V. with c.d.f.
FT (t) = 0 t<0
= t 0 ≦ t ≦1
=1 t>1
Find
a) mean, E(T)
b) Var(T) and St.D.(T)

統計學(一)唐麗英老師上課講義 29
課本例 Example 5.5

• Let Y be a continuous random variable with probability


density function

 e y / 2
 if 0  y  
f ( y)   2
 0 elsewhere

Find the mean, variance and standard deviation of Y

統計學(一)唐麗英老師上課講義 30
課本例 Example 5.5

Solution :
  ye  y / 2
  E (Y )   yf ( y )dy   dy
 0 2
ay
e
  ye ay dy  2 (ay  1)
a
1
By substituti ng a   , we obtain
2
 ye  y / 2 1
 dy  (4)  2
0 2 2

統計學(一)唐麗英老師上課講義 31
課本例 Example 5.5

To find σ 2 , we will first find E(Y 2 ) by making use of the general formula
m ay
y e m m 1 ay
  y e dy 
m ay
  y e dy
a a
1
Then with a   and m  2, we ca write
2
  y 2e  y / 2 1
E (Y 2 )   y 2 f ( y )dy   dy  (16)  8
 0 2 2

σ 2  E(Y 2 )   2  8  2 2  4

σ  σ2  4  2

統計學(一)唐麗英老師上課講義 32
課本例 Example 5.6

Find P(μ  2σ  Y  μ  2σ) from Example 5.5


Solution :
We showed in Example 5.5 that   2 and   2
Therefore, μ-2σ  2-4  -2 and μ  2σ  6, then

P(μ  2σ  Y  μ  2σ)
6 6e y / 2
 f ( y )dy   dy
0 0 2
 e 
y/2 6
0  1  e 3
 1  0.049787  0.950213

統計學(一)唐麗英老師上課講義 33
連續型機率分佈

統計學(一)唐麗英老師上課講義 34
連續型機率分佈

• 常用的連續型機率分佈
1) 常態分佈(Normal Distribution)
2) 對數常態分佈(Lognormal Distribution)
3) 齊一分佈(Uniform Distribution)
4) 珈瑪分佈(Gamma Distribution)
5) 指數分佈(Exponential Distribution)
6) 韋伯分佈(Weibull Distribution)
7) 貝塔分佈(Beta Distribution)

統計學(一)唐麗英老師上課講義 35
常態分佈
(Normal Distribution)

統計學(一)唐麗英老師上課講義 36
常態分佈(Normal Distribution)

• 何謂常態分佈?
自然界所觀察到的許多連續型隨機變數常呈鐘形分佈,如
下圖所示。此鐘形分佈又稱為常態分佈(或高斯分佈)。

Source : http://en.wikipedia.org/wiki/Carl_Friedrich_Gauss
統計學(一)唐麗英老師上課講義 37
常態分佈(Normal Distribution)

• 常態機率分佈

1  ( x   ) 2 / 2 2
f ( x)  e ,  x  
2 
其中
• π = Mathematical constant approximated by 3.1416
• e = Mathematical constant approximated by 2.718
• μ = Population mean or the true mean
• σ2 = Population variance

It is denoted by N (  ,  )

統計學(一)唐麗英老師上課講義 38
常態分佈(Normal Distribution)

• 常態曲線
– 原始資料之 μ 與 σ 值不同時,其常態曲線之變化亦不同。

每一常態分佈,可以 N(μ,σ) 表之。

統計學(一)唐麗英老師上課講義 39
常態分佈(Normal Distribution)

• N(μ,σ) 的特性
1) 對稱於 μ。
2) 隨機變數 x 之值可由 -∞ 至 +∞ 。
3) 鐘形分佈。
4) 曲線下之面積為 1 。
5) 集中趨勢的三個量數(平均數、中位數及眾數)是一致的。

平均數=中位數=眾數
統計學(一)唐麗英老師上課講義 40
常態分佈(Normal Distribution)

• μ 與 σ 如何影響常態曲線
1) 下圖是三條有相同平均數μ但不同標準差 (σ1,σ2,σ3,
σ1<σ2<σ3) 之常態曲線

由此圖中你觀察到什麼?

統計學(一)唐麗英老師上課講義 41
常態分佈(Normal Distribution)

2) 下圖是三條有相同標準差σ但不同平均數 (μ1,μ2,μ3,
μ1<μ2<μ3) 之常態曲線

由此圖中你觀察到什麼?
由1)與2)可知: - 位置參數(Location parameter)
- 變異參數(Dispersion parameter)

統計學(一)唐麗英老師上課講義 42
如何使用常態機率表

• 何謂標準常態分佈?
– 平均數為0、標準差為1之常態分佈稱為標準常態分佈,
以 N(0,1) 表之。
– 例:令Z為 N(0,1) 之隨機變數,亦即Z~N(0,1),其常態曲線如下圖。
則,P(2≦Z≦3) = 曲線下介於 與 之間的面積=陰影部份
之面積

統計學(一)唐麗英老師上課講義 43
常態分佈(Normal Distribution)

• 如何利用表查出標準常態之機率
– 下頁表為標準常態分佈 N(0, 1) 之機率表。

– 設 Z~N(0, 1),請利用表找出下列之機率:
1) P(0≦Z≦1.96)=
2) P(-1.81≦Z≦1.81)=
3) P(0.53≦Z≦2.42)=
4) P(Z≧-0.36)=

統計學(一)唐麗英老師上課講義 44
利用表求
P(0≦Z≦1.96) =
利用表求
P(-1.81≦Z≦1.81)=
利用表求
P(0.53≦Z≦2.42)=
利用表求
P(Z≧-0.36)=
常態分佈(Normal Distribution)

– 設 Z~N(0, 1),請利用表 C 值:
1) P(Z < C) = 0.95
2) P(Z > C) = 0.7019
3) P(Z > C) = 0.1379
4) P(Z < C) = 0.0110

統計學(一)唐麗英老師上課講義 50
利用表求 C
P(Z < C) = 0.95
利用表求 C
P(Z > C) = 0.7019
利用表求 C
P(Z > C) = 0.1379
利用表求 C
P(Z < C) = 0.0110
常態分佈(Normal Distribution)

• 如何求出一般常態變數之機率
– 作法:先將其標準化(Standardize),轉換成標準
常態變數後,再求其機率。標準化之公式如下:
X 
Z ,其中 Z~N( 0 ,1 )

• 例:設 X~N(10,2) ,平均數=10,標準差=2


a) 請找出 X 介於 11 與 13.6 間之機率
b) 請找出 X 大於 12 之機率

統計學(一)唐麗英老師上課講義 55
X~N(10,2),利用右表
求 P(11≦X≦13.6) = ?
P (11  X  13.6)
11  10 13.6  10
 P( Z )
2 2
 P (0.5  Z  1.8)
X~N(10,2),利用右表
求 P(X > 12) = ?
P ( X  12)
12  10
 P( Z  )
2
 P ( Z  1)
 1  P ( Z  1)
常態分佈(Normal Distribution)

• 例:
– 假設某產品之長度資料呈常態分佈,其平均數為38.5公
分,標準差為2.5公分。若此產品之規格界限為38±2,請
問此產品之不良率為何?

統計學(一)唐麗英老師上課講義 58
規格界限為38±2
長度 X~N(38.5,2.5),
良率 P(36≦X≦40) = ?

P (36  X  40)
36  38.5 40  38.5
 P( Z )
2 .5 2 .5
 P (1  Z  0.6)
 0.3413  0.2257
 0.567

不良率= 1-良率
= 1-0.567
= 0.433
檢查數據是否呈常態分佈

統計學(一)唐麗英老師上課講義 60
檢查數據是否呈常態分佈

1) 利用直方圖
– 只要出現鐘形分佈圖形,即判定數據呈常態分佈
2) 利用常態機率圖
– 只要圖形呈直線,即判定數據呈常態分佈
3) 利用統計檢定
– 只要顯著度 p-value > 0.05,即判定數據呈常態分佈
a. 卡方適配度檢定(Chi-Square Goodness-of-fit Test)
b. K-S檢定(Kolmogorov-Smirnov test)
c. A-D檢定(Anderson-Darling Test)

統計學(一)唐麗英老師上課講義 61
檢查數據是否呈常態分佈

• 下列 75 筆數據為某模具上的孔徑尺寸值(mm),請檢查數據
是否呈常態分佈?
0.88 0.87 1.09 1.10 1.20
0.95 0.69 1.15 1.12 0.77
0.72 0.89 1.00 0.94 0.79
1.39 0.96 0.93 1.15 1.10
0.81 1.15 1.32 1.34 1.28
0.88 1.26 1.24 0.98 1.13
0.94 1.18 1.07 0.74 1.06
1.12 0.85 1.03 1.28 0.83
0.69 0.87 0.89 1.16 0.76
0.95 0.76 1.09 0.99 0.67
0.98 0.95 1.04 1.40 1.10
1.29 0.64 0.95 0.95 1.42
1.54 1.01 0.72 1.06 0.88
0.87 0.95 1.21 0.96 1.04
1.09 0.96 1.02 0.99 0.97

統計學(一)唐麗英老師上課講義 62
繪製直方圖

Histogram of SPI
Normal
20 Mean 1.013
StDev 0.1941
N 75

15
Frequency

10

0
0.6 0.8 1.0 1.2 1.4
SPI

統計學(一)唐麗英老師上課講義 63
繪製常態機率圖

Probability Plot of SPI


Normal
99.9
Mean 1.013
StDev 0.1941
99
N 75
AD 0.318
95 P-Value 0.530
90
80
70
Percent

60
50
40
30
20
10
5

0.1
0.50 0.75 1.00 1.25 1.50 1.75
SPI

統計學(一)唐麗英老師上課講義 64
連續型機率分佈

• 常用的連續型機率分佈
1) 常態分佈(Normal Distribution)
2) 對數常態分佈(Lognormal Distribution)
3) 齊一分佈(Uniform Distribution)
4) 珈瑪分佈(Gamma Distribution)
5) 指數分佈(Exponential Distribution)
6) 韋伯分佈(Weibull Distribution)
7) 貝塔分佈(Beta Distribution)

統計學(一)唐麗英老師上課講義 65
對數常態分佈
(Lognormal Distribution)

統計學(一)唐麗英老師上課講義 66
對數常態分佈 (Lognormal Distribution)

• The log-normal distribution occurs when the logarithm of a random


variable has a normal distribution.
• X is called a log-normal random variable if and only if

 1 (ln x  ) 2

 1 2 2
x  0,   0
f ( x)   2  x e

 0 otherwise

Where ln x is the natural logarithm of X

統計學(一)唐麗英老師上課講義 67
對數常態分佈 (Lognormal Distribution)

• The Mean and the Variance of Log-normal Distribution


1
 2
 e 2
 e
2 2   2
(e 2
 1)

α = 0 ,β = 1

統計學(一)唐麗英老師上課講義 68
對數常態分佈 (Lognormal Distribution)

• 例1
The current gain of certain transistors is measured in units
which make it equal to the logarithm of 𝐈𝟎 /𝐈𝐢 , the ratio of the
output to the input current. If it is normally distributed with
μ = 2 and σ2 = 0.01, find
1) The probability that 𝐈𝟎 /𝐈𝐢 will take on a value between 6.1
and 8.2.
2) The mean and the variance of the distribution of 𝐈𝟎 /𝐈𝐢 .

統計學(一)唐麗英老師上課講義 69
齊一分佈
(Uniform Distribution)

統計學(一)唐麗英老師上課講義 70
齊一分佈 (Uniform Distribution)

• The continuous random variable X is called a uniform random variable if


and only if X is uniformly distributed over the interval (α, β), i.e., the
density for X is
 1
  x
f ( x)     
 0 otherwise

• The Mean and Variance for the Uniform R.V.


f (x)
 
E( X )   
2
1
(   ) 2
 
Var ( X )   2 
12
x
 

統計學(一)唐麗英老師上課講義 71
齊一分佈 (Uniform Distribution)

• 例2
If X is uniformly distributed over (0, 10), calculate the
probability that
a) X < 3
b) X > 6
c) 3 < X < 8

統計學(一)唐麗英老師上課講義 72
齊一分佈 (Uniform Distribution)

• 例3
Buses arrive at a specified stop at 15-minute intervals starting
at 7, 7:15, 7:30, 7:45, and so on. If a passenger arrives at the
stop at a time that is uniformly distributed between 7 and 7:30,
find the probability that he waits

a) less than 5 minutes for a bus

b) More than 10 minutes for a bus

統計學(一)唐麗英老師上課講義 73
課本例 Example 5.7

• Suppose the research department of a steel manufacturer believes that


one of the company’s rolling machines is producing sheets of steel of
varying thickness. The thickness Y is a uniform random variable with
values between 150 and 200 mm. Any sheets less than 160 mm thick must
be scrapped, since they are unacceptable to buyer.

a) Calculate the mean and standard deviation of Y, the thickness of the sheets
produced by this machine. Then graph the probability distribution, and show
the mean on the horizontal axis. Also show 1 and 2 standard deviation
intervals around the mean.
b) Calculate the fraction of steel sheets produced by this machine that have to
be scrapped.

統計學(一)唐麗英老師上課講義 74
課本例 Example 5.7

Solution :
a)   150  200
   175 (mm)
2 2
(    ) 2    200  150
    14.43 (mm)
12 12 12

The uniform probability distribution is

1 1 1
f ( y)   
   200  150 50

統計學(一)唐麗英老師上課講義 75
課本例 Example 5.7

Solution :
1 1
b) P (Y  160)  (160  150)  ( ) 
50 5
That is, 20% of all the sheets made by this machine must be scrapped.

統計學(一)唐麗英老師上課講義 76
珈瑪分佈
(Gamma Distribution)

統計學(一)唐麗英老師上課講義 77
珈瑪分佈 (Gamma Distribution)

• Several important probability densities (such as Exponential, Weibull)


are special cases of the gamma distribution.
• Def: X is called a Gamma random variable if and only if

 1 
x
  x  1 
e x  0,   0,   0
f ( x)    ( )

 0 otherwise

Where ( ) is the value of the gamma function

• Gamma function

( )   x 1e  x dx where   0
0

統計學(一)唐麗英老師上課講義 78
珈瑪分佈 (Gamma Distribution)

• Properties of the Gamma function


1) Γ α < ∞, 𝑖𝑓 𝛼 > 0
2) Γ α = α − 1 Γ α − 1 , if α > 1
3) Γ α = α − 1 !, if α is a positive integer
• The Mean and Variance for the Gamma R.V
– 𝐸 𝑋 = 𝛼𝛽
– 𝑉𝑎𝑟 𝑋 = 𝛼𝛽 2 α=1,β=1

α=3,β=1
α=5,β=1

統計學(一)唐麗英老師上課講義 79
珈瑪分佈 (Gamma Distribution)

• The Chi-Square Probability Distribution


– A Chi-square random variable is a gamma-type random variable X with
   / 2 and   2

f ( x)  c( x) ( / 2 ) 1 e  x / 2 (0  x 2   )
1
where c   / 2
2 ( / 2)

The parameter  is called the number of degrees of freedom.

– The mean and variance of a chi-square random variable are:


  and  2  2

統計學(一)唐麗英老師上課講義 80
課本例 Example 5.12

• From past experience, a manufacturer knows that the relative


frequency distribution of the length of time Y (in months)
between major customer product complaints can be modeled by
a gamma density function with α=2 and β=4. Fifteen months
after the manufacturer tightened its quality control requirements,
the first complaint arrived. Does this suggest that the mean time
between major customer complaints may have increased ?

統計學(一)唐麗英老師上課講義 81
課本例 Example 5.12

• Solution
    (2)(4)  8
 2   2  (2)(4) 2  32
  5 .7
Since Y=15 month lies barely more than 1 standard deviation
beyond the mean (μ+σ = 8 + 5.7 = 13.7 months), we would not
regard 15 months as an unusually large vale of Y. Consequently,
we would conclude that there is insufficient evidence to
indicate that the company’s new quality control program has
been effective in increasing the mean time between complaints.

統計學(一)唐麗英老師上課講義 82
指數分佈
(Exponential Distribution)

統計學(一)唐麗英老師上課講義 83
指數分佈 (Exponential Distribution)

• X is called an exponential random variable if and only if

 1 x
 x  0 and   0
f ( x)    e
 0
 otherwise

Exponential distribution is a special case of Gamma distribution with α = 1

• The Mean and Variance for the Uniform R.V.


– 𝐸 𝑋 =𝛽
– 𝑉𝑎𝑟 𝑋 = 𝛽 2

統計學(一)唐麗英老師上課講義 84
指數分佈 (Exponential Distribution)

• 例5
– A nuclear engineer observing a reaction measures the time
intervals between the emissions of beta particles.
0.894 0.991 0.061 0.186 0.311 0.817 2.267 0.091 0.139 0.083
0.235 0.424 0.216 0.579 0.429 0.612 0.143 0.055 0.752 0.188
0.071 0.159 0.082 1.653 2.010 0.158 0.527 1.033 2.863 0.365
0.459 0.431 0.092 0.830 1.718 0.099 0.162 0.076 0.107 0.278
0.100 0.919 0.900 0.093 0.041 0.712 0.994 0.149 0.866 0.054

統計學(一)唐麗英老師上課講義 85
指數分佈 (Exponential Distribution)

• These decay times (in milliseconds) are presented as a


histogram in the following figure
2.0

1.5
Density

1.0

0.5

0.0
0.0 0.5 1.0 1.5 2.0 2.5 3.0
Milliseconds

統計學(一)唐麗英老師上課講義 86
指數分佈 (Exponential Distribution)

• Remark:
– It can be shown that in connection with Poisson processes
the waiting time between successive arrivals has an
exponential distribution.

– More specifically, it can be shown that if in a Poisson


process the mean arrival rate (average number of arrivals
per unit time) is 𝛌 = 𝟏/𝛃, the time until the first arrival,
or the waiting time between successive arrivals, has an
exponential distribution with 𝟏/𝛃.

統計學(一)唐麗英老師上課講義 87
指數分佈 (Exponential Distribution)

• 例6
– If on the average three trucks arrived per hour to be unloaded
at a warehouse, what are the probabilities that the time
between the arrival of successive trucks will be
a) Less than 5 minutes
b) At least 45 minutes
c) What is the expected waiting time between successive
arrivals?

統計學(一)唐麗英老師上課講義 88
本單元結束

統計學(一)唐麗英老師上課講義 89

You might also like