3.4 概率与统计分析.pptx
《3.4 概率与统计分析.pptx》由会员分享,可在线阅读,更多相关《3.4 概率与统计分析.pptx(18页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、MATLAB 程序设计1MATLAB 程序设计程序设计道路与桥梁工程系道路与桥梁工程系 副主任副主任Department of Civil EngineeringHefei University of Technology zw3z8mail.mst.edu;主讲人:王佐才主讲人:王佐才“黄山青年学者教授黄山青年学者教授”第三章 概率与统计分析2本章内容:统计分布的数字特征样本分布的频数直方图描述概率函数、分布函数、逆分布函数和随机数的发生第三章 概率与统计分析31.统计分布的数字特征平均值:平均值:mean Average or mean value of arraySyntaxM=mean
2、(A)M=mean(A,dim)DescriptionM=mean(A)returns the mean values of the elements along different dimensions of an array.If A is a vector,mean(A)returns the mean value of A.If A is a matrix,mean(A)treats the columns of A as vectors,returning a row vector of mean values.第三章 概率与统计分析41.统计分布的数字特征中值:中值:medianM
3、edian value of arraySyntaxM=median(A)M=median(A,dim)DescriptionM=median(A)returns the median values of the elements along different dimensions of an array.A should be of type single or double.If A is a vector,median(A)returns the median value of A.If A is a matrix,median(A)treats the columns of A as
4、 vectors,returning a row vector of median values.第三章 概率与统计分析51.统计分布的数字特征几何平均值:几何平均值:geomeanGeometric meanSyntaxm=geomean(x)geomean(X,dim)Descriptionm=geomean(x)calculates the geometric mean of a sample.For vectors,geomean(x)is the geometric mean of the elements in x.For matrices,geomean(X)is a row v
5、ector containing the geometric means of each column.For N-dimensional arrays,geomean operates along the first nonsingleton dimension of X.第三章 概率与统计分析61.统计分布的数字特征调和平均值:调和平均值:harmmeanHarmonic meanSyntaxm=harmmean(X)harmmean(X,dim)Descriptionm=harmmean(X)calculates the harmonic mean of a sample.For vec
6、tors,harmmean(x)is the harmonic mean of the elements in x.For matrices,harmmean(X)is a row vector containing the harmonic means of each column.For N-dimensional arrays,harmmean operates along the first nonsingleton dimension of X.harmmean(X,dim)takes the harmonic mean along dimension dim of X.第三章 概率
7、与统计分析71.统计分布的数字特征标准差:标准差:stdStandard deviationSyntaxs=std(X)s=std(X,flag)s=std(X,flag,dim)s=std(X),where X is a vector,returns the standard deviation using(1)above.The result s is the square root of an unbiased estimator of the variance of the population from which X is drawn,as long as X consists o
8、f independent,identically distributed samples.If X is a matrix,std(X)returns a row vector containing the standard deviation of the elements of each column of X.If X is a multidimensional array,std(X)is the standard deviation of the elements along the first nonsingleton dimension of X.第三章 概率与统计分析81.统
9、计分布的数字特征方差:方差:varVarianceSyntaxV=var(X)V=var(X,1)V=var(X,w)V=var(X,w,dim)DescriptionV=var(X)returns the variance of X for vectors.For matrices,var(X)is a row vector containing the variance of each column of X.For N-dimensional arrays,var operates along the first nonsingleton dimension of X.The resul
10、t V is an unbiased estimator of the variance of the population from which X is drawn,as long as X consists of independent,identically distributed samples.第三章 概率与统计分析9例1.X 由下面的由下面的matlab命令流生成的矩阵:命令流生成的矩阵:X(:,1)=ones(10,1);X(1,1)=100;X(10,1)=0.01;rand(state,1);randn(state,1)X(:,2)=rand(10,1);X(:,3)=ra
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 3.4 概率与统计分析 概率 统计分析
限制150内