# Run test

## Steps

_for example of data set:_

In 30 toss of a coin, the following sequence of heads(H) and tails(T) was observed.

H T T H T H H H T H H T T H T H T H H T H T T H T H H T H T

Test at 0.05 level of significance whether the sequence is random or not.

*   Goto variable view and add the variables

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

    *   in the label section:

        ![label](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-94658d1f8aef711d3011b6e416b54846fd0f6c9e%2Flabel.png?alt=media)
*   Goto the data view and add the data

    ![data view](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-5ce182e0a80b12d0f71d147cdd17847eb9bb0403%2FdataView.png?alt=media)
* Goto data view and add the given data.
*   Click on **Analyze** tab > **NonParametric Tests** > **Legacy Dialogs** > **Runs**.

    ![Step](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-82803c207da2b1a17a4783d72be2996397498bf7%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-adffe7c727da2e72bb15a7e1f525a347906c87e1%2Fnon_parametric_test_process2.png?alt=media)
*   Tick the **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-2722bb6fe91de8a2ea9566d7a896ce60198b4631%2Fnon_parametric_test_process3.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-cfe38c513421df505583abe6b7e14d681f678d1b%2Foutput.png?alt=media)
