4.7.1. Consider Example 4.7.2. Suppose the observed frequencies of A₁,..., A4 are 20, 30, 92, and 105, respectively. Modify the R code given in the example to calculate the test for these new frequencies. Report the p-value.

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section10.6: Summarizing Categorical Data
Problem 42PFA
icon
Related questions
Question
Please skip the part where you are asked to use or modify R codes.
=
Example 4.7.2. A point is to be selected from the unit interval {x : 0 < x < 1}
by a random process. Let A₁ {x: 0 < x≤ }, A₂ = {x : } < x ≤ ½}, A3 =
{x : ½ < x ≤ ³}, and A4 = {x : ³ < x < 1}. Let the probabilities pi, i = 1, 2, 3, 4,
assigned to these sets under the hypothesis be determined by the pdf 2x, 0 < x < 1,
zero elsewhere. Then these probabilities are, respectively,
=
286
P10 =
1/4
²
3
2x dx = 16, P20 = 16' P30 =
5
16'
of Q3 = (Xi - npio)²/(npio) is
(6-5)² (18 - 15)²
15
+
5
P40 =
Thus the hypothesis to be tested is that p1, P2, P3, and p4 = 1- P1 P2 - p3 have
the preceding values in a multinomial distribution with k = 4. This hypothesis is
to be tested at an approximate 0.025 significance level by repeating the random
experiment n = 80 independent times under the same conditions. Here the npio for
i = 1, 2, 3, 4, are, respectively, 5, 15, 25, and 35. Suppose the observed frequencies
of A1, A2, A3, and A4 are 6, 18, 20, and 36, respectively. Then the observed value
7
16.
Some Elementary Statistical Inferences
(20 - 25)² (36 - 35)² 64
+
+
25
35
35
-
1.83.
The following R segment calculates the test and p-value:
x=c (6, 18, 20,36); ps-c (1,3,5,7)/16; chisq.test(x, p-ps)
X-squared
1.8286, df = 3, p-value = 0.6087
Hence, we fail to reject Ho at level 0.0250.
Transcribed Image Text:= Example 4.7.2. A point is to be selected from the unit interval {x : 0 < x < 1} by a random process. Let A₁ {x: 0 < x≤ }, A₂ = {x : } < x ≤ ½}, A3 = {x : ½ < x ≤ ³}, and A4 = {x : ³ < x < 1}. Let the probabilities pi, i = 1, 2, 3, 4, assigned to these sets under the hypothesis be determined by the pdf 2x, 0 < x < 1, zero elsewhere. Then these probabilities are, respectively, = 286 P10 = 1/4 ² 3 2x dx = 16, P20 = 16' P30 = 5 16' of Q3 = (Xi - npio)²/(npio) is (6-5)² (18 - 15)² 15 + 5 P40 = Thus the hypothesis to be tested is that p1, P2, P3, and p4 = 1- P1 P2 - p3 have the preceding values in a multinomial distribution with k = 4. This hypothesis is to be tested at an approximate 0.025 significance level by repeating the random experiment n = 80 independent times under the same conditions. Here the npio for i = 1, 2, 3, 4, are, respectively, 5, 15, 25, and 35. Suppose the observed frequencies of A1, A2, A3, and A4 are 6, 18, 20, and 36, respectively. Then the observed value 7 16. Some Elementary Statistical Inferences (20 - 25)² (36 - 35)² 64 + + 25 35 35 - 1.83. The following R segment calculates the test and p-value: x=c (6, 18, 20,36); ps-c (1,3,5,7)/16; chisq.test(x, p-ps) X-squared 1.8286, df = 3, p-value = 0.6087 Hence, we fail to reject Ho at level 0.0250.
4.7.1. Consider Example 4.7.2. Suppose the observed frequencies of A₁,..., A4
are 20, 30, 92, and 105, respectively. Modify the R code given in the example to
calculate the test for these new frequencies. Report the p-value.
Transcribed Image Text:4.7.1. Consider Example 4.7.2. Suppose the observed frequencies of A₁,..., A4 are 20, 30, 92, and 105, respectively. Modify the R code given in the example to calculate the test for these new frequencies. Report the p-value.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

DEGREES OF FREEDOM=n-1=3

but n=247 right?

also how did you did significant level = .025

did you use any table or any other sources ?

how x^2 3,0.025= 9.348? any table or formula?

Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question

how did you get (o-E)^2/E=10.23

 (247-247)^2/247=0

PLEASE EXPLAIN

Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Functions and Change: A Modeling Approach to Coll…
Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning