当前位置:网站首页>central limit theorem
central limit theorem
2022-07-19 03:40:00 【elkluh】
The central limit theorem points out the condition that a large number of random variables approximately obey the normal distribution .
import numpy as np
import matplotlib.pyplot as plt
N = 1000
x1 = np.zeros(N)
print(x1.shape)
for n in range(N):
x1[n] = np.sum(np.random.rand(12,1)) - np.sum(np.random.rand(12,1))
fig, ax = plt.subplots(figsize=(5,5)) #figuresize Refers to the window size
ax.hist(x1, 20)
plt.savefig('20.png')np.random.rand() The resulting points are randomly distributed , It can be seen from the figure below that the point subtraction of random distribution conforms to the normal distribution , In fact, addition is also .

边栏推荐
- Binary search (leetcode704. very simple and necessary)
- Pure virtual function
- 367. Effective complete square (necessary for entry)
- 洛谷每日三题之第五天
- 第一章 绪论
- Leetcode: subsequence problem in dynamic programming
- The third day of the three questions of Luogu daily (make up on the fourth day)
- Visual analysis of ncnn param file and bin model
- Es6 notes d'étude - station B Xiao Ma Ge
- Install Net prompt "cannot establish a certificate chain to trust the root authority" (simple method with download address)
猜你喜欢

Zabbix6.0 monitoring vcenter7.0

支持工业级瘦设备4G接入,润和软件DAYU120通过OpenHarmony兼容性测评

Game theory of catching lice

How to read and write a single document based on MFC

通过OpenHarmony兼容性测评,大师兄开发板与丰富教培资源已ready

箭头函数与this指向详解

ES6 learning notes - brother Ma at station B

Simple usage and interface introduction of labelme

Neural network learning notes 2.2 -- write a simple convolution neural network image classifier with MATLAB

运算符、赋值语句、结构说明语句
随机推荐
Win10 network connection shows no network but Internet access
Machine learning library scikit learn (linear model, ridge regression, insert a column of data, extract the required column, vector machine (SVM), clustering)
Latest installation tutorial of VMware Tools (rhel8)
Theoretical basis of doubledqn and its code implementation [pytoch + pendulum-v0]
本地存储localStorage⽤法详解
Through openharmony compatibility evaluation, the big brother development board and rich teaching and training resources have been ready
leetcode162. Looking for peak
箭头函数与this指向详解
The fifth day of the third question of Luogu daily
Yolov6 learning first chapter
zsh: command not found: mysql
神经网络学习笔记2.2 ——用Matlab写一个简单的卷积神将网络图像分类器
谷歌 Chrome 浏览器安装 PWA 应用将显示更多描述信息
Thinkphp5.0 model operation uses page for paging
Rewrite equals why rewrite hashcode
By voting for the destruction of STI by Dao, seektiger is truly community driven
Oracle queries the host name and the corresponding IP address
[C语言勘误]数组长度的函数内获取方式错误
leetcode162. 寻找峰值
Rhce8 Learning Guide Chapter 1 installing rhel8.4