moment, 一阶矩,二阶矩, 随机变量

http://hi.baidu.com/karashun/item/c89846f4c4b22dcb521c2679


在物理中,有力矩(moment of force)= F*L (力* 力臂)

在概率统计中,有一阶矩,二阶矩, 三阶矩,四阶矩。

不严格的讲,这个”矩“是用来描述  一个点集合的形状。比如,一维上的中点,二维上的一个椭圆,或是用来描述距离 中点(或 最高点)偏离情况。

最常见的用法,

\mu_k=E((X-\mu)^k).\,

一阶矩为均值 μ1

二阶矩为方差,

三阶矩为 Skewness(偏斜)

四阶矩为

Moments of a Probability Distribution
We are now familiar with some of the properties of probability distributions. On this page we will introduce a set of numbers that describe various properties of such distributions. Some of these have already been encountered in our previous discussion, but now we will see that these fit into a pattern of quantities called moments of the distribution.



Moments


Let $ f(x)  $  be any function which is defined and positive on an interval $ [a,b] $  . We might refer to the function as a distribution, whether or not we consider it to be a probability density distribution. Then we will define the following moments of this function: 



Observe that moments of any order are defined by integrating the distribution $ f(x)  $  with a suitable power of x over the interval [a,b]. However, in practice we will see that usually moments up to the second are usefully employed to describe common attributes of a distribution.

Moments of a Probability Density Distribution


In the particular case that the distribution is a probability density, we have already established the following : 


This follows from the facts that probability distributions are normalized so that the area under the curve is always 1, (hence the zero'th moment is 1) and the average, or mean of the distribution is defined by the integral that also happens to be the first moment. In the past we have used the symbol $ {\bar x}  $  to represent the mean or average value of x but often the symbol $ \mu  $ is also used for this quantity. 
But what role does the second moment, 

play ? We will shortly see that the second moment helps describe the way that the "mass" or probability density is distributed about its mean. For this purpose, we must describe the notion of variance or standard deviation.



Variance and Standard Deviation

Two kids of roughly the same size can balance on a teeter-totter by sitting very close to the point at which the beam pivots as shown in the diagram below. They can also achieve a balance by sitting at the very ends of the beam, equally far away as shown in the next diagram. In both cases, the center of mass of the distribution is at the same place: precisely at the pivot point. However, the mass is distributed very differently in these two cases. In the first case, the mass is clustered close to the center, whereas in the second, it is distributed further away. The line segment under the two diagrams represents how far away the masses are from the center of mass. In the first case, this distance is small. In the second case it is larger. 

If we want to be able to describe how mass is distributed, we need to talk about attributes of the mass distribution other th the center, whereas in the second, it is distributed further away. The line segment under the two diagrams represents how far away the masses are from the center of mass. In the first case, this distance is small. In the second case it is larger. 

If we want to be able to describe how mass is distributed, we need to talk about attributes of the mass distribution other than just where its center of mass is located. Similarly, if we want to explain to someone how a probability density distribution is distributed about its mean, we would have to consider moments higher than the first. This is precisely what we shall do below. We will use the idea of the variance to describe whether the distribution is clustered close to its mean, or spread out over a great distance from the mean. 

The variance is defined as the average value of the quantity $ (distance ~from~mean)^2  $  . This average is taken over the whole distribution. (The reason for the square is that we would not like values to the left and right of the mean to cancel out. ) 

The standard deviation is defined as $ \sqrt{variance}  $  . 

If we had a random variable that takes on only discrete values $ x_i $  , with probability $ p_i $  and this discrete probability distribution has mean $ \mu $  we would define the variance as the average given by 

Note that it is not necessary to divide by the number of values because the sum of the discrete probabilities is 1, i.e. $ \sum p_i=1 $  . Now for a continuous probability density, with mean $ \mu $  , we define similarly 

The standard deviation is then Let us see what this implies about the connection between the variance and the moments of the distribution. From the equation for variance we calculate that Thus 
We recognize the integrals in the above expression, since they are simply moments of the probability distribution. Plugging in these facts, we arrive at 

Thus the variance is clearly related to the second moment and to the mean of the distribution. Further, the standard deviation is then 

Example 

Consider the continuous distribution, in which the probability is constant for values of x in the interval [a,b] and zero for values outside this interval. Such a distribution is called a uniform distribution. (It has the shape of a rectangular band of height C and base (b-a).) It is easy to see that the value of the constant C should be 1/(b-a) so that the area under this rectangular band will be 1, in keeping with the property of a probability distribution. 
We compute that 

(this was already known to us, since we have determined that the zero'th moment of any probability density is 1.) We also find that 

This last expression can be simplified by factoring, leading to 


Thus we have found that the mean $ \mu $  is in the center of the interval [a,b], as expected. The median would be at the same place by a simple symmetry argument: half the area is to the left and half the area is to the right of this point. 

To find the variance we might first calculate the second moment, 

It can be shown by simple integration that this yields the result 


We would then compute the variance 

After simplification, we get 

The standard deviation is then 


【课程特点】1、231节大容量课程:包SwiftUI的大部分知识点,详细讲解SwiftUI的方方面面;2、15个超级精彩的实例:包美食、理财、健身、教育、电子商务等各行业的App实例;3、创新的教学模式:手把手教您SwiftUI用户界面开发技术,一看就懂,一学就会;4、贴心的操作提示:让您的眼睛始终处于操作的焦点位置,不用再满屏找光标;5、语言简洁精练:瞄准问题的核心所在,减少对思维的干扰,并节省您宝贵的时间;6、视频短小精悍:即方便于您的学习记忆,也方便日后对功能的检索;7、齐全的学习资料:提供所有课程的源码; 更好的应用,更少的代码!SwiftUI是苹果主推的下一代用户界面搭建技术,具有声明式语法、实时生成界面预览等特性,可以为苹果手机、苹果平板、苹果电脑、苹果电视、苹果手表五个平台搭建统一的用户界面。SwiftUI是一种创新、简单的iOS开发中的界面布局方案,可以通过Swift语言的强大功能,在所有的Apple平台上快速构建用户界面。 仅使用一组工具API为任何Apple设备构建用户界面。SwiftUI具有易于阅读自然编写的声明式Swift语法,可与新的Xcode设计工具无缝协作,使您的代码设计**同步。自动支持动态类型、暗黑模式、本地化可访问性,意味着您的**行SwiftUI代码已经是您编写过的非常强大的UI代码了。 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值