# Median Test

## Large sample (n1 > 10, n2 > 10)

## Steps

_for example of data set:_

An IQ test was given to a randomly selected 15 males and 20 female students of a university. Their scores were recorded as follows:

Male: 56, 66, 62, 81, 75, 73, 83, 68, 48, 70, 60, 77, 86, 44, 72

Female: 63, 77, 65, 71, 74, 60, 76, 61, 67, 72, 64, 65, 55, 89, 45, 53, 68, 73, 50, 81

Use median test at 0.05 level of significance. (Given that median of combined sample=68)

* Goto variable view and add the variables
* Goto the data view and add the data
*   Click on **Analyze** tab > **NonParametric Tests** > **Legacy Dialogs** > **k Independent Samples**.

    ![Step](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-aa229c5b172dd413b74a227380443ca293b3c1f2%2Fstep.png?alt=media)
*   Add the required variable in **Test Variable List** and click **Options**.

    ![Dialog](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-6edef341c92afed2e0484f10323010d23b6ba534%2Fdialog.png?alt=media)
*   Click **Descriptives** and **Quartiles** and click **Continue**.

    ![Dialog](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-88c21aa3bcf3d982a85fcd3973010cbd4e42c2fc%2Fdialog2.png?alt=media)
*   Required Output:

    ![Output](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-94f9e0cf807627c92916ba0f76ac717f017cb70f%2Foutput.png?alt=media)
