2082 3

CSC328 · 2082 · 10 marks

What are the properties of random numbers? The sequence of numbers 0.23, 0.45, 0.67, 0.12, 0.89, 0.34, 0.56, 0.78, 0.19, 0.41, 0.63, 0.08, 0.85, 0.29, 0.51, 0.73, 0.16, 0.94, 0.37, 0.59 has been generated. Test for the independence among numbers in the sequence starting with index i = 2 and lag m =

What are the properties of random numbers?

The sequence of numbers 0.23, 0.45, 0.67, 0.12, 0.89, 0.34, 0.56, 0.78, 0.19, 0.41, 0.63, 0.08, 0.85, 0.29, 0.51, 0.73, 0.16, 0.94, 0.37, 0.59 has been generated. Test for the independence among numbers in the sequence starting with index $i = 2$ and lag $m = 3$ using auto-correlation test. ($\alpha = 0.05$, $Z_{\alpha/2} = 1.96$)[10]

Simulation and ModelingChapter 5: Random NumbersTests for Randomness - Uniformity and independenceNumerical: Autocorrelation test for randomness

Properties of Random Numbers and Auto-Correlation Test

Part 1: Properties of Random Numbers

Random numbers $R_i$ must satisfy two key properties:

1. Uniformity The numbers are uniformly distributed on $(0,1)$; every value is equally likely. The pdf is:

$$f(x) = \begin{cases} 1 & 0 \le x \le 1 \ 0 & \text{otherwise} \end{cases}$$

with $E(R) = \tfrac{1}{2}$ and $Var(R) = \tfrac{1}{12}$.

2. Independence The current value has no correlation with previous values; the probability of observing a value in a subinterval is independent of prior draws.


Part 2: Auto-Correlation Test

Given Data

Index12345678910
Value0.230.450.670.120.890.340.560.780.190.41
Index11121314151617181920
Value0.630.080.850.290.510.730.160.940.370.59
  • $i = 2$, $m = 3$, $N = 20$, $\alpha = 0.05$, $Z_{\alpha/2} = 1.96$

Step 1: Find M

$M$ is the largest integer such that $i + (M+1)m \le N$:

$$2 + (M+1)\cdot 3 \le 20 \Rightarrow (M+1)\cdot 3 \le 18 \Rightarrow M+1 \le 6 \Rightarrow M \le 5$$

$$\boxed{M = 5}$$

Step 2: Subsequence Values

Indices $2 + 3k$ for $k = 0,1,\dots,5$:

kIndexValue
020.45
150.89
280.78
3110.63
4140.29
5170.16

Step 3: Auto-Correlation Estimate

$$\hat{\rho}m = \frac{1}{M+1}\left[\sum{k=0}^{M} R_{i+km},R_{i+(k+1)m}\right] - 0.25$$

The summation runs $k = 0$ to $M$, giving $M+1 = 6$ products of consecutive pairs:

k$R_{i+km}$$R_{i+(k+1)m}$Product
00.450.890.4005
10.890.780.6942
20.780.630.4914
30.630.290.1827
40.290.160.0464
50.16?-

Note on convention: The standard Banks/Carson formula sums $k=0$ to $M$ using pairs $R_{i+km}\cdot R_{i+(k+1)m}$, where the last term needs $R_{i+(M+1)m} = R_{2+18} = R_{20} = 0.59$.

Including the $k=5$ term: $0.16 \times 0.59 = 0.0944$.

$$\sum_{k=0}^{5} = 0.4005 + 0.6942 + 0.4914 + 0.1827 + 0.0464 + 0.0944 = 1.9096$$

$$\hat{\rho}_m = \frac{1.9096}{5+1} - 0.25 = \frac{1.9096}{6} - 0.25 = 0.31827 - 0.25 = 0.06827$$

Step 4: Standard Deviation of the Estimate

$$\sigma_{\hat{\rho}_m} = \frac{\sqrt{13M + 7}}{12(M+1)} = \frac{\sqrt{13(5)+7}}{12(6)} = \frac{\sqrt{72}}{72} = \frac{8.4853}{72} = 0.11785$$

Step 5: Test Statistic

$$Z_0 = \frac{\hat{\rho}m}{\sigma{\hat{\rho}_m}} = \frac{0.06827}{0.11785} = 0.5793$$

Step 6: Decision

Since $|Z_0| = 0.5793 < Z_{\alpha/2} = 1.96$, we fail to reject the null hypothesis of independence.

$$\boxed{\text{The numbers are independent (no significant autocorrelation).}}$$

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.