Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please follow all the steps to answer the question below. i have provided everything. If you are going to do half-job, please dont waste my

Please follow all the steps to answer the question below. i have provided everything. If you are going to do half-job, please dont waste my questiona nd let another person help me. These can only be answered with R program. I have provided the data at the end of the questions.

Questions:

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
Question (Use R) Suppose you have a company producing cupcakes. Each cupcake is supposed to contain 10 grams of sugar. The cupcakes are produced by a machine that adds the sugar in a bowl before mixing everything. You believe the machine does not add 10 grams of sugar for each cupcake. If your assumption is true, the machine needs to be fixed. You stored the level of sugar of thirty cupcakes. Note (1): You can create a randomized vector with the function rnorm(). This function generates normally distributed values. The basic syntax is: rnorm(n, mean, sd) arguments - n: Number of observations to generate - mean: The mean of the distribution. Optional (you can put what you want) - sd: The standard deviation of the distribution. Optional Note (2): Why we are using set.seed? Set the seed of R's random number generator, which is useful for creating simulations or random objects that can be reproduced. The random numbers are the same, and they would continue to be the same no matter how far out in the sequence we went.a) Generate 30 observations (random sample) from a Normal distribution with a mean of 9 and a standard deviation of 0.02. Set the seed to 123. - Show (copy/paste) the R code that you used to generate the dataset. - Print only the first 6 observations from the dataset (output). Use an R code that show us only the first 6 observations not copy from the dataset the first 6 observations. b) State the hypothesis to check whether the level of sugar is different than the recipe (you can use either symbols or words).c) Use a suitable test in R to check your hypothesis in (b), use a significance level (a) of 0.05. Note: Show/Provide (copy/paste) the R code and the result/output of the hypothesis test.d) Interpret your finding in (c). Note (1): State the degree of freedom (0.25 point), interpret the hypothesis you are testing (statistically and relating to the topic of interest) (0.5 point) and interpret the confidence interval (0.25 point). Note (2): Interpret the hypothesis statistically means: is it statistically significant or not

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Entrepreneurship

Authors: Andrew Zacharakis, William D Bygrave

5th Edition

1119563097, 9781119563099

More Books

Students also viewed these Mathematics questions