Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

For task 3 I want to draw a normal distribution graph and fit a curve to see if it will be smooth or have several peaks, but I don't know what code should I use here, does anyone know how to do this in python/colab?

asked in CSC320 by (763 points)
0

Also since task 3 is open ended, I would appreciated if anyone willing to drop an idea of what other questions you could try to answer with Vader.

2 Answers

+1 vote

mathplotlib on Python has a lot of nice feature that you can do, including normal distribution. You can take a look here: https://stackoverflow.com/questions/10138085/python-pylab-plot-normal-distribution

answered by (2.1k points)
0 votes

Actually, I think what you want to plot is either a histogram, or a kernel density estimator (kde) plot.

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.hist.html

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.density.html

Then you can look and see whether it appears to be normally distributed or not!

answered by (12.2k points)
...