l
Group n x s A 150 $1987 $392 B 150 $2056 $413 a) Do the data show a significant difference between the mean amounts charged by customers offered the two plans? Carry out a complete test. b) The distributions of amounts charged are skewed to the right, but outliers are prevented by the limits that the bank imposes on credit balances. Do you think that skewness threatens the validity of the test? Explain your answer.
@jim_thompson5910
let me think for a sec
ok
ok to start you off, read this page on two sample t tests http://ccnmtl.columbia.edu/projects/qmss/the_ttest/twosample_ttest.html this will refresh your memory on the whole process (which hopefully you have learned it before)
Okk
I did
ok and it looks familiar?
ya
ok luckily there's a calculator on that page as well
ok
see where it says Two-Sample T-Test Calculator
click that and enter the data tell me what p value you get
ok i put in the data and got results.. t = 1.4841 df = 298 standard error of difference = 46.493
@jim_thompson5910
one sec while i check your results
read me the p value please it's near where it says "P value and statistical significance: "
its .1388?
good
ok cool. what do i put for a
so at the 5% significance level (the default level), it's NOT significant (the p value needs to be less than 0.05) even at the 10% significance level, it's still NOT significant (still not smaller than 0.10) so the data is NOT statistically significant....which means that the two sample means aren't statistically significantly different
Ok yea! so for a, id put all that?^
Do the data show a significant difference between the mean amounts charged by customers offered the two plans? no there's no significant difference between the two sample means
that's basically what you would say more or less of course you would throw in the test (ie the steps needed to get there)
Oky cool thx! wat about B
b?
it's hard to say, but even though there's a right skew, it's not that bad because of the imposed limits
so I would think that the skew doesn't alter the fact that these distributions are approximately normal (more or less)
thats what i was thinking.. ok thanks! i have another one:
this is also a two sample t test
so follow the same basic procedure 1) use the calculator given above 2) read off the p value to make the proper decisions
okay umm
if it helps, think of the two groups as A and B
The two-tailed P value equals 0.0172 ?
very good, getting the same
so... is 0.0172 smaller than 0.05 ? is 0.0172 smaller than 0.01 ?
Yes and no for the second
perfect
Do beta-blockers reduce the pulse rate at the 5% level? At the 1% level? yes for the 5% level (since it's statistically significant at the 5% level) but no for the 1% (its not statistically significant at the 1% level)
see how I'm getting all this?
Okay ya
b?
ok sadly this calc only does 95% confidence intervals
so one sec
oh ok
does it say anywhere that the population variances are assumed to be equal?
Nope i dont see it
ok i'll just guess "no, they aren't assumed to be equal"
Ok
ok first thing we need to do is calculate the standard error which we'll call SE
Ok
SE = sqrt( ((s1)^2)/(n1) + ((s2)^2)/(n2) ) SE = sqrt( ((7.8)^2)/(30) + ((8.3)^2)/(30) ) SE = 2.07950314578587 SE = 2.0795
ok got that
then we need to find the critical value we would use a calculator to do this http://www.wolframalpha.com/input/?i=inverse+t&a=*MC.inverse+t-_*Formula.dflt-&f2=29&f=StudentTProbabilities.df_29&f3=0.005&x=7&y=9&f=StudentTProbabilities.pr_0.005&a=*FVarOpt.1-_***StudentTProbabilities.pr--.***StudentTProbabilities.x--.**StudentTProbabilities.l-.*StudentTProbabilities.r---.*-- notice on the second line it says "2.756" so that's our critical value
ok
now onto the actual confidence interval Lower Limit: L = (xbar1 - xbar2) - t*SE L = (65.2-70.3) - 2.756*(2.0795) L = -10.831102 Upper Limit: U = (xbar1 - xbar2) + t*SE U = (65.2-70.3) + 2.756*(2.0795) U = 0.631102
So the confidence interval (L, U) turns into (-10.831102, 0.631102)
which means the 99% CI is (-10.831102, 0.631102) CI = confidence interval
ok!
ok i have something else:
@jim_thompson5910
?
sry one sec
still looking up formula
ok
hmm does it say anywhere that you have to assume that p-hat = 0.5 ?
oh wait, p = 0.25 nvm
ok
so we would do this... n = p(1-p)(z/E)^2 n = 0.25(1-0.25)(z/E)^2 n = 0.25(0.75)(z/E)^2 n = 0.1875(z/E)^2 n = 0.1875(1.96/0.05)^2 n = 0.1875(39.2)^2 n = 0.1875(1536.64) n = 288.12 n = 289 ... Always round UP!!! (to the nearest whole number)
Ok!
is that it?
so the min sample size is 289
yep
ok one sec!
same idea, but different numbers
oh wait, they want the margin of error this time
well it's a similar idea at least
okk
soo
actually this is a two part problem the first part asks for the min sample size
the second part asks for the margin of error
Ok
so for the first part, we use the formula n = p(1-p)(z/E)^2 where p = 0.50 z = 1.96 E = 0.08
ok
n = .50(1-.50)(1.96/.08)^2
actually my bad, p = 0.60 z = 1.96 E = 0.08 sorry about that
ah ok lol hold on
144.06??
@jim_thompson5910
so n = 145
that's the min sample size needed
now we use this to answer the second part of the question
ok cool
using this formula E = z*sqrt( (p*(1-p))/n ) in this case z = 1.96 (still the same since we're still dealing with a 95% CI) p = 0.50 (this changes because they tell us it does) n = 145 (we just found this)
ok
what do you get
is it 0.08138457025
Join our real-time social learning platform and learn together with your friends!