Python Specials #1 - Probability Distribution Function

Publicado el: 01 enero 1970
en el canal de: Coder & Maker
103
3

In this code, we first create some sample data from a normal distribution using np.random.normal(). We then plot a histogram of the data using plt.hist() with the density=True argument to display the probability density rather than the raw counts.

Next, we plot the probability density function of the normal distribution using norm.pdf() from the scipy.stats module. We create a range of values for the x-axis using np.linspace() and plot the PDF using plt.plot().

Finally, we set the x-axis label, y-axis label, and title of the plot using plt.xlabel(), plt.ylabel(), and plt.title(), respectively. We then display the plot using plt.show().

Thanks for watching. For more videos and to support us, you can subscribe and follow our channel. Good luck...
All Coder & Maker videos :    • ALL VIDEOS  
More Python Specials videos:    • Python Specials  
More Python Examples videos:    / playlist  
list=PLN6LC3AB64ggeDF1_fR-77gdlNrtz-8VQ
Python Basics Videos :    • Python Basics  
Python Turtle Graphics Module:    • Python Turtle  Graphics  
Python Matplotlib Module Tutorials:    • Python Matplotlib Module  
Python Numpy Module Tutorials:    • Python Numpy Module  
Python Random Module Tutorials:    • Python Random Module  
Python Thonny Graphics Tutorials:    • Python Turtle Tutorials  


Download Thonny Ide: https://thonny.org


En esta página del sitio puede ver el video en línea Python Specials #1 - Probability Distribution Function de Duración hora minuto segunda en buena calidad , que subió el usuario Coder & Maker 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 103 veces y le gustó 3 a los espectadores. Disfruta viendo!