Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using python Jupyter The measurements are getting closer to known value, but how long do we need to expose to get a reliable estimate? You

image text in transcribed

Using python Jupyter

The measurements are getting closer to known value, but how long do we need to expose to get a "reliable" estimate? You can do a numerical experiment to find out. Try this: Write a function that will determine exposure time needed for 80 out of 100 estimates of the count rate to fall between 0.45 and 0.55 counts per second. Write the function so that you call it only once to give you the answer. Hints: You don't have to pack everything in a single function. Often it helps to break up the whole task into pieces. (This is part of the skill of computational thinking.) It is perfectly ok for you to have a function that runs another function. The np.where command may be useful for checking whether the results of your draw has the requisite number of values within the range. . Don't hard code anything - assume that you may need to re-use this function later for different bounds, different known_rate, etc. Outline: Outline your program here. ]: def poisson(known_rate, exptime, numdraws): measured_rate=((np.random.poisson (known_rate*exptime, numdraws )))/exptime return measured_rate The measurements are getting closer to known value, but how long do we need to expose to get a "reliable" estimate? You can do a numerical experiment to find out. Try this: Write a function that will determine exposure time needed for 80 out of 100 estimates of the count rate to fall between 0.45 and 0.55 counts per second. Write the function so that you call it only once to give you the answer. Hints: You don't have to pack everything in a single function. Often it helps to break up the whole task into pieces. (This is part of the skill of computational thinking.) It is perfectly ok for you to have a function that runs another function. The np.where command may be useful for checking whether the results of your draw has the requisite number of values within the range. . Don't hard code anything - assume that you may need to re-use this function later for different bounds, different known_rate, etc. Outline: Outline your program here. ]: def poisson(known_rate, exptime, numdraws): measured_rate=((np.random.poisson (known_rate*exptime, numdraws )))/exptime return measured_rate

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

create loop and function in php

Answered: 1 week ago