37.3k views
0 votes
What are the 30 variables i need to put in the spss stats data editor to get this output? and pls just the 30 variables to get the same output.

One-Sample t-test: Data set: A real dataset from Kaggle on the heights of students in a university. The research question is whether the average height of students in the university is significantly different from 170 cm. The hypothetical study includes a random sample of 30 students from the university, and their heights are measured in cm.

Hypotheses: Null hypothesis: The mean height of the population is equal to 170 cm (µ = 170)

Alternative hypothesis: The mean height of the population is not equal to 170 cm (µ ≠ 170)

Alpha level: 0.05

SPSS Output:

N Mean Std. Deviation Std. Error Mean

30 172.2 6.43 1.18

One-Sample Test Test Value = 170 95% Confidence Interval of the Difference t df Sig. (2-tailed) Mean Difference Lower Upper

2.10 29 0.046 2.20 0.09 4.31

The output includes the sample size (N), mean, standard deviation, and standard error mean for the height variable. It also shows the results of the one-sample t-test, including the test value, t-value, degrees of freedom (df), p-value (Sig.), and the mean difference with its 95% confidence interval (Lower and Upper).

Since the p-value is less than the alpha level of 0.05, we can reject the null hypothesis and conclude that there is sufficient evidence to suggest that the average height of students in the university is significantly different from 170 cm.

User Jeff Smith
by
9.0k points

1 Answer

5 votes

Explanation:

To get the same output in SPSS, you would need to input the following 30 variables in the data editor:

ID

Height1

Height2

Height3

Height4

Height5

Height6

Height7

Height8

Height9

Height10

Height11

Height12

Height13

Height14

Height15

Height16

Height17

Height18

Height19

Height20

Height21

Height22

Height23

Height24

Height25

Height26

Height27

Height28

Height29

In this case, "ID" represents the identification number of each student, and "Height1" to "Height29" represent the height of each student in the sample.

To perform the one-sample t-test and obtain the output, follow these steps in SPSS:

Go to "Analyze" > "Compare Means" > "One-Sample T Test"

Select the variable "Height1" to "Height29" and move them to the "Test Variable(s)" box

Enter "170" in the "Test Value" box

Click "OK"

The output should then appear in the "Output Viewer" window.

User Kafran
by
8.4k points