Question

In: Statistics and Probability

The given stemplot shows the percentages of adults aged 18–34 who were considered minorities in each...

The given stemplot shows the percentages of adults aged 18–34 who were considered minorities in each of the states and the District of Columbia.

0 8 8 9
1 1 5 5 6 7 8 9
2 0 2 2 3 3 3 3 3 3 6 7 7 8
3 0 1 1 1 4 5 7 9 9
4 0 1 1 1 2 5 8 8
5 1 1 1 2 2 3 4
6 1 7 7
7 5

(a) Make another stemplot of this data by splitting the stems, placing leaves 00 to 44 on the first stem and leaves 55 to 99 on the second stem of the same value.

(b) Create a histogram that uses class intervals that give the same pattern as the stemplot you created with the split stems. It might be a good idea to do this by hand. If you use software, you may have to adjust the settings in order to get a histogram that matches the stemplot exactly.

Solutions

Expert Solution

RStudio-RNotebook

We are given stem and leaf plot of percentages of of adults aged 18–34 who were considered minorities in each of the states and the District of Columbia.

```{r}
df1 <- data.frame(
  Stem = c(0,1,2,3,4,5,6,7),
  Leaf = c('8 8 9', '1 5 5 6 7 8 9', '0 2 2 3 3 3 3 3 3 6 7 7 8', '0 1 1 1 4 5 7 9 9', '0 1 1 1 2 5 8 8', '1 1 1 2 2 3 4', '1 7 7', '5')
)
pander::pander(df1)
```


### Part a

Split the stems, placing leaves 00 to 44 on the first stem and leaves 55 to 99 on the second stem of the same value

---

Example - 

For old stem 2 the leaves are "0 2 2 3 3 3 3 3 3 6 7 7 8".

Leaves "0 2 2 3 3 3 3 3 3" fall under 00-44 split.

Leaves "6 7 7 8" fall under 55-99 split.

Frequency is then count of leafs on new stems. 

New stem 2(00-44) has 9 leaves.

New stem 2(55-99) has 4 leaves.

---

Applying the same to all new stems.


```{r}
df2 <- data.frame(
  Stem_old = c(0,1,1,2,2,3,3,4,4,5,6,6,7),
  Stem_new = c('0(55-99)', '1(00-44)', '1(55-99)', '2(00-44)', '2(55-99)', '3(00-44)', '3(55-99)', '4(00-44)', '4(55-99)', '5(00-44)', '6(00-44)', '6(55-99)', '7(55-99)'),
  Leaf = c('8 8 9', '1', '5 5 6 7 8 9', '0 2 2 3 3 3 3 3 3', '6 7 7 8', '0 1 1 1 4', '5 7 9 9', '0 1 1 1 2', '5 8 8', '1 1 1 2 2 3 4', '1', '7 7', '5'),
  Split = c("55-99","00-44","55-99","00-44","55-99","00-44","55-99","00-44","55-99","00-44","00-44","55-99","55-99"),
  Freq = c('3', '1', '6', '9', '4', '5', '4', '5', '3', '7', '1', '2', '1')
)
pander::pander(df2)
```

---

### Part b

Plot the histogram using new stems on x axis and count of leaves for each new stem on y axis.

```{r, warning=FALSE}
library(ggplot2)
ggplot(df2) + theme_linedraw() + geom_histogram(aes(x = Stem_new, y = Freq), stat = "identity") + xlab("Stem")
```


Related Solutions

