A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://reference.wolfram.com/language/ref/LocationTest.html below:

LocationTest—Wolfram Language Documentation

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technology expertise.

WolframConsulting.com

BUILT-IN SYMBOL

LocationTest[data]

tests whether the mean or median of the data is zero.

LocationTest[{data1,data2}]

tests whether the means or medians of data1 and data2 are equal.

LocationTest[dspec,μ0,"property"]

returns the value of "property".

Details and Options Examplesopen allclose all Basic Examples  (3)

Test whether the mean or median of a population is zero using a collection of tests:

Test whether the means of two populations differ by 2:

The mean difference :

At the 0.05 level, is significantly different from 2:

Compare the locations of multivariate populations:

The mean difference vector :

At the 0.05 level, is not significantly different from {1,2}:

Scope  (17) Testing  (13)

Test versus :

The -values are typically large when the mean is close to 0:

The -values are typically small when the mean is far from 0:

Using Automatic is equivalent to testing for a mean of zero:

Test versus :

The -values are typically large when the mean is close to μ0:

The -values are typically small when the mean is far from μ0:

Test whether the mean vector of a multivariate population is the zero vector:

Alternatively, test against {0.1,0,-0.05,0}:

Using Automatic applies the generally most powerful appropriate test:

The property "AutomaticTest" can be used to determine which test was chosen:

Test versus :

The -values are generally small when the locations are not equal:

The -values are generally large when the locations are equal:

Test versus :

The order of the datasets affects the test results:

Test whether the mean difference vector of two multivariate populations is the zero vector:

Alternatively, test against {1,0,-1,0}:

Perform a particular test for equal locations:

Any number of tests can be performed simultaneously:

Perform all tests appropriate to the data simultaneously:

Use the property "AllTests" to identify which tests were used:

Create a HypothesisTestData object for repeated property extraction:

The properties available for extraction:

Extract some properties from a HypothesisTestData:

The -value and test statistic from a -type test:

Extract any number of properties simultaneously:

The -value and test statistic from a MannWhitney test:

Reporting  (4)

Tabulate the results from a selection of tests:

A full table of all appropriate test results:

A table of selected test results:

Retrieve the entries from a test table for customized reporting:

The -values are above 0.05, so there is not enough evidence to reject at that level:

Tabulate -values for a test or group of tests:

The -value from the table:

A table of -values from all appropriate tests:

A table of -values from a subset of tests:

Report the test statistic from a test or group of tests:

The test statistic from the table:

A table of test statistics from all appropriate tests:

Options  (20) AlternativeHypothesis  (3)

A two-sided test is performed by default:

Test versus :

Perform a two-sided test or a one-sided alternative:

Test versus :

Test versus :

Test versus :

Perform tests with one-sided alternatives when μ0 is given:

Test versus :

Test versus :

MaxIterations  (1)

Set the maximum number of iterations to use for multivariate median-based tests:

Method  (6)

By default, -values are computed using asymptotic test statistic distributions:

For univariate median-based tests, -values can be obtained using permutation methods:

Set the number of permutations to use:

By default, random permutations are used:

For some tests, the permutation result is exact:

The result is not affected by the number of permutations when exact tests are used:

For mean-based tests, the -value is exact under the assumptions of the test:

Set the seed used for generating random permutations:

SignificanceLevel  (3)

Set the significance level for diagnostic tests:

By default, 0.05 is used:

Setting the significance level may alter which test is automatically chosen:

A median-based test would have been chosen by default:

The significance level is also used for "TestConclusion" and "ShortTestConclusion":

VerifyTestAssumptions  (7)

By default, normality and equal variance are tested when appropriate:

If assumptions are not checked, some test results may differ:

Diagnostics can be controlled as a group using All or None:

Verify all assumptions:

Check no assumptions:

Diagnostics can be controlled independently:

Assume normality and symmetry but check for equal variances:

Only check for normality:

Unlisted assumptions are not tested:

Normality is assumed:

The result is the same but a warning is issued:

Test assumption values can be explicitly set:

The sign test was previously chosen because the data is not normally distributed:

Bypassing diagnostic tests can save compute time:

It is often useful to bypass diagnostic tests for simulation purposes:

The assumptions of the test hold by design, so a great deal of time can be saved:

The results are identical:

Applications  (4)

Test whether the locations of some populations are equivalent:

The first two populations have similar locations:

The third population differs in location from the first:

The heart and body weights of a group of house cats were obtained:

The heart weight of male cats is significantly greater than that of female cats:

Perhaps male cats are just larger in general:

The ratio of heart weight to body weight is not significantly different between the sexes:

Six measurements were taken for 100 counterfeit Swiss banknotes and 100 genuine ones:

A plot of two of the measures for counterfeit and genuine notes:

A test of the bivariate median vectors shows a significant difference:

Samples were drawn from a pool of water at 10 randomly selected locations. Each sample was tested for zinc concentration at both the surface of the water and the bottom of the pool:

A visual inspection of the data. The distance between the vertical bars shows the quantity being tested under an assumption of dependence and independence respectively:

Assuming the data is paired yields a significant result not present under independence:

Assume a laboratory test showed that zinc concentrations form a gradient that becomes higher with increasing depth. This information justifies the use of a one-sided alternative:

Properties & Relations  (9)

The -value suggests the expected proportion of false positives (Type I errors):

Setting the size of a test to 0.05 results in an erroneous rejection of about 5% of the time:

Type II errors arise when is not rejected, given it is false:

Increasing the size of the test lowers the Type II error rate:

The power of each test is the probability of rejecting when it is false:

The power of the tests at six different levels. The sign test has the lowest power in general:

The power of tests decreases with smaller sample sizes:

The power of the tests is lower than in the previous example:

For dependent samples, paired tests are more powerful than their non-paired counterparts:

Paired tests assume observations in one dataset are matched with observations in the other:

A paired -test is equivalent to a -test applied to the point-wise differences of two datasets:

Paired tests assume that the data represents differences when given a single dataset:

A two-sided -value is twice the smaller of the two one-sided -values:

The LocationTest works with the values only when the input is a TimeSeries:

LocationTest works with all the values together when the input is a TemporalData:

Test all the values only:

Test whether the means or medians of the two paths are equal:

Possible Issues  (3)

Unknown variances and covariances are estimated from the data when using -type tests:

For large samples, the estimation has little effect on the results:

With small samples, -type tests should be used to account for the estimation:

Median-based tests should be used if the data is not normally distributed:

Median-based tests do not assume normality:

Changing the significance level affects internal diagnostics:

The degrees of freedom are affected by a test for variance:

The -values are not equivalent:

Neat Examples  (2)

A visual comparison of the discriminating power of some tests across the three alternatives:

Compute the statistic when the null hypothesis is true:

The test statistic given a particular alternative:

Compare the distributions of the test statistics:

Wolfram Research (2010), LocationTest, Wolfram Language function, https://reference.wolfram.com/language/ref/LocationTest.html. Text

Wolfram Research (2010), LocationTest, Wolfram Language function, https://reference.wolfram.com/language/ref/LocationTest.html.

CMS

Wolfram Language. 2010. "LocationTest." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LocationTest.html.

APA

Wolfram Language. (2010). LocationTest. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LocationTest.html

BibTeX

@misc{reference.wolfram_2025_locationtest, author="Wolfram Research", title="{LocationTest}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/LocationTest.html}", note=[Accessed: 12-July-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_locationtest, organization={Wolfram Research}, title={LocationTest}, year={2010}, url={https://reference.wolfram.com/language/ref/LocationTest.html}, note=[Accessed: 12-July-2025 ]}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4