Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
design a macro program as per the requirement in the attached file. I have also attached the macrodata. Suppose that we have some variable p
design a macro program as per the requirement in the attached file. I have also attached the macrodata.
Suppose that we have some variable p that is the proportion of defective items in a sample. Either the sample ai is 0 or it is 1 for all i=1 to N. The p is given by N a i p= N i=1 Let's say I have a sippy cup for kids and if there is a burr, a i is defective. If defective I record a 1, if not, a 0 (discrete). So my sample might look like this in column A. 1 0 0 0 1 Now p would then be 2/5 or p=.4 In my original problem, I just said to use one column. If I had many samples, I could calculate the average of p. Now with many sample sets we can write pj where j is the number of sample sets. Thus the average of p is M p p j = M j=1 where j = 1 to M and M is the number of sample sets. The variance is given by (nothing up my sleeve and I wave the magic wand) ( 1 ) p p N var = Remember we want to calculate p= p which is given by (1 ) p p N Now the question is \"Can you modify the above program to calculate the standard deviation?\". Try programing this and it will serve as the program I requestedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started