       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:= 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= 342

Out= 170

Out= 6.39

Out= 6.07

Out= 177.19

Out= 170.37

Out= 6.28396

Out= 28.9915

```

• Prev by Date: Re: General--A Minor Annoyance
• Next by Date: Re: Solve, D, and summations
• Previous by thread: Re: t-test question
• Next by thread: Re: t-test question