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...
-
NASA is developing a swing-wing airplane called the Bird of Prey [37]. As shown in Fig. P8.90, the wings pivot like a pocketknife blade: forward (a) Straight (b) Or backward (c) Discuss a possible...
-
How many permutations of 1, 2, 3, 4, 5, 6, 7 are not derangements?
-
In the case of diesel engine, the fuel and air are mixed in (a) injector (b) inlet manifold (c) carburettor (d) engine cylinder
-
A 50.0-kg grindstone is a solid disk 0.520 m in diameter. You press an ax down on the rim with a normal force of 160 N (Fig. 10.43). The coefficient of kinetic friction between the blade and the...
-
A company has an EPS of $7.50, a book value per share of $75.90, and a market/book ratio of 4.9x. What is its P/E ratio?
-
Punk Corporation purchased 90 percent of Soul Companys voting common shares on January 1, 20X2, at underlying book value. At that date, the fair value of the noncontrolling interest was equal to 10...
-
Use the formula for the curvature of a function to calculate the curvature of the parabola y = x at x = 1
-
What are the main factors that contribute to employee turnover, and how can organizations reduce it? Explain
-
(a) Determine the electric field strength at a point 1.00 cm to the left of the middle charge shown in the figure below. (Enter the magnitude of the electric field only.) 6.00 C 1.50 N/C + 3.00 cm...
-
Effective teachers plan and prepare for lessons using their extensive knowledge of the content area, the relationships among different strands within the content and between the subject and other...
-
Q2) a) Consider the following sequence of rotations: 1. Rotate by 30 about the fixed z-axis. 2. Rotate by -60 about the current x-axis. 3. Rotate by 45 about the fixed y-axis. 4. Rotate by -45 about...
-
Discuss the challenges facing the Omani labor market and their impact on HRM functions. Suggest different HRM strategies to help organizations to accommodate the changes in the labor market focusing...
-
O Show that U= Llog (sieht) find its harmonic conjugale. is harmonic and.
-
Factor and simplify, if possible. Check your result using a graphing calculator. 3 cot 2 + 6 cot + 3
-
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...
-
How can we effectively analyze a firm's financial ratios?
-
BlackBerry Ltd. has a target current ratio of 2.0 but has experienced some difficulties financing its expanding sales in the past few months. At present, the firm has current assets of $750,000 and a...
-
Cheung Keong Ltd. currently has \($2,150,000\) in current assets and \($860,000\) in current liabilities. The companys managers want to increase the firms inventory, which will be financed by a...
Study smarter with the SolutionInn App