摘要
基于R语言设计了2个通用的大数定律随机模拟函数LLN_mean和LLN_graph,分别用于计算相关变量和绘制模拟图.通过适当设置其中参数,可以对任一随机数序列进行模拟,并用图形展示出算术平均值的变化趋势.旨在将大数定律所揭示的统计规律直观、清晰地呈现,通过调整各个参数值,让学生观察其对于收敛性的影响,达到较好的课堂效果.
Two R procedure named LLN_mean and LLN_graph were designed for simulation of law of large number,to calculate relevant variables and plot the simulated diagram respectively.By setting the parameters properly,any random series can be simulated and the trend of the arithmetic mean can be displayed graphically.The aim is to present the statistical regularity revealed by the law of large number intuitively and clearly.Through adjusting the values of various parameters,changes of convergence can be observed and then,better classroom results have been achieved.
作者
李晶晶
魏立力
LI Jing-jing;WEI Li-li(School of Mathematics and Statistics,Ningxia University,Yinehuan 750021,China)
出处
《高师理科学刊》
2019年第8期74-78,共5页
Journal of Science of Teachers'College and University
基金
宁夏大学创新创业教育类教学改革项目(CXJG201819)
关键词
大数定律
随机模拟
R语言
law of large number
stochastic simulation
R program