BookmarkSubscribeRSS Feed
Odienliow
Calcite | Level 5

52.3 53.5 50.5 50.3 49.6 51.0 48.3 50.6 50.2 52.5 47.5 50.9 49.8 50.0 53.0 50.9 49.9 50.1 50.7 48.2 51.5 49.0 51.7 53.2 51.1 52.6 51.2 49.5 51.9 52.0 48.8 46.8 51.3 49.3 54.0 49.2 51.4 48.5 50.8 49.4

 

This is my 50 data set. I was asked to perform a hypothesis testing on whether the mean of the following data is more than 50 or not. Due to large sample size, i should perfom a Z test. However, my lecturer only taught us how to perform a t test. By doing the step distribution analysis, and the value given is also t value. 

May i know how to perform z test for the hypothesis testing using SAS enterprise? 

1 REPLY 1
Ksharp
Super User
data have;
input x @@;
cards;
52.3 53.5 50.5 50.3 49.6 51.0 48.3 50.6 50.2 52.5 47.5 
50.9 49.8 50.0 53.0 50.9 49.9 50.1 50.7 48.2 51.5 49.0 
51.7 53.2 51.1 52.6 51.2 49.5 51.9 52.0 48.8 46.8 51.3 
49.3 54.0 49.2 51.4 48.5 50.8 49.4
;
run;
proc univariate data=have mu0=50 all;
var x;
run;

 

Student t t 2.212388 Pr > |t| 0.0329

 

 

It is significant . is NOT equal 50 at alpha=0.05 .

 

 

Basic Confidence Limits Assuming Normality
Parameter Estimate 95% Confidence Limits
Mean 50.57500 50.04930 51.10070
Std Deviation 1.64375 1.34650 2.11064
Variance 2.70192 1.81306 4.45479

 

Mean is great than 50 at alpha=0.05 .

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1784 views
  • 0 likes
  • 2 in conversation