[TIL] #1.2.1 Hypothesis Test

Bella·2021년 3월 11일
0

TIL

목록 보기
5/11

Two-side test / One-side test

Two-side test : 샘플 데이터의 평균이 X와 같다 / 같지 않다 를 검정
One-side test : 샘플 데이터의 평균이 X보다 크다 작다 / 크지 않다 작지 않다 를 검정


ttest_1samp

  • 샘플 데이터가 한 개일 때

https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_1samp.html


ttest_ind

  • 샘플 데이터가 두 개일 때

https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind.html


중복 제거

SET 이용

tree = set(tree) #집합으로 중복제거
tree = list(tree) #다시 리스트로 저장

더 알고싶은 부분

  • 중복 제거 다른 방법? (dataframe 이용, .np 이용)

참고
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_1samp.html
https://angeloyeo.github.io/2020/03/29/p_value.html
https://no17.tistory.com/189
https://towardsdatascience.com/hypothesis-testing-in-machine-learning-using-python-a0dc89e169ce

profile
Here Today, Gone Tomorrow

0개의 댓글