现在知道有2个T检验统计(t-test statistic)的样本。
当方差被认为相等时,其中一个T检验统计样本被起用。 当方差被认为不相等时,另一个T检验样本统计值为1个近似值(approximation)。
Example 1:
Example 2:
我们开始检验这些统计在不同情况下执行的怎么样。我们开始执行假设检验:
a) 取2个样品,规模(size)为18,分布为N(μ=30,δ^2=100), N(μ=40,δ^2=100). 计算2个检验统计(test statistics)并测定他们的P-values。 做这个检验10000次。确定一部分次数的P-values is greater than α=0.05 for each approach。最后能得出什么结论?(
What conclusion can you make?)
b)
Get one sample of size 15 from the N(µ=50, σ2=16) distribution, and another sample of size 18 from the N(µ=45, σ2=25) distribution .
Calculate the two test statistics and determine their p-values. Do this test 10000 times. Determine the fraction of times the p-value is greater than α = .05 for each approach. What conclusion can you make?
请高手用R语言解决这题,小弟在这里感激不尽。