The following has to be written in python X is a standard normal random variable N(0,1). Write a piece of code to compute the probability P(X>1.528). Your code should print out the probability, rounded to 4 decimal places. Library:  import scipy.stats as stats

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter12: Exception Handling
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question

The following has to be written in python

X is a standard normal random variable N(0,1). Write a piece of code to compute the probability P(X>1.528). Your code should print out the probability, rounded to 4 decimal places.

Library: 

import scipy.stats as stats

 

1 import scipy.stats as stats
2||
Check
Test
Expected Got
Testing output 0.0633
Traceback (most recent call last):
File "code.py", line 4, in <module>
prob0 = norm.cdf(X)
NameError: name 'X' is not defined
Transcribed Image Text:1 import scipy.stats as stats 2|| Check Test Expected Got Testing output 0.0633 Traceback (most recent call last): File "code.py", line 4, in <module> prob0 = norm.cdf(X) NameError: name 'X' is not defined
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT