Discussion Overview
The discussion revolves around calculating the uncertainty on the mean of a Gaussian function in MATLAB, particularly in the context of experimental data with associated errors. Participants explore the implications of using a Gaussian versus a Lorentzian lineshape and the methods for fitting such functions to data.
Discussion Character
- Exploratory
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant asks for a general formula for the uncertainty on the mean of a Gaussian function given N points with associated errors of ##\sqrt{y}##.
- Another participant seeks clarification on the meaning of the error associated with each y value, suggesting a need for more context.
- A participant describes a specific experimental setup involving counting experiments and how the uncertainty in counts relates to the Gaussian fitting process.
- Some participants argue that the lineshape may be Lorentzian rather than Gaussian, suggesting that the fitting approach should reflect this distinction.
- Others counter that atomic lines can be Gaussian, particularly when broadened by Doppler shifts, and mention the Voigt profile as a more general description.
- A later reply discusses the use of MATLAB's nlinfit function to extract the covariance matrix, which can be used to determine the uncertainty in the fitted parameters.
- Example MATLAB code is provided to illustrate the fitting process and how to calculate the uncertainty on the linewidth from the covariance matrix.
Areas of Agreement / Disagreement
Participants express differing views on whether the lineshape should be considered Gaussian or Lorentzian, indicating a lack of consensus on this aspect. The discussion remains unresolved regarding the best approach to calculate the uncertainty on the mean.
Contextual Notes
Some limitations include the potential conflation of Gaussian and Lorentzian shapes, and the dependence on the specific experimental context and definitions used in the discussion.