Page 1 of 1

Mat Lab Mat Lab MatLab ..Urgent Pls. please Read all part and answer with care and pls don't cut and paste previous cheg

Posted: Mon May 02, 2022 2:29 pm
by answerhappygod
Mat Lab Mat Lab MatLab ..Urgent Pls. please Read all
part and answer with care and pls don't cut and paste previous
answers answers as there are issues. hope you
understand.
Mat Lab Mat Lab Matlab Urgent Pls Please Read All Part And Answer With Care And Pls Don T Cut And Paste Previous Cheg 1
Mat Lab Mat Lab Matlab Urgent Pls Please Read All Part And Answer With Care And Pls Don T Cut And Paste Previous Cheg 1 (141.45 KiB) Viewed 32 times
Butternut pumpkins naturally contain high levels of Vitamin C, with a mean Vitamin C content of 150 [micrograms/gram]. Your research laboratory manages to produce a new genetically modified variety of butternut pumpkin which you believe contains increased levels of vitamin C. To determine if this is the case, you decide to perform a hypothesis test. The null and alternative hypotheses can be formulated as: Họ: H = 150 vs. He : 4 > 150 Write a function named pumpkin_test that accepts the following 2 inputs: • data: a vector of length n containing the measured Vitamin C content for n of your genetically modified pumpkins • alpha: the desired significance level for the hypothesis test (in decimal, not percentage form) And returns the following outputs: · report: a string whose value depends on the result of the hypothesis test pval: the p-value ci: the confidence interval for the mean Vitamin C content The variable report should be defined as the string: • 'There is sufficient evidence (alpha=<significance level to 2 d.p.>) to reject the null hypothesis.' if the null hypothesis is rejected • There is not enough evidence (alpha=<significance level to 2 d.p.>) to reject the null hypothesis.' otherwise
In the strings above, replace any angled bracket descriptors with appropriate syntax. You may find the sprintf function useful. Watch what you name your variables - make sure you don't give variables names of existing MATLAB functions, e.g. mean.
1 function [report,pval,ci]=pumpkin_test(data, alpha) 2 3 4 5 6 7 end 8 Code to call your function ® 1 data=[153, 149, 156, 152, 150, 151, 150, 151, 149, 155]; 2 alpha=0.1; 3 [report, pval,ci]=pumpkin_test(data, alpha) 1 4
Assessment: Output correct for values in Code to Call Your Function Output correct for values that result in no rejection of the null hypothesis Output correct for randomised data and alpha