AlternativeHypothesis

AlternativeHypothesis
is an option for hypothesis testing functions like LocationTest that specifies the alternative hypothesis.

DetailsDetails

  • For a hypothesis test with test statistic , AlternativeHypothesis can be used to test the null hypothesis against particular alternatives .
  • Typical settings include:
  • "Unequal" and
    "Less" and
    "Greater" and
  • For functions using AlternativeHypothesis, a two-sided test is performed by default.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Perform a two-sided test for location:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

The setting is chosen by default:

In[3]:=
Click for copyable input
Out[3]=

Perform one of the two one-sided alternatives:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
Introduced in 2010
(8.0)