In a study of texting speed, 45 adults aged 18-22 were randomly chosen. Each person was...
In a study of texting speed, 45 adults aged 18-22 were randomly chosen. Each person was asked to type the following phrase exactly “Hi! What’s up?” on a cell phone. The average time it took was 2.72 seconds. This was found to happen with about a 25% chance when compared to someone saying it takes less than 3 seconds to type. 1.) Identify the following: a. Population: ______________________________________________ b. Sample: _________________________________________________ c. Unit/individual: ___________________________________________ d. Response variable: ________________________________________ 2.) What...
Adults aged 18 years old and older were randomly selected for a survey on obesity. Adults...
Adults aged 18 years old and older were randomly selected for a survey on obesity. Adults are considered obese if their body mass index (BMI) is at least 30. The researchers wanted to determine if the proportion of women in the south who are obese is less than the proportion of southern men who are obese. The results are shown in the table below. # who are obese sample size Men 42,769 155,525 Women 67,169 248,775 At the1% level of...
Use the figure to the right, which shows the percentages of adults from several countries who...
Use the figure to the right, which shows the percentages of adults from several countries who favor building new nuclear power plants in their country. The results of the survey in which 1001 adults from Country A, 1025 adults from Country B, 1012 adults from country C, 1018 adults from Country D, and 1010 adults from country E were asked whether national identity is strongly tied to birthplace. Country a: 36% County b: 22% Country c: 28% Country d: 45%...
Use the figure to the right, which shows the percentages of adults from several countries who...
Use the figure to the right, which shows the percentages of adults from several countries who favor building new nuclear power plants in their country. The results of the survey in which 1001 adults from Country A, 1025 adults from Country B, 1012 adults from country C, 1018 adults from Country D, and 1010 adults from country E were asked whether national identity is strongly tied to birthplace. Country a: 36% County b: 22% Country c: 28% Country d: 45%...
In a recent Gallup poll, 507 adults aged 18 and older were surveyed and 269 said...
In a recent Gallup poll, 507 adults aged 18 and older were surveyed and 269 said they believed they would not have enough money to live comfortably in retirement. Use a 0.01 significance level to test the claim that the proportion of adults who do not believe they will have enough money to live comfortably in retirement is smaller than 60%. The test statistic is?: ["-2.73", "-3.19", "-3.55", "-4.21", "-1.61"]            The p-value is?: ["0.0002", "0.0024", "0.0032", "0.0007", "0.0001"]            Based on...
The term "Boomerang Generation" refers to the recent generation of young adults (ages 18-34) who have...
The term "Boomerang Generation" refers to the recent generation of young adults (ages 18-34) who have had to move back in with their parents. In a 2018 national survey, 210 out of 840 randomly selected young adults had to move back in with their parents. In a similar 2008 national survey, 150 out of 800 randomly selected young adults had to move back in with their parents. You would like to determine if there is a significant difference in the...
In a recent poll of 1018 adults aged 18 and over in a​ country, 4​% of...
In a recent poll of 1018 adults aged 18 and over in a​ country, 4​% of respondents said they were very uncomfortable with their ability to make their monthly payments on their current debt during the next three months. Find a 95​% confidence interval for the proportion of the adult population that feels this way.
In a survey of 1007 adults aged 18 to 74 living in a city, the prevalence...
In a survey of 1007 adults aged 18 to 74 living in a city, the prevalence of smokers was found to be 368. Build a 90% confidence interval for the proportion of smokers. Interpret the interval above. Build a 95% confidence interval for the proportion of smokers. Interpret the interval above. Compare with 90% CI.
Healthy women aged 18 to 40 participated in a study of eating habits. Subjects were given...
Healthy women aged 18 to 40 participated in a study of eating habits. Subjects were given bags of potato chips and bottled water and invited to snack freely. Interviews showed that some women were trying to restrain their diet out of concern about their weight. How much effect did these good intentions have on their eating habits? Here are the data on grams of potato chips consumed (note that the study report gave the standard error of the mean rather...
Healthy subjects aged 18 to 40 participated in a study of eating habits. Subjects were given...
Healthy subjects aged 18 to 40 participated in a study of eating habits. Subjects were given bags of potato chips and bottled water and invited to snack freely. Was there a difference between men and women in the number of potato chips consumed? Here are the data on grams of potato chips consumed. Group n Mean Standard Deviation Males 9 38 15 Females 11 12 10 We are interested in calculating a 90% confidence interval for the difference in mean...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT