Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

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

Expert verified
The sequence appears random; we do not reject the null hypothesis of randomness at \( \alpha = 0.05 \).

Step by step solution

01

Understand the Problem

We need to determine if the sequence of numbers given is random by using the runs test. The sequence is composed of integers 1 and 2, and our goal is to test the hypothesis on randomness at a significance level of \( \alpha = 0.05 \).
02

Identify the Runs

A 'run' is a sequence of identical numbers followed by a different number. The sequence provided can be parsed into runs: - Run 1: five 1s (1, 1, 1, 1, 1) - Run 2: one 2 - Run 3: one 1 - Run 4: one 2 - Run 5: one 1 - Run 6: one 2 - Run 7: two 2s (2, 2) - Run 8: two 1s (1, 1) - Run 9: one 2 - Run 10: one 1 - Run 11: two 1s (1, 1) - Run 12: one 2 - Run 13: two 1s (1, 1)
03

Number of Runs

Count the total number of runs in the sequence, which based on our identification is 13.
04

Calculate Expected Runs

Use the formula for expected number of runs: \[ E(R) = \frac{2n_1n_2}{n} + 1 \] where \( n_1 \) is the number of 1s (15), \( n_2 \) is the number of 2s (9), and \( n = 24 \) (the total number of values).\[ E(R) = \frac{2 \times 15 \times 9}{24} + 1 = 12.25 \]
05

Calculate Standard Deviation of Runs

The standard deviation of the number of runs \( \sigma \) is given by:\[ \sigma = \sqrt{ \frac{2n_1n_2(2n_1n_2-n_1-n_2)}{n^2(n-1)}} \]Substituting in the values provides:\[ \sigma = \sqrt{ \frac{2 \times 15 \times 9 (2 \times 15 \times 9 - 15 - 9)}{24^2 \times 23}} \approx 2.28 \]
06

Calculate the Z-value

Calculate the Z-value to determine the number of standard deviations the observed number of runs is from the expected number of runs:\[ Z = \frac{R - E(R)}{\sigma} \]Substituting in our values:\[ Z = \frac{13 - 12.25}{2.28} \approx 0.33 \]
07

Determine Critical Z-value and Decision

For a two-tailed test at \( \alpha = 0.05 \), the critical Z-value is approximately \( \pm 1.96 \). Because \( 0.33 \) is within the range of \(-1.96\) to \(1.96\), we fail to reject the null hypothesis.

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
Hypothesis testing is a fundamental concept in statistics used to determine if there is enough evidence to reject a null hypothesis. In this context, a null hypothesis is the assumption that a sequence of numbers is random. Random Hypothesis Testing aims to decide whether the observed data follows a random pattern or if there is an identifiable non-random pattern present. The Runs Test, a specific type of non-parametric test, is particularly useful for analyzing sequences consisting of two types of data points, such as the integers 1 and 2 in this exercise.

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 significance level, often denoted as \( \alpha \), is a threshold used in hypothesis testing to determine whether to reject the null hypothesis. In this exercise, the significance level is set at \( \alpha = 0.05 \). This means there is a 5% risk of rejecting the null hypothesis when it is actually true.

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
The expected number of runs, denoted as \( E(R) \), represents the number of runs we would anticipate in a sequence if it were truly random. For a sequence consisting of two types of data points, it is calculated using the formula:

\[ 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
The standard deviation of runs, represented as \( \sigma \), helps measure the variability of the number of runs from their expected number if the sequence is random. It provides insight into the spread of the data around the expected mean. The standard deviation in the context of runs is calculated using the formula:

\[ \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.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Why is the sign test the simplest nonparametric test to use?

Rank each set of data. $$ 88,465,587,182,243 $$

A researcher wishes to compare the prices for randomly selected prescription drugs in the United States with those in Canada. The same drugs and dosages were compared in each country. At \(\alpha=0.05,\) can it be concluded that the drugs in Canada are cheaper? $$ \begin{array}{l|cccccc} \text { Drug } & 1 & 2 & 3 & 4 & 5 & 6 \\ \hline \text { United States } & 3.31 & 2.27 & 2.54 & 3.13 & 23.40 & 3.16 \\ \hline \text { Canada } & 1.47 & 1.07 & 1.34 & 1.34 & 21.44 & 1.47 \end{array} $$ $$ \begin{array}{l|cccc} \text { Drug } & 7 & 8 & 9 & 10 \\ \hline \text { United States } & 1.98 & 5.27 & 1.96 & 1.11 \\ \hline \text { Canada } & 1.07 & 3.39 & 2.22 & 1.13 \end{array} $$

For Exercises 5 through \(20,\) perform these steps. a. State the hypotheses and identify the claim. b. Find the critical value(s). c. Compute the test value. d. Make the decision. e. Summarize the results. Use the traditional method of hypothesis testing unless otherwise specified. Ten college students were selected and asked how many soft drinks they drink over a twoweek period. These students were asked to replace some of the soft drinks with water in order to cut down on the amount of soft drinks that they consumed. At \(\alpha=0.10,\) was there a decrease in the amount of soft drinks consumed over a two-week period? The results are shown. $$ \begin{array}{l|cccccccccc} \text { Student } & \text { A } & \text { B } & \text { C } & \text { D } & \text { E } & \text { F } & \text { G } & \text { H } & \text { I } & \text { J } \\ \hline \text { Before } & 6 & 12 & 15 & 20 & 18 & 24 & 9 & 7 & 26 & 21 \\ \hline \text { After } & 8 & 10 & 12 & 17 & 14 & 21 & 11 & 8 & 23 & 17 \end{array} $$

List the advantages of nonparametric statistics.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free