AlternativeHypothesis
LocationTest等の仮説検定関数のオプションで対立仮説を指定する.
詳細
- 検定統計
の仮説検定では,AlternativeHypothesisを使って帰無仮説
と特定の対立仮説
で検定が行える. - よく使われる設定値
-
"Unequal"
と

"Less"
と

"Greater"
と

- AlternativeHypothesisを使う関数ではデフォルトで両側検定が行われる.
例題
すべて開く すべて閉じる例 (2)
data = RandomVariate[NormalDistribution[], 100];LocationTest[data, AlternativeHypothesis -> "Unequal"]LocationTest[data]data = RandomVariate[NormalDistribution[], 100];LocationTest[data, AlternativeHypothesis -> "Less"]LocationTest[data, AlternativeHypothesis -> "Greater"]特性と関係 (3)
data = RandomVariate[NormalDistribution[], 100];ptwo = LocationTest[data, AlternativeHypothesis -> "Unequal"]pone = Min[LocationTest[data, AlternativeHypothesis -> "Less"], LocationTest[data, AlternativeHypothesis -> "Greater"]]ptwo / ponedata = RandomVariate[NormalDistribution[1, 1], 15];ℋ = LocationTest[data, 1.3, "HypothesisTestData", AlternativeHypothesis -> "Unequal"];𝒟 = StudentTDistribution[14];T = ℋ["TestStatistic", "T"]twosided = Show[Plot[PDF[𝒟, x], {x, -5, -Abs[T]}, Filling -> Axis], Plot[PDF[𝒟, x], {x, Abs[T], 5}, Filling -> Axis], PlotRange -> {{-5, 5}, All}];Show[Plot[PDF[𝒟, x], {x, -5, 5}], twosided]
値は,検定統計の分布における領域として解釈することができる:
(Integrate[PDF[𝒟, x], {x, -Infinity, -Abs[T]}] + Integrate[PDF[𝒟, x], {x, Abs[T], Infinity}])ℋ["T"]data = RandomVariate[NormalDistribution[1, 1], 15];Subscript[ℋ, L] = LocationTest[data, 1.3, "HypothesisTestData", AlternativeHypothesis -> "Less"];
Subscript[ℋ, G] = LocationTest[data, 1.3, "HypothesisTestData", AlternativeHypothesis -> "Greater"];𝒟 = StudentTDistribution[14];T = Subscript[ℋ, L]["TestStatistic", "T"]less = Plot[PDF[𝒟, x], {x, -5, T}, Filling -> Axis, PlotRange -> {{-5, 5}, All}];greater = Plot[PDF[𝒟, x], {x, T, 5}, Filling -> Axis, PlotRange -> {{-5, 5}, All}];{Show[Plot[PDF[𝒟, x], {x, -5, 5}], less, PlotLabel -> "Less"], Show[Plot[PDF[𝒟, x], {x, -5, 5}], greater, PlotLabel -> "Greater"]}{Integrate[PDF[𝒟, x], {x, -Infinity, T}], Subscript[ℋ, L]["T"]}{Integrate[PDF[𝒟, x], {x, T, Infinity}], Subscript[ℋ, G]["T"]}関連項目
関連するガイド
-
▪
- 仮説検定
テキスト
Wolfram Research (2010), AlternativeHypothesis, Wolfram言語関数, https://reference.wolfram.com/language/ref/AlternativeHypothesis.html.
CMS
Wolfram Language. 2010. "AlternativeHypothesis." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AlternativeHypothesis.html.
APA
Wolfram Language. (2010). AlternativeHypothesis. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AlternativeHypothesis.html
BibTeX
@misc{reference.wolfram_2026_alternativehypothesis, author="Wolfram Research", title="{AlternativeHypothesis}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/AlternativeHypothesis.html}", note=[Accessed: 09-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_alternativehypothesis, organization={Wolfram Research}, title={AlternativeHypothesis}, year={2010}, url={https://reference.wolfram.com/language/ref/AlternativeHypothesis.html}, note=[Accessed: 09-September-2026]}