what different with those question. pl answer question 2 use R studio
1.What is the value of the chi square test statistic (2dp) for the following dataset? Blue eyes with purple hair=56, blue eyes with green hair=84, Yellow eyes with purple hair=32, yellow eyes with green hair = 17.
2.Calculate expected cell count (2dp) for people with blue eyes and purple hair from the following dataset: Blue eyes with purple hair=56, blue eyes with green hair=84, Yellow eyes with purple hair=32, yellow eyes with green hair = 17.
R- Code
observed_table <- matrix(c(56, 32, 84, 17), nrow = 2, ncol =
2, byrow = T)
rownames(observed_table) <- c('Purple Hair', 'Green Hair')
colnames(observed_table) <- c('Blue Eyes', 'Yellow Eyes')
observed_table
X <- chisq.test(observed_table)
X
X$expected
--------
Output(1)
> observed_table
Blue Eyes Yellow Eyes
Purple Hair 56 32
Green Hair 84 17
> X <- chisq.test(observed_table)
> X
Pearson's Chi-squared test with Yates' continuity correction
data: observed_table
X-squared = 8.3525, df = 1, p-value = 0.003852
--------------------------
Output(2) Expected value table
> X$expected
Blue Eyes | Yellow Eyes | |
Purple Hair | 65.18519 | 22.81481 |
Green Hair | 74.81481 | 26.18519 |
what different with those question. pl answer question 2 use R studio 1.What is the value...
pl use r studio to do that 1 Calculate expected cell counts (2dp) for people with blue eyes and purple hair from the following dataset: Blue eyes with purple hair=56, blue eyes with green hair=84, Yellow eyes with purple hair=32, yellow eyes with green hair = 17. 2 Determine Spearman’s Rho coefficient for the following data. x<-c(56,56,65,65,50,25,87,44,35) y<-c(87,91,85,91,75,28,122,66,58)
Plain M&M's come in 6 different colors (Blue, Orange, Green, Yellow, Red, Brown) and are produced at two different plants. M&M's that come from a plant in Tennessee are supposed to have the following distribution of colors: 20.7% Blue; 20.5% Orange; 19.8% Green; 13.5% Yellow; 13.1% Red and 12.4% Brown. Quality control at the plant is concerned the machine is not working correctly and that it is producing a different distribution of colors. They take a random sample of 940...
just need help finding p-value
''ill 94% 1:45 PM Question 7 Show Attempt History Current Attempt in Progress People Favarite Skittlees Flavar Skittles area popialar fruity candy with five ditferent flavors (colored green, orange. purple. red, and yellow) sample of people recorded their favorite flavor and the results are shown in the table below. Performa chi-square test, as indicated in the steps bnlow to see whether or not the fiavors are equally popular. Green Orange Piurple Red Yellow Table 1...
Please Give Handwritten Answer
10. The following data shows the number of different type of students that have received distinction or not. Grade Course accounting economics math distinction 32 29 34 pass 21 17 46 fail 56 32 18 Test the null-hypothesis that there is no association between student type and distinction using a Chi-square test. What is the test statistic (the chi-square sum, the uncorrected one, not the Yates corrected chi-square)? Use at least 4 decimals in all your...
Which of the following statements are correct about the phi-coefficient? Check all that apply. X It can be used as a measure of effect size. It is determined only by the proportions in a 2 x 2 data matrix x It is the same as Cramer's V when the data are a 2 x 2 matrix. It can be used as a measure of the significance of a relationship between two dichotomous variables. Suppose you are looking at the relationship...
Effect size for the chi-square test for independence 1.Which of the following statements are correct about the phi-coefficient? Check all that apply. a.It can be used as a measure of the significance of a relationship between two dichotomous variables. b.It is the same as Cramer’s V when the data are a 2 x 2 matrix. c.It can be used as a measure of the strength of a relationship between two dichotomous variables. d.It can be used as a measure of...
11. Effect size for the chi-square test for independence Aa Aa Which of the following statements are correct about the phi-coefficient? Check all that apply. It is determined only by the proportions in a 2 x 2 data matrix. It is the same as Cramer's V when the data are a 2 x 2 matrix. It can be used as a measure of the significance of a relationship between two dichotomous variables. * It can be used as a measure...
1. What would be the phenotype for each of the following birds, including their gender? Color Gender Bb ZZi: - bb ZiZi: - BB ZZ: - bb ZW: - Bb ZiW: - 2. Using the phenotypes of the parents and of the progeny given in table 1, determine the genotype of each parent in the first nest. Male Female 3. Using the phenotypes of the parents and of the progeny given in table 2, determine the genotype of each parent...
Please answer these two sub-parts
please answer only 10. Chi Square one. Give Handwritten. Ignore all
the above questions
Question 4 (20 points) A firm has the following short-run production function as follows: Q = 15L + 18L2 – 0.5L}, where Q = total products per period and L = number of workers employed per period. 4.3) (6 points) Determine the boundaries (ranges of number of workers) for the three stages of production process . Stage 1: Stage II: •...
1. Use the data in the contingency table to answer the question. Columns Rows 1 2 3 Total 1 36 35 92 163 2 67 57 113 237 Total 103 92 205 400 You wish to test the null hypothesis of "independence"—that the probability that a response falls in any one row is independent of the column it falls in—and you plan to use a chi-square test. You are given that there are 2 degrees of freedom associated with the...