# One Sample T test

* t test is done when sample size is less than 30.

## Steps

*for example of data set:*

**height :**

78, 55, 68, 48, 65, 76, 57, 55, 65, 75, 51, 61, 68, 67, 76

* In the variable view, add the required variable name with specific details.

  ![Variable view](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-d03b1c0c5a7f54f5c70c3d91b5529cb6499d4200%2FvariableView.jpg?alt=media)
* Goto data view and add the given data.
* Click on **Analyze** tab > **Compare Means** > **One-Sample T test**.

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

  ![Dependent List](https://1701689154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhGYIl7VJdlGnlsVvVWa%2Fuploads%2Fgit-blob-40c14b87998e996baced48df4d4b741994862f30%2FdependentList.jpg?alt=media)
* Required Output(Confidence Interval of Mean):

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