Simulation study plays an important role in statistics and data science. It provides a fundamental tool...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Simulation study plays an important role in statistics and data science. It provides a fundamental tool to study the properties of statistical estimators and models under various situations, because in simulation study, we know the "ground truth" of the data, which we seldom have in real-world data analysis. In this question, we are going to perform a basic simulation study related to the standard normal distribution. a. [2 points] Compute the proportion of values smaller than 1 for a standard normal distribution. b. [7 points] Write a function called stats_normal with argument `n` to perform the following task: (Hint: review what we have learned in Lab 2) 1. Generate a sample from standard normal with a sample size equal to n. 2. Compute the mean of the sample. 3. Compute the standard deviation of the sample. 4. Compute the proportion of values smaller than 1 in the sample. 5. Return a dictionary (Recall Lab 1) containing the three numerical quantities above. c. [2 points] Set the random seed as 1. Run the function stats_normal" with n = 100, 1000, 10000. (Hint: you can simply write three lines of codes. It is totally optional to run a loop.) d. [4 points] Explain in words: what kind of pattern can you see from the results in part c? (Hint: for a standard normal distribution, recall the population mean, standard deviation and proportion of values smaller than 1.) Simulation study plays an important role in statistics and data science. It provides a fundamental tool to study the properties of statistical estimators and models under various situations, because in simulation study, we know the "ground truth" of the data, which we seldom have in real-world data analysis. In this question, we are going to perform a basic simulation study related to the standard normal distribution. a. [2 points] Compute the proportion of values smaller than 1 for a standard normal distribution. b. [7 points] Write a function called stats_normal with argument `n` to perform the following task: (Hint: review what we have learned in Lab 2) 1. Generate a sample from standard normal with a sample size equal to n. 2. Compute the mean of the sample. 3. Compute the standard deviation of the sample. 4. Compute the proportion of values smaller than 1 in the sample. 5. Return a dictionary (Recall Lab 1) containing the three numerical quantities above. c. [2 points] Set the random seed as 1. Run the function stats_normal" with n = 100, 1000, 10000. (Hint: you can simply write three lines of codes. It is totally optional to run a loop.) d. [4 points] Explain in words: what kind of pattern can you see from the results in part c? (Hint: for a standard normal distribution, recall the population mean, standard deviation and proportion of values smaller than 1.)
Expert Answer:
Answer rating: 100% (QA)
The standard normal distribution has a mean of 0 and a standard deviation of 1 The proportion of values smaller than 1 can be computed using the cumul... View the full answer
Related Book For
Business Intelligence And Analytics Systems For Decision Support
ISBN: 9781292009209
10th Global Edition
Authors: Efraim Turban, Ramesh Sharda, Dursun Delen, Pearson Education Limited, Dennis G. Zill
Posted Date:
Students also viewed these programming questions
-
Best Buy uses the lower-of-cost-or-net realizable value basis for its inventory. The following data are available at December 31. Cost Net Realizable Value Units per Unit per Unit Cameras 4 Minolta 5...
-
In spite of womens impressive performance at the workplace, educational, and community level, the numberof women in leadership positions is still low. Studies indicate that, from corporate boards to...
-
The daily net cash flows in the table below represent a 5-day sample. Use the Data Analysis tool in Excel to calculate the 95% and 99% confidence intervals for the daily net cash flows. Along with...
-
What is the future value of the following cash flows, given an appropriate discount rate of 7.74% (to the nearest penny)? Year 1 Year 2 Year 3 Year 4 Year 5 $2,005 $4,054 $6,159 $8,532 $11,985
-
A projectile is fired from point A with an initial velocity v0 which forms an angle ? with the horizontal. Express the radius of curvature of the trajectory of the projectile at point C in terms of...
-
The University of Cincinnati Center for Business Analytics is an outreach center that collaborates with industry partners on applied research and continuing education in business analytics. One of...
-
Let \(D\) denote the event that you have the illness, and let \(S\) denote the event that the test signals positive. The probability requested can be denoted as \(P(D \mid S)\). The probability that...
-
For the supermarket example in Section 6.1, suppose that the i s are 7/16 for store A, and 3/16 for each of stores B, C, and D. Show that is unbiased, and find its variance. Do you think that the...
-
Maxey & Sons manufactures two types of storage cabinets-Type A and Type Band applies manufacturing overhead to all units at the rate of $152 per machine hour. Production information follows....
-
On January 1, 2023, Psalm and Trisha formed PS Partnership. The articles of co-partnership provides that profit or loss shall be distributed accordingly: 15% interest on average capital balance....
-
Given VDD 10 V, VA-100 V. Find fi. for each of the capacitors, then find the overall fi. Draw the bode plot of the voltage gain vo/vi. Assume L=0.18 m, W=2 m, -450 cm/vs, Cox-9 fF/m, Vin=0.6 V. Hint:...
-
There are several Tax Credits and Deductions that reduce Tax Liability (the amount of tax you owe the government), including the Earned Income Tax Credit meant to assist those with lower earned...
-
Jamani Irrigators has projected that a unit of output can be produced by either of the following three combinations of [^]: A = [14] A = 2 = [4] A3 = A3 = [12] i) Plot the vectors for A1, A2 and A3....
-
a) Distinguish between duality theorems I and II. [6 Marks] b) Using a two-product two constraint case for a firm production characterise and discuss the duality of the maximization problem. [5...
-
A departmental store has to decide on the level of supplies it must stock to meet the needs of its customers. The exact number of customers is not known but it is expected to be in one of the four...
-
Q3(a) Differentiate between a bank draft and a promissory note. (b) "The use of money has converted a barter economy of the past into a monetary economy" Critically discuss the functions performed by...
-
How is an atom's atomic mass number determined? 1-The atomic mass number is determined only by the number ofnucleons in the nucleus. 2-The atomic mass number is determined only by the number...
-
The population of Detroit, Michigan, decreased from 1,027,974 in 1990 to 688,701 in 2013 (Source: U.S. Census Bureau). Find the average rate of change in the population of Detroit, Michigan, over the...
-
List and describe the components of KMS.
-
Go to teradatauniversitynetwork.com and find the paper titled Data Warehousing Supports Corporate Strategy at First American Corporation (by Watson, Wixom, and Goodhue). Read the paper and answer the...
-
At teradatauniversitynetwork.com, read and answer the questions of the assignment Data Warehousing Failures. Because eight cases are described in that assignment, the class may be divided into eight...
-
A membrane separator is \(3 \mathrm{~mm}\) in diameter, and the membrane permeability was estimated as \(2 \times 10^{-6} \mathrm{~m} / \mathrm{s}\). The solute being transported has a diffusivity of...
-
Develop a simple backmixed model to evaluate the performance of a gas-separation system. Here a feed gas enters a high-pressure chamber with a mole fraction of A of \(x_{\mathrm{Af}}\) and leaves...
-
Pervaporation: a case-study problem. Pervaporation refers to removal of the permeate as vapor and represents an intermediate case between purely gas transport and purely liquid transport in a...
Evolutionary And Adaptive Computing In Engineering Design 1st Edition - ISBN: 1447110617 - Free Book
Study smarter with the SolutionInn App