Instructions: Using Python and the data set provided, I want you to provide me the code...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Instructions: Using Python and the data set provided, I want you to provide me the code and output that completes the following. That said, I will communicate the data structures of this assignment using R. Expectation: This assignment is constructed such that you can easily validate your answers in Excel with minimum effort. Therefore, I expect you to do so. Purpose: To have some fun and additional practice with small data sets. 1. Create a data set with the following values. x = 94, 90 72, 72, 95, 7, 89, 36, 61, 30, 80, 15, 73, 99, 24, 96, 36 40 39, 84, 4, 12, 39, 8, 96 7, 38, 91 84, 49, 3, 34, 52, 6, 11, 2 54, 75, 61, 47, 62, 73, 41 41, 12, 77, 81, 74, 44, 97 10 15 5, 53, 26, 1, 36, 15 37 3, 86 93 92, 28, 42, 44, 57 23, 69 96 9, 70, 29 2, 82 42 19, 67, 18, 37, 46, 94, 50, 84, 52, 56, 49, 32, 17, 95, 69, 67, 52, 85, 58, 13, 6 4, 89, 40, 26, 73 41, 57, 91, 77, 54, 53, 63, 88, 39, 98, 71, 67, 14, 8, 34, 7, 54, 7, 79, 12, 97 26, 94, 85, 13, 12, 75, 2 58 6, 43 12, 59, 25, 81, 10 28 96, 61, 16, 41, 41, 32 82, 48, 3, 21, 75 85, 1, 98, 84, 7, 42, 30, 28, 47, 13, 5, 34, 34, 14 7, 59, 90 84, 40, 7, 21, 68, 27, 95, 11, 23, 86, 83, 28, 23 80 42, 32, 25, 76, 28, 82, 1, 93, 38, 8, 79, 96, 82, 24, 75, 96, 43, 62, 35) If you are interested in how I created the well formatted vector provided above, below is the code snipped from R that created it. x=floor(runif(min-1, max=100, n=200)) page (x) 2. Identify the mean, standard deviation, quartiles, and median using any method available to you. Please clearly identify your answer is! Please provide any code that you use to derive your answer python. 3. Using the sample function, sample the vector above to create a new vector of length n where n = {10, 50, 75, 100, 150). For each of these new vectors, calculate the value of mean, standard deviation, quartiles, and median. Explain what is happening in the above scenario as the sample size increases. 4. This will require some thinking. I would like you provide statistical evidence that a coin flop has a 50/50 probability of landing on heads (or tails) by generating a vector of length 200 and applying the concepts of mean, median, standard deviation, etc. to evaluate the data set. Hint: you may have to run your experiment more than once! a. For your answer, please provide any code / results that you use. b. Please provide a short paragraph describing why your findings are evidence that a coin flop has 50/50 probability of landing on heads or tails. Instructions: Using Python and the data set provided, I want you to provide me the code and output that completes the following. That said, I will communicate the data structures of this assignment using R. Expectation: This assignment is constructed such that you can easily validate your answers in Excel with minimum effort. Therefore, I expect you to do so. Purpose: To have some fun and additional practice with small data sets. 1. Create a data set with the following values. x = 94, 90 72, 72, 95, 7, 89, 36, 61, 30, 80, 15, 73, 99, 24, 96, 36 40 39, 84, 4, 12, 39, 8, 96 7, 38, 91 84, 49, 3, 34, 52, 6, 11, 2 54, 75, 61, 47, 62, 73, 41 41, 12, 77, 81, 74, 44, 97 10 15 5, 53, 26, 1, 36, 15 37 3, 86 93 92, 28, 42, 44, 57 23, 69 96 9, 70, 29 2, 82 42 19, 67, 18, 37, 46, 94, 50, 84, 52, 56, 49, 32, 17, 95, 69, 67, 52, 85, 58, 13, 6 4, 89, 40, 26, 73 41, 57, 91, 77, 54, 53, 63, 88, 39, 98, 71, 67, 14, 8, 34, 7, 54, 7, 79, 12, 97 26, 94, 85, 13, 12, 75, 2 58 6, 43 12, 59, 25, 81, 10 28 96, 61, 16, 41, 41, 32 82, 48, 3, 21, 75 85, 1, 98, 84, 7, 42, 30, 28, 47, 13, 5, 34, 34, 14 7, 59, 90 84, 40, 7, 21, 68, 27, 95, 11, 23, 86, 83, 28, 23 80 42, 32, 25, 76, 28, 82, 1, 93, 38, 8, 79, 96, 82, 24, 75, 96, 43, 62, 35) If you are interested in how I created the well formatted vector provided above, below is the code snipped from R that created it. x=floor(runif(min-1, max=100, n=200)) page (x) 2. Identify the mean, standard deviation, quartiles, and median using any method available to you. Please clearly identify your answer is! Please provide any code that you use to derive your answer python. 3. Using the sample function, sample the vector above to create a new vector of length n where n = {10, 50, 75, 100, 150). For each of these new vectors, calculate the value of mean, standard deviation, quartiles, and median. Explain what is happening in the above scenario as the sample size increases. 4. This will require some thinking. I would like you provide statistical evidence that a coin flop has a 50/50 probability of landing on heads (or tails) by generating a vector of length 200 and applying the concepts of mean, median, standard deviation, etc. to evaluate the data set. Hint: you may have to run your experiment more than once! a. For your answer, please provide any code / results that you use. b. Please provide a short paragraph describing why your findings are evidence that a coin flop has 50/50 probability of landing on heads or tails.
Expert Answer:
Answer rating: 100% (QA)
python import numpy as np import random Step 1 Create a data set with the given values nprandomseed4... View the full answer
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date:
Students also viewed these programming questions
-
Why would someone place "Patent Pending" on their product if they had not received a patent for it?
-
A researcher wanted to find out if there was difference between older movie goers and younger movie goers with respect to their estimates of a successful actors income. The researcher first...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Hines stored her furniture, including a grand piano, in Arnetts warehouse. Needing more space, Arnett stored Hiness piano in Butlers warehouse next door. As a result of a fire, which occurred without...
-
The reference frame K' moves in the positive direction of the x axis of the frame K with a relative velocity V. Suppose that at the moment when the origins of coordinates O and O' coincide, the clock...
-
How do visionary leaders navigate the complexities of organizational dynamics to cultivate a culture of innovation and adaptability ? Explain
-
Consider the wine quality of young red wines data in Table B.19. For the purposes of this exercise, ignore regressor $x_{1}$. Perform a thorough residual analysis of these data. What conclusions do...
-
A father decides to put his two sons to work landscaping. The business involves going to a customers home and providing landscaping services (cut grass, edge sidewalk, pull weeds in flower beds,...
-
What is Stock X's geometric returns if it has the following returns? Year 1 8% Year 2 -5% Year 3 10% Year 4 -6% Year 5 15%
-
For SKIMS by KIM KARDASHIAN Promotional Mix and IMC Tools Identify the key marketing communication methods and specific IMC tools you will use in your marketing campaign. How will you use each of...
-
An infinitely long thin non-conducting wire is parallel to the z-axis and carries a uniform line charge density 2. It pierces a thin non- conducting spherical shell of radius R in such a way that the...
-
____________ debt was taken off Adelphias books, and new debt was taken ____________ without being reported on the balance sheet.
-
Edison Schools is presented in the chapter as an example of: (a) Failure to disclose related-party transactions. (b) Inadequate disclosures in its Management Discussion and Analysis (MD&A). (c)...
-
Collateralized debt obligations consist of home loans pooled with other loans, such as car loans, credit card debt, and student loans, which are carved into tranches and securitized by the investment...
-
__________, former CEO of Countrywide, settled an SEC civil fraud case for \($67.5\) million in October 2010.
-
Adelphia, its subsidiaries, and the Rigas Entities all deposited and withdrew cash from a joint cash management system called ___________.
-
A particle moves back and forth along a straight path. At any time t, the particle's displacement and velocity are respectively described by x(t) = t (t-3) and v(t) = 3 (t-1)-(t-3) (a) State the...
-
A handrail, which weighs 120 N and is 1.8 m long. was mounted to a wall adjacent to a small set of steps (Figure P4.26). The support at A has broken, and the rail has fallen about the loose bolt at 8...
-
Discuss briefly the importance in systems design of good communication among systems analysts, management, and systems operating personnel.
-
Jan Merkle is a fraud investigator who was working alone for the first time on an assignment. In previous cases, she had always worked under one of the senior partners in her forensic accounting...
-
The following facts pertain to the e-Commerce Web site for WCE-Comp, a personal computer manufacturer and seller. Privacy Statement a. All information collected on this Web site will be used only for...
-
Compare different cooling schedule of simulated annealing.
-
Discuss the perturbation mechanism of simulated annealing.
-
What are the pros and cons of GA and SA? Can we conceive of a framework that combines the best of both worlds?
Study smarter with the SolutionInn App