You are on page 1of 3

Stability testing Excel file

Purpose: 1) Calculate C.I.s and P.I.s for many values of X


2) Plot the C.I. and P.I. bands on a scatter plot with an estimated regression line
Note:

For modification of the spreadsheet:


1) Cells with characters in red need to be changed by the user. The plot and all the
formulas are updated when they are changed.
2) Cells with characters in black should not be changed by
the user

Time
(Months)
3
6
9
12
15
18
21
24
30
36
48
60

Potency
101.6%
99.7%
97.6%
98.0%
96.7%
96.7%
95.0%
95.9%
95.2%
93.7%
91.0%
90.0%

Beta_hat_0
1.0024
Beta_hat_1
-0.0018
X_bar
23.50
n
12
a
0.05
t dist. value
2.2281
MSE
8.4961E-05
Lower Limit:
90%
Shelf Life:
56

Y_hat
0.9968
0.9913
0.9858
0.9803
0.9748
0.9692
0.9637
0.9582
0.9472
0.9361
0.9140
0.8920
SUM:

Months

(X-X_bar)^2 Low C.I.


420.25
0.9874
306.25
0.9827
210.25
0.9779
132.25
0.9731
72.25
0.9681
30.25
0.9630
6.25
0.9577
0.25
0.9523
42.25
0.9408
156.25
0.9287
600.25
0.9035
1332.25
0.8776
3309.00

Up C.I.
1.0063
0.9999
0.9937
0.9875
0.9814
0.9755
0.9697
0.9641
0.9535
0.9435
0.9246
0.9063

Low P.I.
0.9742
0.9690
0.9638
0.9585
0.9532
0.9478
0.9423
0.9368
0.9257
0.9143
0.8909
0.8669

Up P.I.
1.0194
1.0136
1.0078
1.0020
0.9963
0.9907
0.9851
0.9796
0.9687
0.9579
0.9371
0.9170

Potency vs. Time


105%

Potency

100%

95%

90%

85%
0

10

15

20

25

30
Time

35

40

45

50

55

60

y = -0.0018x + 1.0024
R = 1

Data
Y_hat
Low_CI
Up_CI
Low_PI
Series6
Linear (Y_hat)

The data plotted is on the Data


sheet. The confidence and
prediction interval bands are
plotted by first plotting the
lower and upper bounds for the
intervals at the time points
specified on the data sheet.
These points are joined
together by using Excel's
"smoothed line" option.

You might also like