3.9 LAB: Calculating probabilities using a normal distribution The intelligence quotient (IQ) of a randomly selected...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3.9 LAB: Calculating probabilities using a normal distribution The intelligence quotient (IQ) of a randomly selected person follows a normal distribution with a mean of 100 and a standard deviation of 15. Use the scipy function norm and user input values for 101 and 102 to perform the following tasks • Calculate the probability that a randomly selected person will have an IQ less than or equal to 101 • Calculate the probability that a randomly selected person will have an IQ between 101 and 102 For example, if the input is 105 110 the output is The probability that a randomly selected person has an 10 less than or equal to 105.0 in 0.631. The probability that a randomly selected person has an 10 between 105.0 and 110.0 is 0.117. LAB ACTIVITY 3.9.1: Calculating probabilities using a normal distribution 0/3 The probability that a randomly selected person has an 10 less than or equal to 105.0 is 0.631. The probability that a randomly selected person has an IQ between 105.0 and 110.0 is 0.117. LAB ACTIVITY 3.9.1: Calculating probabilities using a normal distribution 1# Import norm from scipy.stats 2 from scipy.stats import norm 3 4# Input tno IQs, making sure that IQ1 is less than 102 I 5 101 float(input()) 6 102 float(input()) 7 8 while 101 102: 9 10 print("IQ1 should be less than IQ2. Enter numbers again.") 101 float(input()) 102 float(input()) main.py Develop mode 11 12 13 Calculate the probability that a randomly selected person has an IQ less than or equal to 101. 14 probLT# Your code here 15 Submit mode Enter program input (optional) 0/3 Load default template... Run your program as often as you'd like, before submitting for grading Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box The probability that a randomly selected person has an IQ less than or equal to 105.0 is 0.631. The probability that a randomly selected person has an IQ between 105.0 and 110.0 is 0.117. WASTONG LAB ACTIVITY 3.9.1: Calculating probabilities using a normal distribution 8 while IQ1 102: 9 main py print("101 should be less than IQ2. Enter numbers again."). float(input()) float(input()) IQ1 102 10 11 12 13 Calculate the probability that a randomly selected person has an IQ less than or equal to 101. 14 probLT Your code here 15 16 Colculate the probability that a randomly selected person has an IQ between IQ1 and IQ2 17 probletw#Your code here 18 19 print("The probability that a randomly selected person \n has an IQ less than or equal to 20 print('%.3 % probLT".") str(101) 21 print("The probability that a randomly selected person \n has on IQ between 22 print("%.3f X probletw 0/3 Load default template..... str(101)* and str(IQ 3.9 LAB: Calculating probabilities using a normal distribution The intelligence quotient (IQ) of a randomly selected person follows a normal distribution with a mean of 100 and a standard deviation of 15. Use the scipy function norm and user input values for 101 and 102 to perform the following tasks • Calculate the probability that a randomly selected person will have an IQ less than or equal to 101 • Calculate the probability that a randomly selected person will have an IQ between 101 and 102 For example, if the input is 105 110 the output is The probability that a randomly selected person has an 10 less than or equal to 105.0 in 0.631. The probability that a randomly selected person has an 10 between 105.0 and 110.0 is 0.117. LAB ACTIVITY 3.9.1: Calculating probabilities using a normal distribution 0/3 The probability that a randomly selected person has an 10 less than or equal to 105.0 is 0.631. The probability that a randomly selected person has an IQ between 105.0 and 110.0 is 0.117. LAB ACTIVITY 3.9.1: Calculating probabilities using a normal distribution 1# Import norm from scipy.stats 2 from scipy.stats import norm 3 4# Input tno IQs, making sure that IQ1 is less than 102 I 5 101 float(input()) 6 102 float(input()) 7 8 while 101 102: 9 10 print("IQ1 should be less than IQ2. Enter numbers again.") 101 float(input()) 102 float(input()) main.py Develop mode 11 12 13 Calculate the probability that a randomly selected person has an IQ less than or equal to 101. 14 probLT# Your code here 15 Submit mode Enter program input (optional) 0/3 Load default template... Run your program as often as you'd like, before submitting for grading Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box The probability that a randomly selected person has an IQ less than or equal to 105.0 is 0.631. The probability that a randomly selected person has an IQ between 105.0 and 110.0 is 0.117. WASTONG LAB ACTIVITY 3.9.1: Calculating probabilities using a normal distribution 8 while IQ1 102: 9 main py print("101 should be less than IQ2. Enter numbers again."). float(input()) float(input()) IQ1 102 10 11 12 13 Calculate the probability that a randomly selected person has an IQ less than or equal to 101. 14 probLT Your code here 15 16 Colculate the probability that a randomly selected person has an IQ between IQ1 and IQ2 17 probletw#Your code here 18 19 print("The probability that a randomly selected person \n has an IQ less than or equal to 20 print('%.3 % probLT".") str(101) 21 print("The probability that a randomly selected person \n has on IQ between 22 print("%.3f X probletw 0/3 Load default template..... str(101)* and str(IQ
Expert Answer:
Answer rating: 100% (QA)
Python Import norm from scipystats from scipystats import norm Input two IQs making sure that IQ1 is ... View the full answer
Related Book For
Introduction To Statistical Investigations
ISBN: 9781119683452
2nd Edition
Authors: Beth L.Chance, George W.Cobb, Allan J.Rossman Nathan Tintle, Todd Swanson Soma Roy
Posted Date:
Students also viewed these programming questions
-
Cash Flow. College students often have little income and many expenses. Does this reduce or increase the importance of completing a cash-flow statement on a monthly basis? Why?
-
The Government of Canada Zero Coupon Yield curve is shown below. What does the shape over the first three years tell you about the market's consensus expectation for future spot interest rates?...
-
Identify the major topographic features of ocean basins, and state how they are related to plate tectonics. The Himalaya and the Alps are said to be the graveyards of ancient oceans. Why?
-
A general ledger trial balance at June 30, 2011, for Millar City is as follows: Millar City uses a purchases basis in accounting for supplies. Open encumbrances are considered constrained by the...
-
Take a closer look at State Farm. What advertising strategy do you recommend it follow to distinguish itself from its competitors? Be sure you discuss the type of advertising, the executioner style,...
-
Investigate location and exploration. Evaluate a location-based game or gamified system and identify the ways that it encourages exploration in the real world. Are there elements or features that you...
-
6. Craig Hare offered computers and related equipment for sale on various Internet auction Web sites. He accepted payment but not responsibility-he never shipped the goods. Both the FTC and the U.S....
-
Floor Guard Carpet Company manufactures carpets. Fiber is placed in process in the Spinning Department, where it is spun into yarn. The output of the Spinning Department is transferred to the Tufting...
-
Themost recent financial statement for Watchtower, Inc. are shown here(assuming income taxes are part of costs):Income Statement:Sales- $4,100Costs- 2,624Net Income- $1,476Balance Sheet:Asset 2...
-
VF Corporation is an apparel company that owns recognizable brands like Timberland, Vans, Reef, and 7 For All Mankind. Exhibit 5.18 and 5.19 present balance sheets and income statements,...
-
Consider the following linear-log model: Y = 0.095 +2.5(InX). In this model, Y is family expenditures on healthcare and X is family income. What is the slope of Y when x=2? 05.0 01.345 1.25 0.19
-
what documents are needed to be sent in an email before a meeting about a home loan. 'Responsible lending disclosure obligations that must be provided before discussing credit activities with the...
-
The real return objective of Mr. Morison's should reflect the 6.25% spending rate, 1.75% inflation rate and 40 base point cost of earning investment return. Estimate his total return.
-
8. What is the total present value of $50 received in one year, $200 received in two years, and $800 received in six years if the discount rate is 8%? 9. Given the following cash flows, what is the...
-
Imagine that you are a Product Development manager of one (1) Takaful operator. You have been asked by the Board of Directors to come up with a proposal to improve the current coverage, benefits and...
-
it is true that once a company goes public, they have to pay attention to their shareholders and the investing public. Most companies don't pay dividends immediately, but eventually. Do you know how...
-
Please use the safe url below to answer this Supply Chain question in regards to total cost of ownership. I need to verify my approach. Thanks! In Table 9-3 of the safe URL below, when calculating...
-
In Exercises evaluate the limit, using LHpitals Rule if necessary. lim 07x cos x X
-
A person who can identify or produce a musical tone correctly without any outside reference is said to have perfect pitch. This can be tested using a pitch identification test (PIT). Perfect pitch...
-
Using data from Exercise 5.2.3, which of AD is the correct value for the appropriate statistic? A. 0.15 B. 0.25 C. 0.325 D. 0.40 Data from Exercise 5.2.3 Suppose you sample from two large populations...
-
When assigning symbols to statistics and parameters, which of AH is correct? (Choose all that are correct.) A. p is the sample proportion, is the population proportion. B. x is the sample...
-
Use properties of the real numbers and mental math to calculate the following: 1. \(2 \times 13 \times 50\) 2. \(13+84+27\) 3. \(9 \times 16 \times 11\)
-
In each of the following, identify which property of the real numbers is being applied. 1. \(4+(8+13)=(4+8)+13\) 2. \(34 \times\left(\frac{1}{34} ight)=1\) 3. \(14+27=27+14\)
-
Find the value of the following numbers modulo 12 : 1. 34 2. 539 3. 156
Study smarter with the SolutionInn App