![Elementary Statistics: A Step By Step Approach](https://www.bartleby.com/isbn_cover_images/9780073534985/9780073534985_largeCoverImage.gif)
Protein Grams in Fast Food The amount of protein (in grams) for a variety of fast-food sandwiches is reported here. Construct a frequency distribution, using 6 classes. Draw a histogram, a frequency
![Check Mark](/static/check-mark.png)
To Sketch: A histogram, frequency polygon and ogive using relative frequency and describe the shape of the histogram for the given data.
Answer to Problem 18E
The sketches of all three graphs are as follows:
The shape of the histogram is right skewed.
Explanation of Solution
Given Info:
The amount of protein (in grams) for a variety of fast-food sandwiches is reported here
23 | 30 | 20 | 27 | 44 | 26 | 35 | 20 | 29 | 29 |
25 | 15 | 18 | 27 | 19 | 22 | 12 | 26 | 34 | 15 |
27 | 35 | 26 | 43 | 35 | 14 | 24 | 12 | 23 | 31 |
40 | 35 | 38 | 57 | 22 | 42 | 24 | 21 | 27 | 33 |
Calculation:
The class boundaries for any class are given by:
The grouped frequency distribution is as follows:
Class limit | Class boundaries | ![]() |
Frequency |
12-19 | 11.5-19.5 | ![]() |
7 |
20-27 | 19.5-27.5 | ![]() ![]() |
17 |
28-35 | 27.5-35.5 | 10 | |
36-43 | 35.5-43.5 |
|
4 |
44-51 | 43.5-51.5 |
|
1 |
52-59 | 51.5-59.5 |
|
1 |
Class midpoint:
The midpoint of class boundaries is obtained by adding lower and upper limit and dividing by 2.
For the first class,
Thus, the midpoint for the first class is 22.
Similarly, the midpoint for other classes was obtained.
Relative frequency distribution:
The relative frequency is the ration of a class frequency to the total frequency. Cumulative relative frequency can also defined as the sum of all previous frequencies up to the current point.
Class boundaries | Frequency | Mid point |
Relative frequency |
Cumulative relative frequency |
11.5-19.5 | 7 | 15.5 | 0.175 | 0.175 |
19.5-27.5 | 17 | 23.5 | 0.425 | 0.6 |
27.5-35.5 | 10 | 31.5 | 0.25 | 0.85 |
35.5-43.5 | 4 | 39.5 | 0.1 | 0.95 |
43.5-51.5 | 1 | 47.5 | 0.025 | 0.975 |
51.5-59.5 | 1 | 55.5 | 0.025 | 1 |
Total | 40 |
The histogram is a graph that displays the data by using contiguous vertical bars of various heights to represent the frequencies of the classes.
Upper limit | Relative frequency |
19.5 | 0.175 |
27.5 | 0.425 |
35.5 | 0.25 |
43.5 | 0.1 |
51.5 | 0.025 |
59.5 | 0.025 |
Histogram:
Software procedure:
Step by step procedure for constructing histogram using Excel is given below:
- Press [Ctrl]-N for a new workbook.
- Enter the data in column A, one number per cell.
- Enter the upper boundaries into column B.
- From the toolbar, select the Data tab, then select Data Analysis.
- In Data Analysis, select Histogram and click [OK].
- In the Histogram dialog box, select relative column in the Input Range box and select upper limit column in the Bin Range box.
- Select New Worksheet Ply and Chart Output. Click [OK].
Output obtained from Excel is given below:
Shape of the distribution:
Symmetric:
A distribution is said to be symmetric if the left side of histogram is the mirror image of the right side of histogram.
Skewed right:
If the right side of the distribution extends far away than the left side of histogram, it is said to be skewed right.
Skewed left:
If the left side of the distribution extends far away than the right side of histogram, it is said to be skewed left.
Here, the histogram extends far away than the left side of histogram, it is said to be skewed right.
Hence, the distribution for the amount of protein (in grams) for a variety of fast-food sandwiches is skewed right.
Frequency polygons:
Step by step procedure for constructing frequency polygon using Excel is given below:
- Press [CTRL]-N for a new notebook.
- Enter the midpoints of the data into column A and the frequencies into column B including labels.
- Press and hold the left mouse button, and drag over the Frequencies (including the label) from column B.
- Select the Insert tab from the toolbar and the Line Chart option.
- Select the 2-D line chart type.
Output obtained from Excel is given below:
Frequency ogive:
Step by step procedure for constructing frequency ogive using Excel is given below:
- To create an ogive, use the upper class boundaries (horizontal axis) and cumulative frequencies (vertical axis) from the frequency distribution.
- Type the upper class boundaries (including a class with frequency 0 before the lowest class to anchor the graph to the horizontal axis) and
- Corresponding cumulative frequencies into adjacent columns of an Excel worksheet.
- Press and hold the left mouse button, and drag over the Cumulative Frequencies from column B.
- Select Line Chart, then the 2-D Line option.
Output obtained from Excel is given below:
The points plotted are the upper class limit and the corresponding cumulative relative frequency.
Want to see more full solutions like this?
Chapter 2 Solutions
Elementary Statistics: A Step By Step Approach
- Examine the Variables: Carefully review and note the names of all variables in the dataset. Examples of these variables include: Mileage (mpg) Number of Cylinders (cyl) Displacement (disp) Horsepower (hp) Research: Google to understand these variables. Statistical Analysis: Select mpg variable, and perform the following statistical tests. Once you are done with these tests using mpg variable, repeat the same with hp Mean Median First Quartile (Q1) Second Quartile (Q2) Third Quartile (Q3) Fourth Quartile (Q4) 10th Percentile 70th Percentile Skewness Kurtosis Document Your Results: In RStudio: Before running each statistical test, provide a heading in the format shown at the bottom. “# Mean of mileage – Your name’s command” In Microsoft Word: Once you've completed all tests, take a screenshot of your results in RStudio and paste it into a Microsoft Word document. Make sure that snapshots are very clear. You will need multiple snapshots. Also transfer these results to the…arrow_forward2 (VaR and ES) Suppose X1 are independent. Prove that ~ Unif[-0.5, 0.5] and X2 VaRa (X1X2) < VaRa(X1) + VaRa (X2). ~ Unif[-0.5, 0.5]arrow_forward8 (Correlation and Diversification) Assume we have two stocks, A and B, show that a particular combination of the two stocks produce a risk-free portfolio when the correlation between the return of A and B is -1.arrow_forward
- 9 (Portfolio allocation) Suppose R₁ and R2 are returns of 2 assets and with expected return and variance respectively r₁ and 72 and variance-covariance σ2, 0%½ and σ12. Find −∞ ≤ w ≤ ∞ such that the portfolio wR₁ + (1 - w) R₂ has the smallest risk.arrow_forward7 (Multivariate random variable) Suppose X, €1, €2, €3 are IID N(0, 1) and Y2 Y₁ = 0.2 0.8X + €1, Y₂ = 0.3 +0.7X+ €2, Y3 = 0.2 + 0.9X + €3. = (In models like this, X is called the common factors of Y₁, Y₂, Y3.) Y = (Y1, Y2, Y3). (a) Find E(Y) and cov(Y). (b) What can you observe from cov(Y). Writearrow_forward1 (VaR and ES) Suppose X ~ f(x) with 1+x, if 0> x > −1 f(x) = 1−x if 1 x > 0 Find VaRo.05 (X) and ES0.05 (X).arrow_forward
- Joy is making Christmas gifts. She has 6 1/12 feet of yarn and will need 4 1/4 to complete our project. How much yarn will she have left over compute this solution in two different ways arrow_forwardSolve for X. Explain each step. 2^2x • 2^-4=8arrow_forwardOne hundred people were surveyed, and one question pertained to their educational background. The results of this question and their genders are given in the following table. Female (F) Male (F′) Total College degree (D) 30 20 50 No college degree (D′) 30 20 50 Total 60 40 100 If a person is selected at random from those surveyed, find the probability of each of the following events.1. The person is female or has a college degree. Answer: equation editor Equation Editor 2. The person is male or does not have a college degree. Answer: equation editor Equation Editor 3. The person is female or does not have a college degree.arrow_forward
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALBig Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin HarcourtGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill
![Text book image](https://www.bartleby.com/isbn_cover_images/9780547587776/9780547587776_smallCoverImage.jpg)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)