Matplotlib Tutorial 5: Gaussian Distribution & Fitting

preview_player
Показать описание
In this video, I am explaining how to create a Gaussian distribution with the help of a simplified simulation of 10 dice. In the next step, I create a Gaussian fit, in order to obtain the mean value and standard deviation from the data.

Please check the following playlist to get access to all Matplotlib tutorials:

You can find more matplotlib tutorials on my website:

0:00 Introduction
0:35 Creating file
1:02 Simulating data
2:50 Plotting data
3:47 Updating histogram
4:50 Creating fit
8:40 Optimization
Рекомендации по теме
Комментарии
Автор

thanks for the video! i was looking everywhere on how to fit a gaussian in my histogram, but they never worked and i wasn't understanding the codes either.

your video saved me and i surely understood what you done and teached.

gabriqm
Автор

Thanks a lot, I don't know how to choose my p0, is there any way for guessing? Can I guess it by printing some values? What if I only get a vertical line? Is it the problem that my plot has multiple peaks?

aangr
Автор

Thanks for this, but my code doesn't fit well. Can you help?

mcamario
Автор

Nice Presentation
is it possible to simulate a data Gaussian data with different width

afeezadegoke
Автор

Hi Thank you for this nice introduction
My question : how to you get the error on the fitted parameters?

catherineadloff
Автор

Hello Sir,
Sir tell me how to know about FWHM (Full Width Half Maxima) .
sir actually i'm working on Gamma Spectrometry (Ortec Software) I calculated data during Decay of different elements but i did not know about graph so, please give me a lit bit ideas about that .
Thanks In Advanced

zeenatullah
Автор

When he had the 42 likes, everyone watching was like: I want to press like, but then i destroy the nice number!! What should I ?! :D :D I did it for you folks ;-)

sciencewithcats