Question

1) The following is a list of prices (in dollars) of birthday cards found in various...

1) The following is a list of prices (in dollars) of birthday cards found in various drug stores:
2.45
1.20
0.85
1.33
2.25
2.25
2.09
2.99
1.00
0.88
1.42
2.36
2.15
2.85
1.52
1.99
2.38
0.85
2.22
2.75
create CSV file and export the data to create histogram.

a. Using R find the mean, median, mode, range, variance and standard deviation of the data. Attach your output from R.



b. Using R, construct a frequency histogram of the data set. Use the guidelines in the class notes. Provide all the details (interval, width, etc.) on how you constructed the histogram. Make sure that you attach the histogram created by R. Comment on the shape of the frequency distribution (e.g., is the distribution skewed? Is the distribution approximately mound-shaped and symmetric?) for the data set based on your histogram.

c. Based on the results in part a, construct the intervals and for the data set. Be sure to show your interval below. Based on the results in part b what percentage of the measurements for the data set falls in each interval
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. X=c(2.45,
1.20,
0.85,
1.33,
2.25,
2.25,
2.09,
2.99,
1.00,
0.88,
1.42,
2.36,
2.15,
2.85,
1.52,
1.99,
2.38,
0.85,
2.22,
2.75)

R Code :

summary(X)

Range = max(X)-min(X)

Range

sd= sd(X)
sd

var(X)

Result :

 Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
  0.850   1.298   2.120   1.889   2.365   2.990 
[1] 2.14   #Range
[1] 0.6979059  #SD
[1] 0.4870726  #Variance 

B. Code :

Histogram= hist(X)

OUtput :

Here we have taken 5 intervals for 20 observation. Width 0.5 . The distribution is not symmetric. It's negatively skewed.  

C . From part a we got min and max to be 0.85 and 2.99

hence 2.99-0.85=2.04 , so we take lower limit as 0.5 and upper as 3.

so if we split in 5 intervals we will get 0.5 width for each

below is the frequency table :

R code :

low_val =0.5
hi_val= 3
x_break=0.5
breaks=seq(low_val,hi_val,x_break)
breaks

y=cut(X,breaks)
y
z=table(y)
z

Output :

# The breaks :

X_break=

[1] 0.5 1.0 1.5 2.0 2.5 3.0

Y= 
 [1] (2,2.5] (1,1.5] (0.5,1] (1,1.5] (2,2.5] (2,2.5] (2,2.5] (2.5,3] (0.5,1]
[10] (0.5,1] (1,1.5] (2,2.5] (2,2.5] (2.5,3] (1.5,2] (1.5,2] (2,2.5] (0.5,1]
[19] (2,2.5] (2.5,3]
Levels: (0.5,1] (1,1.5] (1.5,2] (2,2.5] (2.5,3]


The frequency table : 
Z 
(0.5,1] (1,1.5] (1.5,2] (2,2.5] (2.5,3] 
      4       3       2       8       3 

that is

Value freq

0.5-1 4

1- 1.5 3

1.5-2 2

2-2.5 8

2.5-3 3

based on part b :

0.5-1 = 4/20=20%

.1-1.5 = 3/20 = 15%

1.5-2=2/20=10%

2-2.5= 8/20=40%

2.5-3= 3/20=15%

