Answer to Question #250287 in Statistics and Probability for smilynne

Question #250287

A real estate agent compares the selling price of townhouses in two major cities in National Capital Region to see if there is a difference in price. Is there enough evidence to reject the claim that the average price of a townhouse in Quezon City is higher than Makati City? Use 0.05 alpha level.


 Quezon City Makati City

_ _

X1 = 2,140, 000 X2 = 1,970,000

𝒔𝟏  = 226,000 𝒔2 = 243,000

𝒏1 =  47 𝒏2 = 45


1
Expert's answer
2021-10-14T13:02:39-0400

The following null and alternative hypotheses need to be tested:

H0:μ1μ2H_0:\mu_1\leq \mu_2

H1:μ1>μ2H_1:\mu_1>\mu_2

​This corresponds to a right-tailed test, for which a t-test for two population means, with two independent samples, with unknown population standard deviations will be used.

Based on the information provided, the significance level is α=0.05.\alpha = 0.05.

The degrees of freedom are computed as follows, assuming that the population variances are unequal:


df=(s12n1+s22n2)2(s12/n1)2n11+(s22/n2)2n21df=\dfrac{(\dfrac{s_1^2}{n_1}+\dfrac{s_2^2}{n_2})^2}{\dfrac{(s_1^2/n_1)^2}{n_1-1}+\dfrac{(s_2^2/n_2)^2}{n_2-1}}

=(226247+243245)2(2262/47)2471+(2432/45)245188.80012155=\dfrac{(\dfrac{226^2}{47}+\dfrac{243^2}{45})^2}{\dfrac{(226^2/47)^2}{47-1}+\dfrac{(243^2/45)^2}{45-1}}\approx88.80012155

It is found that the critical value for this right-tailed test is tc=1.6622,t_c = 1.6622, for α=0.05\alpha = 0.05

and df=88.80012155.df = 88.80012155.

Since it is assumed that the population variances are unequal, the t-statistic is computed as follows:


t=Xˉ1Xˉ2s12n1+s22n2=21401970226247+2432453.470889t = \dfrac{\bar{X}_1-\bar{X}_2}{\sqrt{\dfrac{s_1^2}{n_1}+\dfrac{s_2^2}{n_2}}}=\dfrac{2140-1970}{\sqrt{\dfrac{226^2}{47}+\dfrac{243^2}{45}}}\approx3.470889

Since it is observed that t=3.470889>1.6622=tc,t = 3.470889 > 1.6622=t_c , it is then concluded that the null hypothesis is rejected.

​Using the P-value approach: The p-value for right-tailed, α=0.05,df=88.80012155,\alpha=0.05, df=88.80012155, t=3.470889t=3.470889 is p=0.000402,p =0.000402, and since p=0.000402<0.05=α,p = 0.000402 < 0.05=\alpha, it is concluded that the null hypothesis is rejected.

The degrees of freedom are computed as follows, assuming that the population variances are equal:


df=n11+n21=471+451=90df=n_1-1+n_2-1=47-1+45-1=90

It is found that the critical value for this right-tailed test is tc=1.661961,t_c = 1.661961, for α=0.05\alpha = 0.05

and df=90.df = 90.

The rejection region for this right-tailed test is R={t:t>1.661961}.R = \{t: t > 1.661961\}.

Since it is assumed that the population variances are equal, the t-statistic is computed as follows:


t=Xˉ1Xˉ2(n11)s12+(n21)s22n1+n22(1n1+1n2)t = \dfrac{\bar{X}_1-\bar{X}_2}{\sqrt{\dfrac{(n_1-1)s_1^2+(n_2-1)s_2^2}{n_1+n_2-2}(\dfrac{1}{n_1}+\dfrac{1}{n_2})}}=21401970(471)(223)2+(451)(246)247+452(147+145)= \dfrac{2140-1970}{\sqrt{\dfrac{(47-1)(223)^2+(45-1)(246)^2}{47+45-2}(\dfrac{1}{47}+\dfrac{1}{45})}}

3.475509\approx3.475509


Since it is observed that t=3.475509>1.661961=tc,t = 3.475509 > 1.661961=t_c , it is then concluded that the null hypothesis is rejected.

​Using the P-value approach: The p-value for right-tailed, α=0.05,df=90,\alpha=0.05, df=90, t=3.475509t=3.475509 is p=0.000393,p =0.000393, and since p=0.000393<0.05=α,p = 0.000393 < 0.05=\alpha, it is concluded that the null hypothesis is rejected.


Therefore, there is enough evidence to claim that the population mean μ1\mu_1 is greater thanμ2,\mu_2, at the α=0.05\alpha = 0.05 significance level.


Therefore, there is enough evidence to claim that the average price of a townhouse in Quezon City is higher than Makati City, at the α=0.05\alpha = 0.05 significance level.



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment