Question

Instructions: Questions labeled with (R) require use of R. Please provide appropriate R commands and their output, along with sufficient explanation and interpretation of the output to demonstrate your understanding. All other questions should be completed without reference to any R commands or output. Make sure you give enough explanation so your tutor can follow your reasoning if you happen to make a mistake. Please also try to be as succinct as possible. Each assignment will include marks tor good presentation and for attempting all problems1. (R) An interior automotive supplier places several electrical wires in a harness. A pull test measures the force required to pull spliced wires apart. A customer requires that each wire that is spliced into the harness withstand a pull force of 20 pounds. Let X be a random variable representing the pull force required to pull a spliced wire apart. The following are 20 observations of X 28.8 24.4 30.1 25.6 26.4 23.9 22.1 22.5 27.6 28.1 20.8 27.7 24.4 25.1 24.6 26.3 28.2 22.2 26.3 24.4 (a) Give basic summary statistics for these data and produce a box plot. Briefly comment on center, spread and shape of the distribution. (b) Assuming a normal distribution, compute maximum likelihood estimates for the parameters. (c) Draw a density histogram and superimpose a pdf for a normal distribution using the estimated parameters. (d) Draw a QQ plot to compare the data against the fitted normal distribution Include a reference line. Comment on the fit of the model to the data

NOTE: PLEASE INCLUDE ALL THE R CODES ALONG WITH THE PLOTS

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a)

R code:

x=c(28.8,24.4,30.1,25.6,26.4,23.9,22.1,22.5,27.6,28.1,20.8,27.7,24.4,25.1,24.6,
26.3,28.2,22.2,26.3,24.4)
summary(x)
boxplot(x)

Output:

Min. 1st Qu. Median Mean 3rd Qu. Max.
20.80 24.28 25.35 25.48 27.63 30.10

26 30 24 26 2

Center=25.35, Inter quartile range=27.63-24.28=3.35. Since 3rd quartile-2nd quartile>2nd quartile-1st quartile so the distribution is positively skewed.

(b)~Suppose~X_1,X_2,...,X_n~are~random~sample~from~N(mu,sigma^2). The~likelihood~function=L(mu,sigma^2)=prod_{i=1}^nrac{1}{sqrt{2pi}sigma}expleft(-rac{1}{2sigma^2}(x_i-mu)^2 ight ) =rac{1}{(2pisigma^2)^{rac{n}{2}}}expleft(-rac{1}{2sigma^2}sum_{i=1}^n(x_i-mu)^2 ight ) l(mu,sigma^2)=log L(mu,sigma^2)=-rac{n}{2}log 2pi-rac{n}{2}log sigma^2-rac{1}{2sigma^2}sum_{i=1}^n(x_i-mu)^2 rac{partial l(mu,sigma^2)}{partial mu}=rac{1}{sigma^2}sum_{i=1}^n(x_i-mu)=0Rightarrow hat{mu}=rac{1}{n}sum_{i=1}^nx_i=ar{x} rac{partial l(mu,sigma^2)}{partial sigma^2}=-rac{n}{2sigma^2}+rac{1}{2sigma^4}sum_{i=1}^n(x_i-mu)^2=0Rightarrow hat{sigma}^2=rac{1}{n}sum_{i=1}^n(x_i-hat{mu})^2 =rac{1}{n}sum_{i=1}^n(x_i-ar{x})^2

0o is negative definite then

Hence M LEs of μ and σ2 are i and-y (ri-i)2. 7t For this data set, ML estimates are: r = 25 475 ,-〉 (xi-x)2-5.9069

(c)

x=c(28.8,24.4,30.1,25.6,26.4,23.9,22.1,22.5,27.6,28.1,20.8,27.7,24.4,25.1,24.6,
26.3,28.2,22.2,26.3,24.4)
h<-hist(x, breaks=6, col="red", xlab="Pull force",
main="Histogram with Normal Curve",ylim=c(0,7))
xfit<-seq(min(x),max(x),length=40)
yfit<-dnorm(xfit,mean=mean(x),sd=sqrt(5.9069))
yfit <- yfit*diff(h$mids[1:2])*length(x)
lines(xfit, yfit, col="blue", lwd=2)

Histogram with Normal Curve LO しの CN 20 24 26 28 30 32 Pu force

(d)

R code:

x=c(28.8,24.4,30.1,25.6,26.4,23.9,22.1,22.5,27.6,28.1,20.8,27.7,24.4,25.1,24.6,
26.3,28.2,22.2,26.3,24.4)
qqnorm(x,lwd=2);qqline(x, col = 2,lwd=2)

Normal Q-Q Plot 0 CH 丈 CH 2 0 1 Theoretical Quantiles

It is observed that the sample quantiles are closed to reference line hence we can assume data come from normal distribution.

