Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need a python script Exercise 2 : Maximum Likelihood and least squares In the file exponential _ data.txt there are 1 0 0 0
I need a python script
Exercise : Maximum Likelihood and least squares
In the file exponentialdata.txt there are decay time measurements between and s of muons, which have a mean lifetime of The PDF used to generate this data is:
where is the mean decay time in s and is the measured decay time.
a Calculate twice the negativeloglikelihood as a function of the lifetime Shift the values of the such that the minimum is zero and plot it for s
b Bin the time measurements into a histogram of equally sized bins, from to Use the binned maximum likelihood method to calculate twice the negativeloglikelihood for these bins as a function of Shift the values of the such that the minimum is zero and overlay the plot with the unbinned calculation in part a Does it matter if you approximate the integral by using the mean of the bin of the function when computing the prediction for each bin Argue quantitatively andor calculate and compare.
c Now create a function and calculate the as a function of Plot it and overlay it on the NLL plot with the other two calculations in parts a and b Shift the also such that the minimum is at zero. Compare the results.
d Bin the dataset into a wider histogram of bins and calculate the binned NLL and the function again. How is the agreement now between them? How do they agree agree with the unbinned calculation in part a
tableexponentialdata.txt
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