Run Test with Nominal Scale Measurement
CASE ANALYSIS – 1
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.
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.
Table-3: Runs Test
Table-4: Runs Test 2
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)
- Click on ANALYZE at the SPSS menu bar (in older versions of SPSS, click on STATISTICS instead of ANALYZE.
- Click on NON-PARAMETRIC TEST followed by
- Select the concerned numeric variable and move it to TEST VARIABLE LIST box.
- Click MEAN or MEDIAN depending on the desired cut-off value.
- Click CUSTOM and give it a ‘0’ value.
- Click OK of the main dialogue box.