Formula For Confidence Interval of Two Samples With Unequal Variances

AI Thread Summary
The discussion focuses on calculating the confidence interval for the mean difference between two independent samples with unequal variances. Participants clarify the formula for the t-score, emphasizing the importance of the standard error, which is derived from the variances and sample sizes of the two groups. The confidence interval can be calculated using the mean difference and the standard error, with a typical multiplier for a 95% confidence level being approximately 1.97. There is a request for online resources that define variables and provide clarity on standard error calculations. Overall, the conversation highlights the need for precise formulas and understanding in statistical analysis involving unequal variances.
Soaring Crane
Messages
461
Reaction score
0
Are there any online sources that would note (and define all variables, especially on how to calculate standard error) in the formula for calculating the confidence interval, a complement to the t-test, of two independent samples with unequal variances? (I want to see exactly how software/graphing calculators are giving me upper and lower limit values.)

Thank you.
 
Physics news on Phys.org
You want to combine those two samples?
Let ##\mu_i##, ##\sigma_i^2## be the mean and variance of measurement i.
The optimal combination can be obtained as a weighted average with the inverse variance as weights:

$$\mu = \frac{1}{\sigma_1^{-2}+\sigma_2^{-2}}\left(\frac{\mu_1}{\sigma_1^2} +\frac{\mu_2}{\sigma_2^2}\right)$$
$$\sigma^2 = \frac{1}{\sigma_1^{-2}+\sigma_2^{-2}}$$

This is just regular error propagation (assuming Gaussian distributions), and the weights are chosen to minimize ##\sigma##. You can check this yourself, if you like, there is no need to look for any reference. I did not check the second formula, but I think it is correct.

If you want to compare the samples, calculate the difference, and see if it is compatible with 0.
 
Last edited:
Soaring Crane said:
Are there any online sources that would note (and define all variables, especially on how to calculate standard error) in the formula for calculating the confidence interval, a complement to the t-test, of two independent samples with unequal variances? (I want to see exactly how software/graphing calculators are giving me upper and lower limit values.)

Thank you.

Confidence interval for what? Difference of the sample means? It could be anything.
 
ImaLooser,

I apologize. It would be the confidence interval for the mean difference (difference of the sample means) in the case where the population variances are unknown. For example, I know the formula for calulating the t-score for the t-test with unequal variances:

t = (mean difference)/(standard error),

where standard error = sqrt{[(s_1)^2/(n_1)^2] + [(s_2)^2/(n_2)^2]}

s = standard deviation
n = sample size

I wanted the formula for the confidence interval as a check for the t-test results.

Thank you.
 
Those confidence intervals are just multiples of the standard deviation - again, assuming Gaussian distributions.
 
Soaring Crane said:
ImaLooser,

I apologize. It would be the confidence interval for the mean difference (difference of the sample means) in the case where the population variances are unknown. For example, I know the formula for calulating the t-score for the t-test with unequal variances:

t = (mean difference)/(standard error),

where standard error = sqrt{[(s_1)^2/(n_1)^2] + [(s_2)^2/(n_2)^2]}

s = standard deviation
n = sample size

I wanted the formula for the confidence interval as a check for the t-test results.

Thank you.

I haven't done any of this for over fifteen years, but I believe you are correct. The variance of the difference in sample means is equal to the sum of the two sample variances. Take the square root to get the standard error. A 95% confidence interval is then [u - 1.97s, u + 1.97s] where u is the difference in sample means.
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...

Similar threads

Back
Top