poisson_distribution
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
poisson_distribution [2019/11/05 08:01] – hkimscil | poisson_distribution [2019/11/05 08:03] (current) – hkimscil | ||
---|---|---|---|
Line 12: | Line 12: | ||
Lambda를 알고 있을 때, 사건이 x만큼 발생할 확률은 어떨까에 대한 답은 아래와 같이 구한다. 여기서 e는 2.718282 의 상수이다. | Lambda를 알고 있을 때, 사건이 x만큼 발생할 확률은 어떨까에 대한 답은 아래와 같이 구한다. 여기서 e는 2.718282 의 상수이다. | ||
+ | |||
+ | |||
+ | < | ||
+ | e <- exp(1) | ||
+ | e | ||
+ | </ | ||
+ | < | ||
+ | > e <- exp(1) | ||
+ | > e | ||
+ | [1] 2.718282 | ||
+ | </ | ||
+ | |||
+ | |||
\begin{eqnarray*} | \begin{eqnarray*} | ||
P(X = x) & = & \frac {\lambda^{x} e^{-\lambda}}{x!}, | P(X = x) & = & \frac {\lambda^{x} e^{-\lambda}}{x!}, | ||
\end{eqnarray*} | \end{eqnarray*} | ||
- | ===== e.g., ===== | + | |
R에서는 '' | R에서는 '' | ||
Line 42: | Line 55: | ||
</ | </ | ||
- | ===== e.g. ppois ===== | ||
한달 평균 경부고속도로에서 자동차 사고가 날 수는 30이라고 한다. 그렇다면 이번 달 사고가 28번 이하일 확률은? | 한달 평균 경부고속도로에서 자동차 사고가 날 수는 30이라고 한다. 그렇다면 이번 달 사고가 28번 이하일 확률은? | ||
Line 69: | Line 81: | ||
[53] 4.242949e-05 2.357194e-05 1.285742e-05 6.887904e-06 | [53] 4.242949e-05 2.357194e-05 1.285742e-05 6.887904e-06 | ||
[57] 3.625212e-06 1.875110e-06 9.534457e-07 4.767229e-07 | [57] 3.625212e-06 1.875110e-06 9.534457e-07 4.767229e-07 | ||
- | > plot(dpois(x=x, | + | > plot(dpois(x=x, |
- | > plot(dpois(x=x, | + | |
> dpois(x=30, lambda=30) | > dpois(x=30, lambda=30) | ||
[1] 0.07263453 | [1] 0.07263453 | ||
> </ | > </ | ||
- | + | {{: | |
- | < | + | |
- | e <- exp(1) | + | |
- | e | + | |
- | </ | + | |
- | < | + | |
- | > e <- exp(1) | + | |
- | > e | + | |
- | [1] 2.718282 | + | |
- | </ | + | |
\begin{eqnarray*} | \begin{eqnarray*} |
poisson_distribution.txt · Last modified: 2019/11/05 08:03 by hkimscil