Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

design a macro program as per the requirement in the attached file. I have also attached the macrodata.

image text in transcribed 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 requested

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

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

Applied Regression Analysis And Other Multivariable Methods

Authors: David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg

5th Edition

1285051084, 978-1285963754, 128596375X, 978-1285051086

Students also viewed these Accounting questions