"Binom.test()"의 두 판 사이의 차이

25번째 줄: 25번째 줄:
* greater
* greater
<source lang='php'>
<source lang='php'>
ar_dump( stats_cdf_binomial(50-27, 50, 1-0.65, 1) );
var_dump( stats_cdf_binomial(50-27, 50, 1-0.65, 1) );
# float(0.96035885036097)
# float(0.96035885036097)
</source>
</source>

2017년 7월 3일 (월) 00:36 판

binom.test()

1 Excel

  • less
=BINOM.DIST(27, 50, 0.65, TRUE)
// 0.070961261
  • greater
=BINOM.DIST(50-27, 50, 1-0.65, TRUE)
// 0.96035885

2 PHP

  • less
var_dump( stats_cdf_binomial(27, 50, 0.65, 1) );
# float(0.070961261354415)
  • greater
var_dump( stats_cdf_binomial(50-27, 50, 1-0.65, 1) );
# float(0.96035885036097)

3 R

  • less
> binom.test(27, 50, .65, alternative="less")$p.value
[1] 0.07096126
  • greater
> binom.test(27, 50, .65, alternative="greater")$p.value
[1] 0.9603589
  • two-sided
> binom.test(27, 50, .65)$p.value
[1] 0.1051942
> binom.test(27, 50, .65, alternative="two.sided")$p.value
[1] 0.1051942

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}