Re: t-test question
- To: mathgroup at smc.vnet.net
- Subject: [mg64160] Re: t-test question
- From: "Ray Koopman" <koopman at sfu.ca>
- Date: Fri, 3 Feb 2006 01:03:47 -0500 (EST)
- References: <dru719$a0n$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Csukas Attila wrote:
> Dear all,
>
> I have found an equation for comparing two means.
>
> Ue = (na - 1)*Ua + (nb - 1)Ub/na + nb - 2 This is for the pooled
> value of distribution and
>
> t0 = |xa-xb|/ Root Ue*(1/na+1/nb) This is for the t value.
>
> Sample values
> na=342
> nb=170
> Ua=6.39
> Ub=6.07
> xa=177.19
> xb=170.37
>
> Does anybody have idea how this works in Mathematica?
> I am not familiar with Mathematica syntax but interested how would this
> work...
>
> Any help and idea appreciated.
>
> Attila
In[1]:= na = 342
nb = 170
Ua = 6.39
Ub = 6.07
xa = 177.19
xb = 170.37
Ue = ((na - 1)*Ua + (nb - 1)Ub)/(na + nb - 2)
t0 = Abs[xa-xb]/Sqrt[Ue*(1/na+1/nb)]
Out[1]= 342
Out[2]= 170
Out[3]= 6.39
Out[4]= 6.07
Out[5]= 177.19
Out[6]= 170.37
Out[7]= 6.28396
Out[8]= 28.9915