Add a comment
Know the answer?
Add Answer to:
1) The following is a list of prices (in dollars) of birthday cards found in various...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Q1) Twenty six smokers were surveyed to ascertain the number of cigarettes each smoked for a 1 we...

    please answer 1 and 2 in detail Q1) Twenty six smokers were surveyed to ascertain the number of cigarettes each smoked for a 1 weelk period. The results are as follows: 44 39 37 21 31 28 44 29 30 52 40 20 24 32 22 27 50 43 26 37 26 51 34 27 33 25 Create a frequency distribution with 5 classes using the headings: #ofcigarettes. Frequency(), Cumulative Frequency (c), and relative frequency (r). Show details of your...

  • 1. Four objects are weighed 2 at a time on a spring balance. Denote the 4...

    1. Four objects are weighed 2 at a time on a spring balance. Denote the 4 unknown weights by B1,...,BA. Six observations are made and are expressed in these forms: Y = B: + 32 + €1. Y = B1 + B3 + €2, Y3 = B1 + B1 + €3, Y4 = 32 +33 + €4, Y = B2 + 4 + €5, Y6 = 33 +34 + €6. Assume that €, N (0,0%), i = 1,...,6. (a) Find...

  • little lose on step #3 1. The following data set represents the amount spent (in dollars)...

    little lose on step #3 1. The following data set represents the amount spent (in dollars) by 45 shoppers at a supermarket. Construct a frequency distribution for the variable, and also report the relative frequencies for each class in your frequency distribution. NOTE: the data is in dollars and cents; you can not change that data! 1081, 1269, 1378, 15.23, 15.62. 17.00, 17.39. 18.36. 1843. 1927, 19.50.1954. 20.16, 20.59, 22.22, 23.04, 2447. 24.58, 25.13, 26.24.26.26, 27.65, 28.06, 28.08, 28.38, 32.03,...

  • Could you please help me with questions 1a-1b please? ( since i could only find the formula neede...

    Could you please help me with questions 1a-1b please? ( since i could only find the formula needed for 1a, if u aren't sure with 1b u can just do 1a but please dont reply "no enough data given " because i have a lil systemical problem with replying the comments) * the first question was asked to complete the anova table ( table 9.1 in the picture ) by using the formulas ( in the pictures) * I have...

  • Suppose 1000 coins are tossed. Use the normal curve approximation to the binomial distribution to find...

    Suppose 1000 coins are tossed. Use the normal curve approximation to the binomial distribution to find the probability of getting the following result. Exactly 495 heads Use the table of areas under the standard normal curve given below. Click here to view page 1. Click here to view page 2. Click here to view page 3. Click here to view page 4. Click here to view page 5. Click here to view page 6. The probability of getting exactly 495...

  • Suppose 16 coins are tossed. Use the normal curve approximation to the binomial distribution to find...

    Suppose 16 coins are tossed. Use the normal curve approximation to the binomial distribution to find the probability of getting the following result. More than 11 tails. Use the table of areas under the standard normal curve given below. Click here to view page 1. Click here to view page 2. Click here to view page 3. Click here to view page 4. Click here to view page 5. Click here to view page 6. Binomial probability = (Round to...

  • Write the C program, to achieve as shown in the sample code execution, using the given...

    Write the C program, to achieve as shown in the sample code execution, using the given struct and using the comments in the given main program below: typedef struct{ char first[20]; char last[20]; float gpa; int score; } student; int main(void){ student *ptr; //first name //last name //student gpa //student score } //ask a user to enter the number of students, num //dynamically allocate memory for an array of students of the appropriate size (i.e. //num that the user just...

  • Please Answer ONLY F1, F2 and G . Thanks Problem: Daycare Management You've been hired as...

    Please Answer ONLY F1, F2 and G . Thanks Problem: Daycare Management You've been hired as the Chief Statistician for the SummerlsFun Co. The corporation operates a variety of Summer Children Camp/Daycare chains: ParentsOasis SunAndPlay NoPlaceLikeHome As part of their ongoing marketing effort, SummerIsFun Co. collects a variety of statistics about their members. The database includes the following data (a) Child's age category: infant, toddlers, preschool, pre-K к} (b) Child's BMI category: underweight, normal weight overweight, obese (e) Number of...

  • 1. Two manufacturing processes are being compared to try to reduce the number of defective products...

    1. Two manufacturing processes are being compared to try to reduce the number of defective products made. During 8 shifts for each process, the following results were observed: Line A Line B n 181 | 187 Based on a 5% significance level, did line B have a larger average than line A? *Use the tables I gave you in the handouts for the critical values *Use the appropriate test statistic value, NOT the p-value method *Use and show the 5...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT