Chapter 13: Problem 18
Random Numbers Random? A calculator generated these integers randomly. Apply the runs test to see if you can reject the hypothesis that the numbers are truly random. Use \(\alpha=0.05 .\) $$ \begin{array}{lllllllllll} 1 & 1 & 1 & 1 & 1 & 1 & 2 & 1 & 1 & 1 & 1 \\ 2 & 2 & 1 & 2 & 1 & 2 & 2 & 1 & 2 & 1 & 1 \\ 2 & 1 & 1 & & & & & & & & \end{array} $$
Short Answer
Step by step solution
Understand the Problem
Identify the Runs
Number of Runs
Calculate Expected Runs
Calculate Standard Deviation of Runs
Calculate the Z-value
Determine Critical Z-value and Decision
Unlock Step-by-Step Solutions & Ace Your Exams!
-
Full Textbook Solutions
Get detailed explanations and key concepts
-
Unlimited Al creation
Al flashcards, explanations, exams and more...
-
Ads-free access
To over 500 millions flashcards
-
Money-back guarantee
We refund you if you fail your exam.
Over 30 million students worldwide already upgrade their learning with Vaia!
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
Random Hypothesis Testing
When applying the Runs Test, we analyze the "runs" within the sequence—these are uninterrupted sequences of identical numbers. A hypothesis test is conducted based on the number of runs in the data, allowing us to evaluate the randomness. If the number of observed runs significantly deviates from what we expect under randomness, we may conclude that the sequence does not behave randomly.
Significance Level Alpha
The choice of \( \alpha \) affects how conservative or liberal the test is. A smaller \( \alpha \) (e.g., 0.01) requires stronger evidence against the null hypothesis before rejecting it, whereas a larger \( \alpha \) (e.g., 0.10) allows for a more lenient rejection threshold. In the Runs Test, the calculated Z-value is compared against critical values, and if the Z-value falls within the range determined by the significance level (in this case, between approximately -1.96 and 1.96 for a two-tailed test), we fail to reject the null hypothesis.
Expected Number of Runs
\[ E(R) = \frac{2n_1n_2}{n} + 1 \]
where:\
- \
- \( n_1 \) is the count of the first type of data point (e.g., the number of 1s), \
- \( n_2 \) is the count of the second type of data point (e.g., the number of 2s), \
- \( n \) is the total number of observations. \
In this exercise, we're analyzing a sequence with \( n_1 = 15 \) for 1s and \( n_2 = 9 \) for 2s, leading to an expected number of runs \( E(R) = 12.25 \). This value is crucial as it establishes the basis for comparison with the actual number of observed runs.
Standard Deviation of Runs
\[ \sigma = \sqrt{ \frac{2n_1n_2(2n_1n_2-n_1-n_2)}{n^2(n-1)}} \]
where:\
- \
- \( n_1 \) and \( n_2 \) are the counts of each type of data point, \
- \( n \) is the total number of data points. \
For the sequence analyzed in the exercise, \( \sigma \) is approximately 2.28. This statistic is key for establishing the critical region in hypothesis testing—essentially allowing us to gauge how much deviation from the expected number of runs is significant.