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.
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
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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F32f77ee0-291c-46d0-b315-80fb2fd096d8%2Fd81dde56-33d7-41cb-84a6-880f2c8df485%2Fw8wcq3r_processed.jpeg&w=3840&q=75)
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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F32f77ee0-291c-46d0-b315-80fb2fd096d8%2Fd81dde56-33d7-41cb-84a6-880f2c8df485%2Fbx93jf2h_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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
Follow-up Question
how did you get (o-E)^2/E=10.23
(247-247)^2/247=0
PLEASE EXPLAIN
Solution
Recommended textbooks for you
![Glencoe Algebra 1, Student Edition, 9780079039897…](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
![Big Ideas Math A Bridge To Success Algebra 1: Stu…](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
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…](https://www.bartleby.com/isbn_cover_images/9780547587776/9780547587776_smallCoverImage.jpg)
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
![Glencoe Algebra 1, Student Edition, 9780079039897…](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
![Big Ideas Math A Bridge To Success Algebra 1: Stu…](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
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…](https://www.bartleby.com/isbn_cover_images/9780547587776/9780547587776_smallCoverImage.jpg)
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
![Functions and Change: A Modeling Approach to Coll…](https://www.bartleby.com/isbn_cover_images/9781337111348/9781337111348_smallCoverImage.gif)
Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning