Introduction
Introduction
Introduction
generated using Excel. Firstly, the number of rows and columns is labelled. Type the
first number of your row or column, which is 1 in a certain cell, then using the tool
“Fill”, followed by “Series”, rows of 10 and columns of 50 will be generated by filling
in the step value as 1 for both, and stop value as 10 for row, and 50 for column.
Distribution Formula
N(10,2) =NORM.INV(RAND(),10,SQRT(2))
N(10,4) =NORM.INV(RAND(),10,SQRT(4))
X(1) =CHISQ.INV(RAND(),1)
X(10) =CHISQ.INV(RAND(),10)
X(30) =CHISQ.INV(RAND(),30)
After the first cell is generated, the following cells will be filled up by dragging
the formula across the columns in order to have random variables. Then find Mean
using the formula =AVERAGE(number1, [number2], …). After that, find Variance
using the formula =VAR.P(number1, [number2], …). Before proceeding to the step,
make sure the mean and variance is close to the value that is needed, for example:
Chi-squared degree of 10 20
freedom 10
And, if the values are not close to the desired value, then at the “FORMULAS” bar,
use the tool “CALCULATE NOW” to regenerate the data until the mean and variance
are satisfying. Once satisfied, copy the values of data which are satisfying and paste
value. By using the “Paste value” tool, only the value of the copied range without
formulas and formatting will be pasted, so that the number of cells is allowed to be
extracted. After that, the range of data in the population can be determined using the
formula, to find minimum value with the formula =MIN(number1, [number2], …) and
in contrast to find maximum by using the formula =MAX(number1, [number2], …).
Lastly, the upper limit is listed, for example:
minimum 5.198212
maximum 13.86957
Upper
limit
10
11
12
13
For a 95% confidence interval, Zα/2 =Z0.025 .From the normal distribution
table ,we can find the value of the z-score by finding p-value which is 0.975. The
value of Z-score=1.96. Next put the sample size, n=10, The formula used to
calculate the confidence interval is ‾X ± Z(S ÷ √n), where ‾X= sample mean,
(formula), and S= variance,(formula).
The steps above are repeated to generate sample size 30 and 50. For
different distribution, to determine whether the data that falls between the
upper and lower value in true mean of population, the following formulae are
used.
Contain µ Formula
For part 3, tabulate the data based on the sample size and the coverage
probability for each distribution in a table in accordance to its type of distribution,
which is normal distribution and chi-squared distribution to ease the comparisons of
the distributions. The relationship between the sample size and the coverage
probability is observed. Besides that, the relationship between the underlying
population distribution and the coverage probability is observed in this part.
Introduction