Question

Given contingency table for simultaneous occurance of two categorical random variables X (levels A,B,C) and Y...

Given contingency table for simultaneous occurance of two categorical random variables X (levels A,B,C) and Y (levels L1,L2,L3)

L1 L2 L3
A 20 40 20
B 40 30 15
C 45 50 30

Determine the marginal probability P ( Y = L 1 ) =  (round to the third decimal place)

Determine the conditional probability P ( X = A | Y = L 1 ) =  (round to the second decimal place)

Use R to conduct a chi-square test of independence and thus determine

  • Number of degrees of freedom DF=
  • Ch-square, round to two decimal places=
  • p-value, round to two decimal places=
  • Make your conclusion at 5% significance. Enter the correct answer using the following options:  (type the corresponding capital letter, do not type the "dot" at the end)
    1. Not independent at 5% significance level.
    2. Independent with 95% confidence.
    3. Do not reject that they are independent at 5% significance level and reserve judgement. We may accept independence, but with some unknown probability.
    4. Reject both, H0 and H1, the test has failed.
    5. Accept both, H0 and H1, the test has failed.

Homework Answers

Answer #1

The marginal probability, P(Y=L1) = Number of occurances corresponding to L1/ Total number of occurances = (20+40+45)/ (20+40+20+40+30+15+45+50+30) = 105/ 290 = 0.362

Now, P(X=A | Y = L1) = P(X=A , Y = L1) / P(Y = L1) = Number of simultaneous occurance of A and L1/ Number of occurances of L1 = 20/(20+40+45) = 0.190

x<-c(rep("A",80),rep("B",85),rep("C",125))
y<-c(rep("L1",20),rep("L2",40),rep("L3",20),rep("L1",40),rep("L2",30),rep("L3",15),
     rep("L1",45),rep("L2",50),rep("L3",30))

tbl<-table(x,y)
tbl

chi<-chisq.test(tbl)
chi

Result of chi-square test :-

Degrees of freedom = 4

Chi-square = 9.04

p-value = 0.06

At 5% level of significance our conclusion would be, B

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 84 51 135 B 91 54 145 C 77 77 154 Column Total 252 182 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 86 49 135 B 92 53 145 C 79 75 154 Column Total 257 177 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 86 49 135 B 89 56 145 C 74 80 154 Column Total 249 185 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 90 45 135 B 94 51 145 C 78 76 154 Column Total 262 172 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 91 44 135 B 94 51 145 C 80 74 154 Column Total 265 169 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 83 52 135 B 92 53 145 C 75 79 154 Column Total 250 184 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 85 50 135 B 95 50 145 C 79 75 154 Column Total 259 175 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 90 45 135 B 93 52 145 C 76 78 154 Column Total 259 175 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
Perform a hypothesis test for the mean for the following sample. The significance level alpha is...
Perform a hypothesis test for the mean for the following sample. The significance level alpha is 5%. Sample: 7.9, 8.3, 8.4, 9.6, 7.7, 8.1, 6.8, 7.5, 8.6, 8, 7.8, 7.4, 8.4, 8.9, 8.5, 9.4, 6.9, 7.7. Test if mean≠8.7. Assume normality of the data. 1 Formulate the hypothesis by entering the corresponding signs: "<", ">", "=" or "≠" and numbers. Hint: in your answers use "<>" instead of "≠". H0: mean   H1:mean   2 p-value (rounded to three decimal places): 3...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of...
The following table shows ceremonial ranking and type of pottery sherd for a random sample of 434 sherds at an archaeological location. Ceremonial Ranking Cooking Jar Sherds Decorated Jar Sherds (Noncooking) Row Total A 82 53 135 B 95 50 145 C 77 77 154 Column Total 254 180 434 Use a chi-square test to determine if ceremonial ranking and pottery type are independent at the 0.05 level of significance. (a) What is the level of significance? State the null...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT