You are on page 1of 7

REPORT (FINAL TEST)

The influence of the concentration of glucose on the absorbtion

Group : 7
Member: Đào Lương Duy Anh
Nguyễn Thành Luân

I. Basic stastistic

The concentration of glucose,Mg/l 0 2 4 6 8


the absorbtion of A 1 0.1034 0.2245 0.412 0.562 0.702
2 0.1012 0.2102 0.4 0.531 0.721
3 0.1035 0.202 0.4301 0.542 0.71

0 2 4 6 8
Mean 0.1027 0.212233 0.414033 0.545 0.711
Stdev 0.0013 0.011387 0.015153 0.015716 0.009539

¿ H 0 :μ=μ0
The null hypothes is
¿ H 1: μ ≠ μ0

The one-sample t -test statistic is

ý − μ 0
t 0=
S /√n

The 100(1 − α ) percent confidence interval on the true population mean is

ý −t α / 2 ,n −1 S / √ n≤ μ ≤ ý+ t α /2 ,n − 1 S/ √ n
 95% CI for Mean

95% 95%
lower upper
0 0.101229 0.104171
2 0.199348 0.225119
4 0.396887 0.43118
6 0.527216 0.562784
8 0.700205 0.721795

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0
0 1 2 3 4 5 6 7 8 9

 99% CI for Mean

99%lower 99%upper
0 0.100767 0.104633
2 0.195299 0.229168
4 0.391499 0.436568
6 0.521628 0.568372
8 0.696813 0.725187
0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0
0 1 2 3 4 5 6 7 8 9

 From the graph, we can see that when α=0.05 – 0.01 , the value of confidence interval
changes non-significantly.

II. Comparison design


Now consider testing the equality of the variances of two normal populations. If independent
random samples of size n1 and n2 are taken from populations 1 and 2, respectively, the test
statistic for

H 0 :σ 21=σ 22
H 1 :σ 21 < σ 22

is the ratio of the sample variances

S 22
F 0=
S 21

The appropriate reference distribution for F 0 is the F distribution with n1 −1 numerator


degrees of freedom and n2 −1 denominator degrees of freedom. The null hypothesis would be
rejected if F 0> F α /2 , n − 1 ,n −1 or if F 0< F 1 −(α / 2),n −1 , n − 1, where F a/ 2 ,n −1 , n − 1 and F 1−(a /2), n −1 ,n −1
1 2 1 2 1 2 1 2

denote the upper α /2 and lower 1 −( α/2) percentage points of the F distribution with n1 −1
and n2 −1 degrees of freedom.

Now, we use F test for variable of the concentration of glucose is 2 and 4


Sample variance ¿ ∑¿ ¿

F-Test Two-Sample for Variances

Variable Variable
  1 2
Mean 0.212233 0.414033
Variance 0.00013 0.00023
Observations 3 3
df 2 2

 
- From the table, S1=¿ 0.00013 , S2=0.00023, α=0.05.

Since S1 < S2,


F 0=3.1301, then we calculate F 0,05,2,2=¿ 19


Now, we can see that if F 0< F 0,05,2,2 so the null hypothesis cannot be rejected.
That is, we have found insufficient statistical evidence to conclude that the
variance of 2Mg/l is greater than the variance of 4Mg/l

III. Regression

y=β 0 + β 1 x 1

Source of Variation Sum of Squares Degrees of Freedom Mean Square F0

Regression S S R (10.23) k M SR M SR/ M SE

Error or residual S S E (10.24) n−k−1

Total S S T (10.25) n-1


S S R /k M SR
F 0= =
S S E / (n −k −1) M S E

2 S SR S SE
R= =1− (10.26)
S ST S ST

2
Radj =1 −
S S E /(n − p)
S S T /(n −1)
=1− (
n −1
n− p )
( 1 − R2 ) (10.27)

SUMMARY OUTPUT

Regression Statistics

R Square 0.993841
Adjusted R
Square 0.991788
Standard Error 0.022268
Observations 5

ANOVA
Significanc
  df SS MS F eF
Regression 1 0.240054 0.240054 484.0968 0.000206
Residual 3 0.001488 0.000496
Total 4 0.241541      

Coefficient Standard Upper


  s Error t Stat P-value Lower 95% 95%
Intercept 0.08712 0.017249 5.05073 0.014972 0.032226 0.142014
X Variable 1 0.077468 0.003521 22.0022 0.000206 0.066263 0.088674
∑ ( x i − x́ ) ( y i − ý )
β 1= 2 β 0= ý −b 1 x́
∑ ( x i − x́ )

If H 0 : β j=0 is not rejected, then this indicates that x j can be deleted from the model. The test statistic
for this hypothesis is

β́ j
t 0=
√ σ́ 2
C jj

se ⁡( β́ j )= √ σ́ C jj
2

 The test of significance of regression


Hypotheses
H 0 : β 1=β 2=0
H 1 : β j ≠ 0 for at least one j

From table, we have F 0=484.0968 , then we calculate F 0.05,1,3=¿ 10.12796

 F 0> F 0.05,1,3 , we can reject H 0 . Therefore, we could conclude that at least one of the two
variables has nonzero regression coefficient.

- Sử dụng khoảng ước lượng các hệ số hồi quy


y=β 1 + β 2 x 1
Giả thuyết:
Test H 0 : β 2=0 => x không ảnh hưởng đến y => không có ý nghĩa thống kê.
H 1 : β2 ≠ 0=¿ có ý nghĩa thống kê

− dùng khoảng ước lượng với độ tin cậy (1− α ).100 % để kiểm định
β 2= β́ 2 ± t n −2 ,α /2 . se ⁡( β́ 2 )
quy tắc bác bỏ: nếu giá trị 0 không thuộc khoảng tin cậy trên, ta bác bỏ giả thuyết
khác 0.

- Sử dụng P-value
Test H 0 : β 2=0
H 1 : β2 ≠ 0
Dùng p-value, khi đó quy tắc bác bỏ: bác bỏ H 0 khi p-value < α

Sử dụng giá trị tới hạn Test H 0 : β 2=0


H 1 : β2 ≠ 0
β́2
Trị thống kê: t=
se ⁡( β́ 2 )
Quy tắc bác bỏ:

You might also like