(5/5)

Homework

Here are 19 of the 20 “perfect” g measurements (m/s2) after removing one outlier:

9.792

9.768

9.809

9.800

9.829

9.821

9.837

9.817

9.802

9.815

9.813

9.758

9.795

9.836

9.822

9.818

9.806

9.800

9.811

- Compute the mean and standard deviation from Equations 4.9 and 4.13.
- Find the mean and standard deviation from a c2 fit of a Gaussian to a histogram of the data, assuming the variance in each bin is just the number of counts. Use a normalized Gaussian with amplitude N*binwidth/(sigma*sqrt(2*pi)).
- Now fit a Gaussian to the histogram by minimizing the negative log-likelihood (eg -1*M from 10.7). Assume the histogram contents are Poisson distributed (2.11) when calculating the likelihood. You can use the minimize function from scipy to find the best fit values for mean and sigma.
- Find an upper and lower limit for each parameter from the likelihood fit by stepping the parameter away from the best fit value until the likelihood increases by 0.5.
- Now find mean and sigma from an unbinned fit of a Gaussian PDF to the data. Minimize the negative log of the likelihood computed from the values of the PDF evaluated at each data point. Repeat step 4 to find the uncertainties for the best fit values obtained this way.
- Compare the mean and standard deviations found in these four ways. Do they agree within uncertainties?

(5/5)

DescriptionIn this final assignment, the students will demonstrate their ability to apply two majorconstructs of the C programming language – Fu

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of