Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Import Statements Run the cell below to import the NumPy, Matplotlib, and math packages. [ ] import numpy as np import matplotilib.pyplot as plt import
Import Statements Run the cell below to import the NumPy, Matplotlib, and math packages. [ ] import numpy as np import matplotilib.pyplot as plt import math Four arrays have been created to store the datasets that you will be working with in this lab. Running the cell below will import those arrays into your workspace. We will describe the imported arrays later in this notebook. The cell will also import some functions that will be used to test your code in Problem 7. Run that cell now. fron MATH_599.1ab_08 import x1,y1,x2,y2 fron MATH_599.1ab_68 import unit_test_1, unit_test_2, unit_test_3 Problem 4 - Memoryless Property In this problem, we will explore the memoryless property of an exponential random variable. Use the cell below to complete the following tasks: 1. Use NumPy to set a seed of 1 . 2. Generate a sample of 100,000 observations of an exponential random variable defined by XEXP(=1/50). 3. Use the sample to estimate each of the probabilities shown below. Print the resulting estimates rounded to 4 decimal places. - P[X20] - P[X50] The memoryless property says that each of these probabilities should be equal. The true value of this probably is equal to 0.1813 . The estimates generated should all be near this value. [ ] Start coding or generate with AI
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started