1) 집단의 등분산성 검정
[코드]
import pingouin as pg
pg.homoscedasticity(dv = 'score', group = 'school', data = schools_df)
[결과 판별]
2) 일원 분산 분석
[코드]
pg.anova(dv = 'score', between = 'school', data = schools_df, detailed=True)
[코드]
pg.welch_anova(dv = 'score', between = 'school', data = schools_df)
[결과 판별]
3) 사후 검정
[코드]
pg.pairwise_tukey(dv = 'score', between = 'school', data = schools_df)
[코드]
pg.pairwise_gameshowell(dv = 'score', between = 'school', data = schools_df)
[결과 판별]
[코드]
import pandas as pd
import pingouin as pg
auction = pd.read_csv('auction.csv')
print(auction.shape)
print(auction.head(3))
print(auction.tail(3))
[결과]
auction.shape:
(10681, 9)
auction.head(3):
auction.tail(3):
[코드]
pg.homoscedasticity(dv = 'openbid', group = 'item', data = auction)
[결과]
W | pval | equal_var | |
---|---|---|---|
levene | 471.159381 | 8.101034e-197 | False |
: item별 평균 open bid가 통계적으로 유의미하게 차이나는지 알아보고자 함.
[코드]
watch = auction[auction['item']=='Cartier wristwatch']['openbid']
PDA = auction[auction['item']=='Palm Pilot M515 PDA']['openbid']
console = auction[auction['item']=='Xbox game console']['openbid']
print('watch 평균 가격:', watch.mean(), 'watch 표준 편차:', watch.std())
print('PDA 평균 가격:', PDA.mean(), 'PDA 표준 편차:', PDA.std())
print('console 평균 가격:', console.mean(), 'console 표준 편차:', console.std())
[결과]
watch 평균 가격: 153.44
watch 표준 편차: 360.69
PDA 평균 가격: 31.56
PDA 표준 편차: 60.37
console 평균 가격: 25.48
console 표준 편차: 32.68
[코드]
pg.welch_anova(dv = 'openbid', between = 'item', data = auction)
[결과]
Source | ddof1 | ddof2 | F | p-unc | np2 | |
---|---|---|---|---|---|---|
0 | item | 2 | 4259.671584 | 136.580677 | 3.221606e-58 | 0.080984 |
[코드]
pg.pairwise_gameshowell(dv = 'openbid', between = 'item', data = auction)
[결과]
A | B | mean(A) | mean(B) | diff | se | T | df | pval | hedges | |
---|---|---|---|---|---|---|---|---|---|---|
0 | Cartier wristwatch | Palm Pilot M515 PDA | 153.437184 | 31.560857 | 121.876327 | 8.199491 | 14.863889 | 1988.208564 | 0.001 | 0.387861 |
1 | Cartier wristwatch | Xbox game console | 153.437184 | 25.483404 | 127.953779 | 8.185081 | 15.632562 | 1974.279546 | 0.001 | 0.460433 |
2 | Palm Pilot M515 PDA | Xbox game console | 31.560857 | 25.483404 | 6.077452 | 0.997896 | 6.090267 | 8587.124045 | 0.001 | 0.139500 |
It was a quiet Tuesday evening, and I was in the mood for something different. I decided to log into my blackjack account, feeling a bit adventurous. With a modest $50 to start, I chose to play at a high-stakes table for the first time. The atmosphere https://millionzcasino-france.com was intense, with the potential for big wins—or big losses. My initial hands were nerve-wracking, as I watched my balance fluctuate dramatically. Despite the tension, I held my ground and made a bold move: a $100 bet on a hand that I felt confident about. The cards were dealt, and my heart raced as I drew a blackjack. The payout was substantial, and I felt a rush of exhilaration. That single hand turned my $50 into $800. The gamble was risky, but it paid off handsomely, proving that sometimes, taking a leap can lead to remarkable rewards.