b:head_first_statistics:poisson_distribution
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| b:head_first_statistics:poisson_distribution [2025/10/06 21:52] – [Broken Cookies case] hkimscil | b:head_first_statistics:poisson_distribution [2025/10/06 23:42] (current) – [Poisson Distribution] hkimscil | ||
|---|---|---|---|
| Line 46: | Line 46: | ||
| \end{eqnarray*} | \end{eqnarray*} | ||
| + | < | ||
| + | > dpois(3, 2) | ||
| + | [1] 0.180447 | ||
| + | > | ||
| + | |||
| + | </ | ||
| ====== What does the Poisson distribution look like? ====== | ====== What does the Poisson distribution look like? ====== | ||
| Line 354: | Line 360: | ||
| </ | </ | ||
| - | ===== Exercise ===== | + | ====== Exercise |
| <WRAP box> | <WRAP box> | ||
| Here are some scenarios. Your job is to say which distribution each of them follows, say what the expectation and variance are, and find any required probabilities. | Here are some scenarios. Your job is to say which distribution each of them follows, say what the expectation and variance are, and find any required probabilities. | ||
| Line 378: | Line 384: | ||
| \end{eqnarray*} | \end{eqnarray*} | ||
| - | r을 이용한다면 '' | + | r을 이용한다면 '' |
| < | < | ||
| > pbinom(q=2, 10, 0.3) | > pbinom(q=2, 10, 0.3) | ||
| [1] 0.3827828 | [1] 0.3827828 | ||
| - | > </ | + | > |
| + | > sum(dbinom(0: | ||
| + | [1] 0.3827828 | ||
| + | > | ||
| + | |||
| + | </ | ||
| 손으로 계산을 한다고 하면, | 손으로 계산을 한다고 하면, | ||
| Line 389: | Line 400: | ||
| \begin{eqnarray*} | \begin{eqnarray*} | ||
| - | P(X = 0) & = & {10 \choose 0} * 0.3^0 * 0.7^10 \\ | + | P(X = 0) & = & {10 \choose 0} * 0.3^0 * 0.7^{10} \\ |
| & = & 1 * 1 * 0.028 \\ | & = & 1 * 1 * 0.028 \\ | ||
| & = & 0.028 | & = & 0.028 | ||
| Line 420: | Line 431: | ||
| \begin{eqnarray*} | \begin{eqnarray*} | ||
| P(X=0) & = & \frac {e^{-1}{1^0}}{0!} \\ | P(X=0) & = & \frac {e^{-1}{1^0}}{0!} \\ | ||
| - | & = & \frac {e^-1 * 1}{1} \\ | + | & = & \frac {e^{-1} * 1}{1} \\ |
| & = & .368 | & = & .368 | ||
| \end{eqnarray*} | \end{eqnarray*} | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | > dpois(0, 1) | ||
| + | [1] 0.3678794 | ||
| + | > | ||
| + | > ppois(0, 1) | ||
| + | [1] 0.3678794 | ||
| + | > | ||
| + | </ | ||
| <WRAP box> | <WRAP box> | ||
| Line 440: | Line 460: | ||
| & = & 0.488 | & = & 0.488 | ||
| \end{eqnarray*} | \end{eqnarray*} | ||
| + | |||
| + | < | ||
| + | > sum(dgeom(0: | ||
| + | [1] 0.488 | ||
| + | > | ||
| + | > pgeom(2, 0.2) | ||
| + | [1] 0.488 | ||
| + | > | ||
| + | |||
| + | </ | ||
| + | |||
| 기대값과 분산은 각각 $1/p$, $q/p^2$ 이므로 $5$와 $20$. | 기대값과 분산은 각각 $1/p$, $q/p^2$ 이므로 $5$와 $20$. | ||
| </ | </ | ||
b/head_first_statistics/poisson_distribution.1759787562.txt.gz · Last modified: by hkimscil
