Question: Physics 4 7 3 0 , Fall 2 0 2 4 Homework # 4 Due Sunday November 3 r d Write a Python script quantile.py
Physics Fall
Homework #
Due Sunday November
Write a Python script
quantile.py which reads in an unknown random variable from a onecolumn file rvvec.dat and estimates the quantile of the data and it's confidence interval using the empirical likelihood method. should be passed to your script on the command line.
For example, if I call your script as follows:
belz@canis python
quantile.py
then the script should read rvvec.dat assumed to be in the same directory as your script compute the median of the data below this value of the RV and provide a range of the RV in which we can be certain the "true" median lies.
The quantile of the data is:
The pct CI is yyyyyyy zzzzzzzz
It is likely useful, but not required, that you produce a plot to confirm your calculation is doing something sensible
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
