Académique Documents
Professionnel Documents
Culture Documents
m x 1 xi
n
is unbiased
or
biased
Diesel
E85
Station A
855
345
25
Station B
637
210
10
a) At least how much proportion of the customers in station A are buying fuel
E85 with confidence level 95%?
(3p)
Command: >
prop.test(25,855+345+25,alternative="greater",conf.level=0.95)
P 0.014 (1.4%)
b) Can we state that third of the customers are buying diesel fuel in station
B?
(3p)
Command
> prop.test(210,637+210+10,p=1/3)
p-value = 5.129e-08
Decision: NO we cant
2012
2013
January
133.3
132.7
135.1
137.1
138.9
138.8
141.9
136.7
137.9
133.9
133.1
134.6
132.1
135.7
135.9
137.5
Septembe
139.6
137.7
October
138.5
132.4
135.3
130.6
132.7
131.0
Febuary
March
April
May
June
July
August
November
December
Store the data in the vectors Y12 and Y13 for the years 2012 and 2013
respectively in the order of the months.
a) Give the 90% level confidence limits for the mean price in 2013.
(2p)
Command: > t.test(Y13,conf.level=0.9)
90% limits: 133.4556
136.3278
winter
Months 03,04,05
spring
Months 06,07,08
summer
Months 09,10,11
fall
Command:
>
Season=c(rep("winter",2),rep("spring",3),rep("summer",3),rep("fall",3),"winte
r")
> summary(aov(Y13~Season))
ANOVA table:
Df
Sum Sq
Mean Sq
F value
Pr(>F
)
Season
20.97
6.99
0.881
0.49
Residuals
63.44
7.93
Decision: YES