Question

In: Statistics and Probability

Data below shows counts of males and females in a sample population and the political party...

Data below shows counts of males and females in a sample population and the political party they voted for.

  • Create the observations matrix using the provided R syntax below
  • Select the appropriate statistical test,
  • Formulate the null hypothesis in your own words,
  • Compute the test statistic,
  • Find the critical value in Chi square table with the corresponding degrees of freedom
  • Find and interpret the statistical decision at the 0.01 significance level

# Gender and political affiliation

observed <- as.table(rbind(c(762, 327, 468), c(484, 239, 477)))

dimnames(observed) <- list(gender = c("F", "M"), party = c("Democrat","Independent", "Republican"))

observed

Solutions

Expert Solution


Related Solutions

Consider below dataframe, df2, which provides the number of males and females in a population as...
Consider below dataframe, df2, which provides the number of males and females in a population as well as their socio-economic breakdown. Provide python codes to calculate following probabilities: (2.a) For a randomly selected person from this population, probability of being female ("F") (2.b) For a randomly selected person from this population, probability of being working class ("working") (2.c) For a randomly selected person from this population, joint probability of being male ("M") and middle class ("middle") df2 = pd.DataFrame({"M": [30,250,20],...
A population of 20,000 students at UCSC. 10,400 are Males, 9,200 are Females, and 400 are...
A population of 20,000 students at UCSC. 10,400 are Males, 9,200 are Females, and 400 are Other. You take a random sample of n = 100 students. Sample has: 52 Male, 46 Female, 2 Other. In this case, the Chance Error is 0%. *(But it won’t always be 0, in other cases!).    *(For A, B: SHOW YOUR WORK!) A) What is the Population Percentage (e.g., composition)? (HINT: Is it 50%-50%? Something else? Etc.) B) What is the Sample Percentage...
A recent study shows that unemployment does not impact males and females in the same way...
A recent study shows that unemployment does not impact males and females in the same way (Newsweek, April 20, 2009). According to a Bureau of Labor Statistics report, 8.5% of those who are eligible to work are unemployed. The unemployment rate is 8.8% for eligible men and only 7.0% for eligible women. Suppose 52% of the eligible workforce in the U.S. consists of men. a. You have just heard that another worker in a large firm has been laid off....
Compare the mean hours of sleep for males and the mean for females in these data....
Compare the mean hours of sleep for males and the mean for females in these data. Compare the values and explain what can be concluded based on the numbers. Mean hours of sleep for males: 7.556 Mean hours of sleep for females: 6.824 Female Hours of Sleep: 7 5 7 6 8 7 8 8 4 8 7 6 8 5 8 7 7 Male Hours of Sleep: 7 5 8 8 6 8 8 8 10 7 7 4...
A sample of 150 individuals (males and females) was surveyed, and the individuals were asked to...
A sample of 150 individuals (males and females) was surveyed, and the individuals were asked to indicate their yearly incomes. Their incomes were categorized as follows. Category 1 $20,000 up to $40,000 Category 2 $40,000 up to $60,000 Category 3 $60,000 up to $80,000 Income Category Male Female Category 1 10 30 Category 2 35 15 Category 3 15 45 We want to determine if yearly income is independent of gender. a. Compute the test statistic. b. Using the p-value...
In the USA, 29% of the population are males. Data indicates that 42% of the males...
In the USA, 29% of the population are males. Data indicates that 42% of the males watch tv while 18% of the females watch tv. Using Bayes’ Theorem, write out the formula with variables then with the numbers, and calculate P(females/watch tv) Using N=100 draw and label a tree diagram Using N=100, draw and label a cross tab table. Using the cross table above: Verify by numerator and denominator, P(females/watch tv) in a P(X=male/do not watch tv)e P(X=male and watch...
Data set used for females and males on ADHD medications. Explain this data for a research...
Data set used for females and males on ADHD medications. Explain this data for a research paper doing a t-test. The hypothesis is that gender plays a role in youth being put on medications---more males are put on medications than females. Females: 33, 29, 35, 39, 39, 41, 25, 33, 38 Males: 46, 43, 42, 46, 44, 47, 50, 43, 39 I received the statistical computation for this data set. How can this be explained in words for a research...
A recent study of high school students shows the percentage of females and males who have...
A recent study of high school students shows the percentage of females and males who have at LEAST one notation in their school record for inappropriate behavior. A simple random sample of high school students was interviewed. The students were asked whether they had a notation for inappropriate behavior in their school record. Of the 100 females, 21 answered yes, as did 145 of the 400 males. Part A: Construct and interpret a 99% confidence interval for the difference in...
) A sample of 15 graduating students, 15 females and 5 males, was randomly selected. Their...
) A sample of 15 graduating students, 15 females and 5 males, was randomly selected. Their GPAs were recorded, and the ranks of these GPAs for the pooled sample are presented below. Test the following hypothesis: H0: There is no difference in GPAs between the genders? Use the Mann-Whitney test. Males Females 11 1 12 2 3 13 14 4 6 5 15 7 8 9 10 Calculated test statistic: Critical value of the test statistic: Decision rule: Decision:
Assume that a human population consists of 5,000 reproducing females and 7,000 reproducing males. (a) What...
Assume that a human population consists of 5,000 reproducing females and 7,000 reproducing males. (a) What is the effective population size on the autosomes? (b) What is the expected time (in generations) for a pair of autosomes to coalesce? (c) What is the effective population size on the Y-chromosome? (d) What is the expected time (in generations) for a pair of Y chromosomes to reach their most recent common ancestor?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT