Jesteś tutaj: PQStat - Baza Wiedzy » PQStat Knowledge Base » PQStat - Statistic » Comparison - one group » Non-parametric tests

en:statpqpl:porown1grpl:nparpl

The Wilcoxon signed-ranks test is also known as the Wilcoxon single sample test, Wilcoxon (1945, 1949)^{1)}. This test is used to verify the hypothesis, that the analysed sample comes from the population, where median () is a given value.

Basic assumptions:

- measurement on an ordinal scale or on an interval scale.

Hypotheses:

where:

– median of an analysed feature of the population represented by the sample,

– a given value.

Now you should calculate the value of the test statistics ( – for the small sample size), and based on this value.

The p-value, designated on the basis of the test statistic, is compared with the significance level :

**Note**

Depending on the size of the sample, the test statistic takes a different form:

- for a small sample size

where:

and are adequately: a sum of positive and negative ranks.

This statistic has the Wilcoxon distribution.

- for a large sample size

where:

- the number of ranked signs (the number of ranks),

- the number of cases being included in the interlinked rank.

The test statistic formula includes the correction for ties. This correction should be used when ties occur (when there are no ties, the correction is not calculated, because .

statistic asymptotically (for a large sample size) has the normal distribution.
**Continuity correction of the Wilcoxon test (Marascuilo and McSweeney (1977) ^{2)})**

A continuity correction is used to enable the test statistic to take in all values of real numbers, according to the assumption of the normal distribution. Test statistic with a continuity correction is defined by:

**Standardized effect size**

The distribution of the Wilcoxon test statistic is approximated by the normal distribution, which can be converted to an effect size ^{3)} to then obtain the **Cohen's d** value according to the standard conversion used for meta-analyses:

When interpreting an effect, researchers often use general guidelines proposed by ^{4)} defining small (0.2), medium (0.5) and large (0.8) effect sizes.

The settings window with the `Wilcoxon test (signed-ranks)`

can be opened in `Statistics`

menu `NonParametric tests`

→`Wilcoxon (signed-ranks)`

or in ''Wizard''.

**EXAMPLE cont.** (courier.pqs file)

Hypotheses:

Comparing the p-value = 0.1232 of Wilcoxon test based on statistic with the significance level we draw the conclusion, that there is no reason to reject the null hypothesis informing us, that usually the number of awaiting days for the delivery which is supposed to be delivered by the analysed courier company is 3. Exactly the same decision you would make basing on the p-value = 0.1112 or p-value = 0.1158 of Wilcoxon test based upon statistic or with correction for continuity.

2022/02/09 12:56

The test (goodnes-of-fit) is also called the one sample test and is used to test the compatibility of values observed for () categories of one feature with hypothetical expected values for this feature. The values of all measurements should be gathered in a form of a table consisted of rows (categories: ). For each category there is written the frequency of its occurence , and its expected frequency or the probability of its occurence . The expected frequency is designated as a product of . The built table can take one of the following forms:

Basic assumptions:

- measurement on a nominal scale - any order is not taken into account,
- large expected frequencies (according to the Cochran interpretation (1952)
^{5)}, - observed frequencies total should be exactly the same as an expected frequencies total, and the total of all probabilities should come to 1.

Hypotheses:

Test statistic is defined by:

This statistic asymptotically (for large expected frequencies) has the Chi-square distribution with the number of degrees of freedom calculated using the formula: .

The p-value, designated on the basis of the test statistic, is compared with the significance level :

The settings window with the `Chi-square test (goodness-of-fit)`

can be opened in `Statistics`

menu → `NonParametric tests (unordered categories)`

→`Chi-square (goodnes-of-fit)`

or in ''Wizard''.

We would like to get to know if the number of dinners served in some school canteen within a given frame of time (from Monday to Friday) is statistically the same. To do this, there was taken a one-week-sample and written the number of served dinners in the particular days: Monday - 33, Tuesday - 29, Wednesday - 32, Thursday -36, Friday - 20.

As a result there were 150 dinners served in this canteen within a week (5 days). We assume that the probability of serving dinner each day is exactly the same, so it comes to . The expected frequencies of served dinners for each day of the week (out of 5) comes to .

Hypotheses:

The p-value from the distribution with 4 degrees of freedom comes to 0.2873. So using the significance level you can estimate that there is no reason to reject the null hypothesis that informs about the compatibility of the number of served dinners with the expected number of dinners served within the particular days.

**Note!**

If you want to make more comparisons within the framework of a one research, it is possible to use the **Bonferroni correction**^{6)}. The correction is used to limit the size of I type error, if we compare the observed frequencies and the expected ones between particular days, for example:

Friday Monday,

Friday Tuesday,

Friday Wednesday,

Friday Thursday,

Provided that, the comparisons are made independently. The significance level for each comparison must be calculated according to this correction using the following formula: , where is the number of executed comparisons. The significance level for each comparison according to the Bonferroni correction (in this example) is .

However, it is necessary to remember that if you reduce for each comparison, the power of the test is increased.

2022/02/09 12:56

You should use tests for proportion if there are two possible results to obtain (one of them is an distinguished result with the size of m) and you know how often these results occur in the sample (we know a Z proportion). Depending on a sample size you can choose the **Z test for a one proportion** – for large samples and the exact **binomial test for a one proportion** – for small sample sizes . These tests are used to verify the hypothesis that the proportion in the population, from which the sample is taken, is a given value.

Basic assumptions:

- measurement on a nominal scale - any order is not taken into account.

The additional condition for the Z test for proportion

- large frequencies (according to Marascuilo and McSweeney interpretation (1977)
^{7)}each of these values: and ).

Hypotheses:

where:

– probability (distinguished proportion) in the population,

– expected probability (expected proportion).

**The Z test for one proportion**

The test statistic is defined by:

where:

distinguished proportion for the sample taken from the population,

– frequency of values distinguished in the sample,

– sample size.

The test statistic with a continuity correction is defined by:

The statistic with and without a continuity correction asymptotically (for large sizes) has the normal distribution.

**Binomial test for one proportion**

The binomial test for one proportion uses directly the **binomial distribution** which is also called the Bernoulli distribution, which belongs to the group of discrete distributions (such distributions, where the analysed variable takes in the finite number of values). The analysed variable can take in values. The first one is usually definited with the name of a success and the other one with the name of a failure. The probability of occurence of a success (distinguished probability) is , and a failure .

The probability for the specific point in this distribution is calculated using the formula:

where:

,

– frequency of values distinguished in the sample,

– sample size.

Based on the total of appropriate probabilities a one-sided and a two-sided p-value is calculated, and a two-sided value is defined as a doubled value of the less of the one-sided probabilities.

The p-value is compared with the significance level:

**Note**

Note that, for the estimator from the sample, which in this case is the value of the proportion, a confidence interval is calculated. The interval for a large sample size can be based on the normal distribution - so-called Wald intervals. The more universal are intervals proposed by Wilson (1927)^{8)} and by Agresti and Coull (1998)^{9)}. Clopper and Pearson (1934)^{10)} intervals are more adequate for small sample sizes.

Comparison of interval estimation methods of a binomial proportion was published by Brown L.D et al (2001)^{11)}

The settings window with the `Z test for one proportion`

can be opened in `Statistics`

menu→`NonParametric tests (unordered categories)`

→`Z for proportion`

.

**EXAMPLE cont.** (dinners.pqs file)

Assume, that you would like to check if on Friday of all the dinners during the whole week are served. For the chosen sample , .

Select the options of the analysis and activate a filter selecting the appropriate day of the week – Friday. If you do not activate the filter, no error will be generated, only statistics for given weekdays will be calculated.

Hypotheses:

The proportion of the distinguished value in the sample is and 95% Clopper-Pearson confidence interval for this fraction does not include the hypothetical value of 0.2.

Based on the Z test without the continuity correction (p-value = 0.0412) and also on the basis of the exact value of the probability calculated from the binomial distribution (p-value = 0.0447) you can assume (on the significance level ), that on Friday there are statistically less than dinners served within a week. However, after using the continuity correction it is not possible to reject the null hypothesis p-value = 0.0525).

2022/02/09 12:56

Wilcoxon F. (1945), Individual comparisons by ranking methods. Biometries 1, 80-83

Marascuilo L.A. and McSweeney M. (1977), Nonparametric and distribution-free method for the social sciences. Monterey, CA: Brooks Cole Publishing Company

Fritz C.O., Morris P.E., Richler J.J.(2012), Effect size estimates: Current use, calculations, and interpretation. Journal of Experimental Psychology: General., 141(1):2–18.

Cohen J. (1988), Statistical Power Analysis for the Behavioral Sciences, Lawrence Erlbaum Associates, Hillsdale, New Jersey

Cochran W.G. (1952), The chi-square goodness-of-fit test. Annals of Mathematical Statistics, 23, 315-345

Abdi H. (2007), Bonferroni and Sidak corrections for multiple comparisons, in N.J. Salkind (ed.): Encyclopedia of Measurement and Statistics. Thousand Oaks, CA: Sage

E.B. (1927), Probable Inference, the Law of Succession, and Statistical Inference. Journal of the American Statistical Association: 22(158):209-212

Agresti A., Coull B.A. (1998), Approximate is better than „exact” for interval estimation of binomial proportions. American Statistics 52: 119-126

Clopper C. and Pearson S. (1934), The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 26: 404-413

Brown L.D., Cai T.T., DasGupta A. (2001), Interval Estimation for a Binomial Proportion. Statistical Science, Vol. 16, no. 2, 101-133

en/statpqpl/porown1grpl/nparpl.txt · ostatnio zmienione: 2022/02/12 16:14 przez admin

Wszystkie treści w tym wiki, którym nie przyporządkowano licencji, podlegają licencji: CC Attribution-Noncommercial-Share Alike 4.0 International