Question

opose the data shown here are the results of a survey to investigate gas prices. Ten service stations were randomly selected
0 0
Add a comment Improve this question Transcribed image text
Answer #1

In order to solve this question I used R software.

R codes and output:

> d=read.table('gas.csv',header=TRUE, sep=',')
> head(d)
calgary edmonton
1 1.029 0.999
2 1.020 1.026
3 1.017 1.017
4 1.002 1.008
5 0.996 0.990
6 1.017 1.038
> attach(d)
> var(calgary)
[1] 0.0001769333
> var(edmonton)
[1] 0.0002104
> t.test(calgary,edmonton,var.equal=TRUE)

Two Sample t-test

data: calgary and edmonton
t = -0.73912, df = 18, p-value = 0.4694
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.017675321 0.008475321
sample estimates:
mean of x mean of y
1.0106 1.0152

Hypothesis:

Hopi = pz

217 In: H

Since we don't know population standard deviation we use t test. Both the sample have approximately equal variances. Hence we use t test with equal variances.

Test statistic ,

t =  -0.73912, with df = 18,

p-value = 0.4694

P-value is greater than 0.05, hence we accept null hypothesis and conclude that there is no significant difference between mean gas price in the two cities.

Que.8

95% confidence interval for mean difference = (-0.017675321, 0.008475321)

Since confidence interval contain zero, we accept null hypothesis.

Add a comment
Know the answer?
Add Answer to:
opose the data shown here are the results of a survey to investigate gas prices. Ten...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT