常態分配

Python 機率基礎

Alexander A. Ramírez M.

CEO @ Synergy Vision

量測的建模

可能的常態量測

Python 機率基礎

成人身高範例

男性與女性身高的常態機率密度函式

Python 機率基礎

機率密度

標準常態機率密度函式

Python 機率基礎

機率密度範例

$$ $$ 標準常態機率密度,值為 -1

$$ $$ 標準常態機率密度,值為 0

Python 機率基礎

機率密度與機率

$$ $$ 標準常態機率密度

$$ $$ 以面積表示的標準常態機率

Python 機率基礎

對稱性

常態密度函式的對稱形狀

Python 機率基礎

平均數

常態密度函式的平均數

Python 機率基礎

平均數(續)

平均數為 1 的常態密度函式

Python 機率基礎

平均數(續)

平均數為 -2 的常態密度函式

Python 機率基礎

標準差

標準差為 0.64 的常態密度函式

Python 機率基礎

標準差(續)

標準差為 1 的常態密度函式

Python 機率基礎

標準差(續)

標準差為 2 的常態密度函式

Python 機率基礎

一個標準差

距平均數 1 個標準差的機率圖

Python 機率基礎

兩個標準差

距平均數 2 個標準差的機率圖

Python 機率基礎

三個標準差

距平均數 3 個標準差的機率圖

Python 機率基礎

常態抽樣

# Import norm, matplotlib.pyplot, and seaborn
from scipy.stats import norm
import matplotlib.pyplot as plt
import seaborn as sns
# Create the sample using norm.rvs()
sample = norm.rvs(loc=0, scale=1, size=10000, random_state=13)
# Plot the sample
sns.distplot(sample)
plt.show()
Python 機率基礎

常態抽樣(續)

樣本的機率密度圖

Python 機率基礎

一起來練習吧!

Python 機率基礎

Preparing Video For Download...