Question

In: Statistics and Probability

FiveThirtyEight, a website that tells interesting stories based on statistical analysis, recently published an article about...

FiveThirtyEight, a website that tells interesting stories based on statistical analysis, recently published an article about candy rankings. To compare the sugar amounts in different types of candies, researchers randomly selected six brand name candies for three different types of candies: chocolate only, fruit‑flavored, and chocolate and nougat. The table lists the sugar percentages.

Chocolate Only Fruit‑Flavored Chocolate and Nougat
0.732 0.906 0.604
0.197 0.270 0.604
0.465 0.732 0.546
0.127 0.046 0.604
0.430 0.732 0.732
0.430 0.732 0.604

To find out whether the sugar percentages for these three types of candies are different, researchers conducted a Kruskal‑Wallis hypothesis test. State the distribution of the Kruskal‑Wallis test statistic, H, and use software to determine the value of .H. You might find some software manuals useful.

The sampling distribution for the Kruskal‑Wallis test statistic is approximately

with

degrees of freedom.

Calculate the test statistic. Round to three decimal places.

H=

Solutions

Expert Solution

H0: Sugar percentages for these three types of candies are same.

H1: Sugar percentages for these three types of candies are different.

Degree of freedom = Number of columns - 1 = 3 - 1 = 2

The sampling distribution for the Kruskal‑Wallis test statistic is approximately Chi Square distribution with 2 degrees of freedom.

Use the below code in R to run the Kruskal‑Wallis test.

# Load the data
sugar <- c(0.732,0.197,0.465,0.127,0.430,0.430,
0.906,0.270,0.732,0.046,0.732,0.732,
0.604,0.604,0.546,0.604,0.732,0.604)
# Create vectors of factors (5 levels) for Lake varieties
candies=factor(c(rep(1,6),rep(2,6),rep(3,6)))

# Run the Kruskal-Wallis test
kruskal.test(sugar~candies)

The output of the code is,

   Kruskal-Wallis rank sum test

data: sugar by candies
Kruskal-Wallis chi-squared = 3.2985, df = 2, p-value = 0.1922

From the output, the test statistic H = 3.299

p-value = 0.1922

Since p-value is greater than the significance level of 0.05, we fail to reject the null hypothesis and conclude that there is no significant evidence that sugar percentages for these three types of candies are different.


Related Solutions

A recently published analysis examined 10 studies that measured optimism and pessimism by asking participants about...
A recently published analysis examined 10 studies that measured optimism and pessimism by asking participants about their level of agreement with statements like “In uncertain times, I usually expect the best,” or “I rarely expect good things to happen to me”. Optimistic people tend to expect that they will encounter favorable outcomes, whereas less optimistic people tend to expect that they will encounter unfavorable outcomes. These studies also measured other variables on participants, including factors related to heart disease. The...
Writing assignments using an article recently published ( please provide the source cause it is the...
Writing assignments using an article recently published ( please provide the source cause it is the key of this assignment!! ). Your topic does not have to be restricted to accounting topics. The article MUST BE RESEARCHED USING THE INTERNET. Your Accounting article have to be from The CPA Journal, Journal of Accountancy or Accountant Today. The articles must be published in 2017 or 2018 and must contain at least 2 pages (equivalent to 8.5”x11”) of text. Each topic is...
This question is based on the article, "The German economy: Clouds ahead", published by The Economist...
This question is based on the article, "The German economy: Clouds ahead", published by The Economist on June 7, 2014 (located at the end of the question) (a) According to the article, German labor market has done well since the second half of 2000s. What are the two main reasons given by the article for this outcome? Please support your conclusions with appropriate quotations from the article. (b) The article points out that Germany has been under-investing between the early...
Systematic reviews are not free of biases. A meta-analysis was recently published that examined the association...
Systematic reviews are not free of biases. A meta-analysis was recently published that examined the association both red and processed) meat consumption and colorectal cancer. In their results the authors reported that the publication bias was in the studies on processed meat and colon cancer, noting that small studies with inverse missing. When present publication bias with these characteristics is most likely to lead to: a over-estimation of the association between an exposure and an outcome. b.confounding the association between...
A recently published article included data from a survey of 2186 hiring managers and human resource...
A recently published article included data from a survey of 2186 hiring managers and human resource professionals. The article noted that many employers are using social networks to screen job applicants and that this practice is becoming more common. Of the 2186 people who participated in the survey, 1312 indicated that they use social networking sites (such as Facebook, MySpace, and LinkedIn) to research job applicants. Based on the survey data, is there convincing evidence that fewer than two-thirds of...
Which of the following people published an article in the Harvard Business Review about the potential...
Which of the following people published an article in the Harvard Business Review about the potential sources of sales growth? Steve Jobs Igor Ansoff Michael Porter Warren Buffett What was the type of matrix discussed in the lecture? BCG matrix attribute-by-segment matrix Ansoff’s matrix chart matrix When a business is selling its current customers more of its current offerings, this is known as ______________. market development sales penetration market situation market penetration A situation where you have a business that...
what os found to be interesting about the article of where consumer reports stands on provacy...
what os found to be interesting about the article of where consumer reports stands on provacy issues? How could it affect the lifestyle?
Select one quantitative nursing research article that uses statistical analysis and review the data analysis section....
Select one quantitative nursing research article that uses statistical analysis and review the data analysis section. Do not just summarize the article. Critique the statistical analysis used in the article. Was it appropriate? What were the results of the analysis? What are the limitations of the analysis? Please come with problems that you encountered in understanding the analysis. What questions do you have regarding quantitative analysis not just for your project, but also in relation to reading and critiquing research?
Select one quantitative nursing research article that uses statistical analysis and review the data analysis section....
Select one quantitative nursing research article that uses statistical analysis and review the data analysis section. Do not just summarize the article. Critique the statistical analysis used in the article. Was it appropriate? What were the results of the analysis? What are the limitations of the analysis? Please come with problems that you encountered in understanding the analysis. What questions do you have regarding quantitative analysis not just for your project, but also in relation to reading and critiquing research?
A newspaper published an article about a study in which researchers subjected laboratory gloves to stress....
A newspaper published an article about a study in which researchers subjected laboratory gloves to stress. Among 225 vinyl? gloves, 60?% leaked viruses. Among 225 latex? gloves, 9?% leaked viruses. Using the accompanying display of the technology? results, and using a 0.05 significance? level, test the claim that vinyl gloves have a greater virus leak rate than latex gloves. Let vinyl gloves be population 1. Technology Results::: Pooled? proportion: 0.35 Test? statistic, z: 11.2921 Critical? z: 1.6449 ?P-value: 0.0000 90?%...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT