Run Test with Nominal Scale Measurement




A survey is conducted in a metro city whether the inhabitants are in favour (Y) or against (N) of ‘joint family’. The sequence of responses to the questions asked is given below.

Table-1: Sample Data

The interest is to test the randomness of the responses

Null hypothesis-H0: The response is random in nature.

Alternative Hypothesis- H1: The response is not random.

Input Data

Since the nominal scale needs to be coded, the codes used for Y is 1 and (-1) for N.

Table-2: Input Data

Performing the Analysis with SPSS

For SPSS Version 11, click on Analyze ⇒ Nonparametric Tests ⇒ Runs.

 This will bring up the SPSS screen dialogue box as shown below

After clicking Runs, this will bring up the SPSS screen dialogue box as shown below

Select the variable and move it to Test Variable List box and click Mean.

Click Custom and give its value ‘0’. Finally click OK to get the output.

SPSS Output

Table-3: Runs Test

                             a  Mean

Table-4: Runs Test 2

                             a User-specified.

From the output, Z = 0.167


Reject the null hypothesis if p-value (Sig. (2-tailed)) ≤ 0.05


The p-value is 0.868 and it is more than 0.05 (5% level of significance), so we accept the null hypothesis and reject the alternative hypothesis. The sample is therefore accepted as random.

SPSS Command (Nominal Scale Measurement)

  1. Click on ANALYZE at the SPSS menu bar (in older versions of SPSS, click on STATISTICS instead of ANALYZE.
  2. Click on NON-PARAMETRIC TEST followed by
  3. Select the concerned numeric variable and move it to TEST VARIABLE LIST box.
  4. Click MEAN or MEDIAN depending on the desired cut-off value.
  5. Click CUSTOM and give it a ‘0’ value.
  6. Click OK of the main dialogue box.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: