"SciPy 1표본 t검정"의 두 판 사이의 차이

 
19번째 줄: 19번째 줄:
* [[SciPy]]
* [[SciPy]]
* [[일표본 t검정]]
* [[일표본 t검정]]
* [[R 1표본 t검정]]


[[분류: SciPy]]
[[분류: SciPy]]
[[분류: Python 데이터 분석]]
[[분류: Python 데이터 분석]]

2020년 7월 3일 (금) 17:44 기준 최신판

1 개요[ | ]

SciPy one-sample t-test
SciPy 일표본 t검정
import scipy.stats

data = [65, 78, 88, 55, 48, 95, 66, 57, 79, 81]
mu = 75
r = scipy.stats.ttest_1samp(data, mu)
print( "t-statistic=", r.statistic )
print( "p-value=", r.pvalue )
# t-statistic= -0.783029088661
# p-value= 0.453720543562

2 같이 보기[ | ]

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