- Thread starter joeb33050
- Start date

Convert alpha to x units, inches etc

Form the beta distribution in x units with x alpha.

Convert the beta x unit distribution to t units.

Solve for t </= t alpha beta.

Would someone look at the explanation? I'll email it.

Thanks;

joe b.

what t-test are you trying to calculate?

You should write what is the H0 distribution, whats is the critical value, what is the H1 distribution

You are doing the left tail. (one tail not two tails)

I prefer to calculate only the priori test power, in this case, you calculates the other avg(x) based on the "change" that you want the test to identify:

change=avg(x1)-avg(x2)

In the z-test the H1 also has the normal distribution, but in the t-test the H1 has the non-central t distribution,

H1 is the alternative hypothesis.

non-central t is a different distribution, similar to t but not symmetrical with a lower peak.

https://en.wikipedia.org/wiki/Noncentral_t-distribution

https://www.statskingdom.com/doc_test_power.html

.

No non-central t distribution involved or required. t describes samples of x1-x2 taken from 1 = one distribution.

Does that help?

You show me calculations instead of defining what you test.

If both populations distriibute normally (or similar),

and you estimate the mean and standard deviations, (that why using t distribution)

and your hypotheses are as following:

H0: mu1 = mu2

H1: mu1! = mu2 (or for one tail mu1 > mu2)

Then you need to use non-central t distribution for the H1

So I assume you know the averages, and try to understand if based on the samples you may conclude for the populations...

If you know the population standard deviation σ, you should use the z test.

If you don't know the population standard deviation you should estimate S and use a t-test.

In this case, the null assumption distributes non-central t.

You can look at the following video:

“Power” is the probability of rejecting Ho: µ 1 = µ 2 when Ho: is false.

The β error is the probability of accepting Ho when Ho is false.

Thus, power = 1 – β error.

In the example above, power = 1 - .2820 = .7180, 71.8%.

The non-central t distribution can be ignored.

I am beginning to suspect that the mathematical edifice constructed about t testing, β error and power was built on the premise that β error in t testing cannot be easily calculated; and that that premise is incorrect.

Usually, you start a question with the data like ave(x1)=39, avg(x2)=44 n1= n2= ..

I assume it should be average, not

Despite the fact that I can't see the input data, it looks like your calculation was correct if H1 distribution would be central t.

not sure because I can't see the question's data

But it should be non-central ...

If you don't believe it... you may try to calculate the beta using simulation, and see what distribution will give you the correct beta...

It is very easy to do a simulation in R

Your results might be close in some cases but they won't be exact.

First let's start by looking at the test statistic:

t = (xbar1 - xbar2)/(Sp*sqrt(1/n1 + 1/n2)) hopefully the terminology is clear enough here. I'm going to make a slight simplification and just define

SE = (Sp*sqrt(1/n1 + 1/n2))

so that our original reduces to

t = (xbar1 - xbar2)/SE

Great. Now under the null hypothesis that the two means are equal this has a central T distribution with v=n1+n2-2 degrees of freedom right? The main thing to note is that the numerator here (xbar1 - xbar2) has expected value of 0 since under the null hypothesis the means are equal. There are lots of other properties but this is the important one for our purposes.

Now let's consider what happens under the alternative hypothesis

t = (xbar1 - xbar2)/SE

Well the numerator xbar1-xbar2 doesn't have an expected value of 0 anymore. And I'm sure this whole time you've been saying "yes of course and that's why we apply the shift!". But I'm going to show why that isn't quite right. But let's try that approach and see what happens - can we get the expected value of the numerator to be 0? Sort of! We can subtract the expected and then add the expected value right? Let's give it a try

t = ((xbar1 - xbar2) - (mu1-mu2) + (mu1-mu2))/SE

= ((xbar1 - xbar2) - (mu1-mu2))/SE + (mu1-mu2)/SE

Nice. Now we have this broken into two pieces and the first one ((xbar1 - xbar2) - (mu1-mu2))/SE does have an expected value of 0 in the numerator and hey it *does* have a central T distribution. So you might be thinking - yes this is all proving my point because now we have a central T and then we're just adding something to it - that's basically a shift right? Wrong.

Let's look at what we're adding here:

(mu1 - mu2)/SE

The big hiccup here is the SE in the denominator. If that was a constant then this whole term would be constant and the idea of just shifting the T distribution would work perfectly. Unfortunately for us in this situation SE contains the pooled estimate of the standard deviation. Which means that whole term is a random variable itself. And that whole term *isn't* a central T distribution either. If SE was constant (like it is in the case for a Z-test) then this would all work and that's how we go about calculating power for a Z-test. It's just that the math ends up being trickier for this T-test situation.

Fortunately for us though we do have an answer for the overall question: Under the alternative our t-statistic follows a non-central T distribution. Proving that piece is left as an exercise for the reader but hopefully this provided some insight into why we can't just shift the central T to do power calculations here.