geometric_distributions_exercise
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
geometric_distributions_exercise [2024/10/09 13:15] – hkimscil | geometric_distributions_exercise [2024/10/09 13:37] (current) – hkimscil | ||
---|---|---|---|
Line 45: | Line 45: | ||
> sum(s) | > sum(s) | ||
[1] 0.9993446 | [1] 0.9993446 | ||
+ | > | ||
+ | </ | ||
+ | 그런데 위의 누적확률을 구하는 펑션이 있다. | ||
+ | < | ||
+ | > # pgeom(q=r-1, | ||
+ | > pgeom(r-1, p) | ||
+ | [1] 0.9993446 | ||
+ | > | ||
+ | </ | ||
+ | 그러면, 누적확률이 0.994일 때 필요한 시도횟수는 얼마일까? | ||
+ | < | ||
+ | > qgeom(0.994, | ||
+ | [1] 5 | ||
+ | > </ | ||
+ | 다른 예. 위에서 우리는 0.9993446은 r = 8일 때 (8번시도) 나오는 확률임을 알고 있다. 따라서, 답은 7+1. 만약에 0.9993446보다 큰 값을 갖을 경우는 9번이 필요하게 된다. | ||
+ | < | ||
+ | > qgeom(0.9993446, | ||
+ | [1] 7 | ||
+ | > | ||
+ | > qgeom(0.9993447, | ||
+ | [1] 8 | ||
> | > | ||
</ | </ |
geometric_distributions_exercise.1728447355.txt.gz · Last modified: 2024/10/09 13:15 by hkimscil