"We got the same " do you mean are you comparing yours with his/her's
if yes, the datapoints seem to vary or spread differently between yours and someone else's
data w; k=mean(4,4,4); std_k=std(4,4,4); k1=mean(2,4,6); std_k1=std(2,4,6); run;
we supposed to have used the same dataset. In any cases, that could result in same Ns, means but different standard deviations. But since we are checking independently, his/her dataset could have changed a little, such as slight updates for some values.
With N< 30 and the possibility of data having changed you're likely not actually using the same data. And thus the expectation of the same variance is not correct.
I am checking someone else's results, basic summary. We got the same N counts, same Means but different standard deviations. What could be the reason?
How different? Are you talking 6th decimal places or it's off by a lot?
Which procedure are you using?
Exact same data set or did you build a different set?
Maybe show the code you used and some output for your code and your coworker's output (if you don't have the code).
If the difference is very small it could be hardware differences such as different chipset. If running a different OS then that would be another potential for small differences. And another could just be setting formats or numbers of decimals for display.
Thank you all for your help. I finally found out what caused the same mean but different standard deviation using the same data set. In proc mean I used the default, the other person used additional option VARDEF=n. So different SD formulas were applied when calculating the SD, SD for a sample (divided by n-1) and SD for population (divided by n).
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.