Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Ansari-Bradley test

`h = ansaribradley(x,y)`

`h = ansaribradley(x,y,Name,Value)`

```
[h,p] =
ansaribradley(___)
```

```
[h,p,stats]
= ansaribradley(___)
```

returns
a test decision for the null hypothesis that the data in vectors `h`

= ansaribradley(`x`

,`y`

)`x`

and `y`

comes
from the same distribution, using the Ansari-Bradley test. The alternative
hypothesis is that the data in `x`

and `y`

comes
from distributions with the same median and shape but different dispersions
(e.g., variances). The result `h`

is `1`

if
the test rejects the null hypothesis at the 5% significance level,
or `0`

otherwise.

returns
a test decision for the Ansari-Bradley test with additional options
specified by one or more name-value pair arguments. For example, you
can change the significance level, conduct a one-sided test, or use
a normal approximation to calculate the value of the test statistic.`h`

= ansaribradley(`x`

,`y`

,`Name,Value`

)

Was this topic helpful?