Skip to content

Instantly share code, notes, and snippets.

@kurotaky
Last active August 29, 2015 14:04
Show Gist options
  • Save kurotaky/add4d1e2647d9f91eef9 to your computer and use it in GitHub Desktop.
Save kurotaky/add4d1e2647d9f91eef9 to your computer and use it in GitHub Desktop.
t検定

t検定

今回は対応なしのt検定について学んでみましょう。

2つの平均値を比較するケース 例) テストの平均値に差があるか検定したい

  1. 仮説を立てる 帰無仮説: 2つの母平均は等しい 対立仮説: 2つの母平均は等しくない

  2. 検定統計量を設定 t

  3. 有意水準の設定(5%)

  4. 帰無仮説の棄却・採択の決定

Rでの求め方

データをセットし平均値を求める

A <- c(6,10,6,10,5,3,5,9,3,3)
B <- c(11,6,11,9,7,5,8,7,7,9)

mean(A)
mean(B)

t検定をおこなう

t.test(A,B,var.equal=TRUE)

planBCD でのA/Bテストについて

https://planbcd.zendesk.com/hc/ja/articles/201240166-planBCD%E3%81%AEA-B%E3%83%86%E3%82%B9%E3%83%88%E3%81%AE%E7%89%B9%E5%BE%B4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment