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 语言. 2010. "AlternativeHypothesis." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AlternativeHypothesis.html.
APA
Wolfram 语言. (2010). AlternativeHypothesis. Wolfram 语言与系统参考资料中心. 追溯自 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: 18-August-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: 18-August-2026]}