Add a comment
Know the answer?
Add Answer to:
NOTE: PLEASE INCLUDE ALL THE R CODES ALONG WITH THE PLOTS Instructions: Questions labeled with (R)...
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
  • 1. (R) An interior automotive supplier places several electrical wires in a harness. A pull test...

    1. (R) An interior automotive supplier places several electrical wires in a harness. A pull test measures the force required to pull spliced wires apart. A customer requires that each wire that is spliced into the harness withstand a pull force of 20 pounds. Let X be a random variable representing the pull force required to pull a spliced wire apart. The following are 20 observations of X 28.8 24.4 30.1 25.6 26.4 23.9 22.1 22.5 27.6 28.1 20.8 27.7...

  • Exercise 3. An automotive supplier of interior parts places several electrical wires in a harness. A...

    Exercise 3. An automotive supplier of interior parts places several electrical wires in a harness. A pull test measures the force required to pull spliced wires apart. A customer requires that each wire spliced into the harness must with-stand a pull force of 20 pounds. Let X equal the pull force required to pull 20 gauge wires apart. Assume that X ~ N(u, o). The following data give 20 observations of X: 28.8 20.8 24.4 30.1 25.6 26.4 27.7 24.4...

  • NOTE: DO PART c) ONLY PLEASE INCLUDE THE R CODES ALONG WITH THE PLOTS 4. Let...

    NOTE: DO PART c) ONLY PLEASE INCLUDE THE R CODES ALONG WITH THE PLOTS 4. Let XI, . .. , Xn be a random sample from the inverse Gaussian distribution. IG(μ, λ), whose pdf is (a) Show that the MLE of μ and λ are μ-X and (b) It is known that nA/λ ~ χ2-1. Use this to derive a 100-(1-a)% CI for λ (c) (R) Consider the following dataset 10.6, 91.3, 51.7, 2.2, 3.8, 6.0, 17.8, 131.8, 31.0, 4.2,...

  • NOTE: DO PART c) ONLY PLEASE INCLUDE THE R CODES ALONG WITH THE PLOTS 4. Let...

    NOTE: DO PART c) ONLY PLEASE INCLUDE THE R CODES ALONG WITH THE PLOTS 4. Let XI, . .. , Xn be a random sample from the inverse Gaussian distribution. IG(μ, λ), whose pdf is (a) Show that the MLE of μ and λ are μ-X and (b) It is known that nA/λ ~ χ2-1. Use this to derive a 100-(1-a)% CI for λ (c) (R) Consider the following dataset 10.6, 91.3, 51.7, 2.2, 3.8, 6.0, 17.8, 131.8, 31.0, 4.2,...

  • Answer all the questions 13,14 and 15. with proper explanation please. thank you. 13. Three current-carrying...

    Answer all the questions 13,14 and 15. with proper explanation please. thank you. 13. Three current-carrying wires with a length of 2 m each are placed in the plane of the page parallel to each other. The distances between the wires are given in the figure. The currents running in the wires are all equal 00 A, the directions of the currents are marked in the figure by arrows. Find the absolute value and the ?? direction of the magnetic...

  • Please help me with these questions with R codes.. thank you!! Here’s the data I have...

    Please help me with these questions with R codes.. thank you!! Here’s the data I have obtained for the questions: Data: 9 students in total Height(cm) Head Circumference(cm) 179 60 161 55 162 57 155 60 158 56 172 57 191 60 179 57 163 58 2. Draw at most 3 plots to visually describe your data. Is your response variable approximately Normal? 3. Numerically describe the centre, spread and any unusual points of your variables/data. 4. Fit and describe...

  • Please include the R code for each individual question. Save PDF to My Note The article...

    Please include the R code for each individual question. Save PDF to My Note The article "The Undrained Strength of Some Thawed Permafrost Soils" (Canadian Geotech. J., 1979: 420-427) contained the accompanying data on y shear strength of sandy soil (kPa), xl depth (m), and x2 water content (%) Obs Depth Content Strength 8.9 31.5 14.7 2 36.6 27.0 48.0 3 36.8 25.9 25.6 46.1 39.1 10.0 56.9 39.216.0 66.9 38.3 16.8 77.3 33.9 20.7 88.4 33.8 38.8 9 6.5...

  • Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a...

    Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a semicolon ';' at the end of any % commands for which the output is not necessary to answer the question. % Delete these notes before turning in. % Define input variable theta as discretized row vector (i.e., array). theta = ??; % Define radius. r = ??; % Define x and y in terms of theta and r. x = ??; y = ??;...

  • Please Show all work . Use attached Data and graph to answer questions Titration of Acetic...

    Please Show all work . Use attached Data and graph to answer questions Titration of Acetic Acid: 0. IM 1) Check to make sure that the volume on If it does not read 0.00 mL, adjust it to do so before you proceed any further. your sodium hydroxide buret reads 0.00 mL 2) Use the buret that is located near the acetic acid container to dispense 25.00 mL of acetic acid solution into a clean dry 100 mL beaker. Record...

  • I need help with this assignment in C++, please! *** The instructions and programming style detai...

    I need help with this assignment in C++, please! *** The instructions and programming style details are crucial for this assignment! Goal: Your assignment is to write a C+ program to read in a list of phone call records from a file, and output them in a more user-friendly format to the standard output (cout). In so doing, you will practice using the ifstream class, I'O manipulators, and the string class. File format: Here is an example of a file...

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