Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
$ H = \frac{n}{\frac{1}{x_1} + \frac{1}{x_2} + ... + \frac{1}{x_n}} $
显示
5588
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
调和平均数是将所有数值取倒数并求其算术平均数后,再将此算术平均数取倒数而得
显示
5587
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
基尼指数(基尼不纯度)= 样本被选中的概率 * 样本被分错的概率
显示
5586
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
基尼指数(基尼不纯度)
表示在样本集合中一个随机选中的样本被分错的概率。
显示
5585
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
熵的定义
熵是消除一个系统不确定性所需要的信息量的数学期望。也就是平均信息量。
显示
5584
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
由上面定义,我们可以定义如下公式来度量 自信息量=log_2 (1/p)=- log_2 (p)
显示
5583
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
信息是不确定的消除。
抛1个硬币有正反两面,如果是平均概率,也就是50%正面,50%反面。
如果有个信息,消除它的不确定性(2=2^1个可能性)我们把它记作 1
抛2个硬币有正反两面,如果是平均概率,也就是25%概率分别为:正正,正反。反正,反反、
如果有个信息,消除它的不确定性(4=2^2个可能性)我们把它记作 2
显示
5582
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
在统计学上, 广义线性模型 (Generalized linear model (GLM)) 是一种应用灵活的线性回归模型,简称GLM。该模型允许因变量的偏差分布有除了正态分布之外的其它分布。此模型假设实验者所量测的随机变量的分布函数与实验中系统性效应(即非随机的效应)可经由一链接函数(link function)建立起可资解释其相关性的函数。
显示
5581
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
K-S曲线,又称作洛伦兹曲线。实际上,K-S曲线的数据来源以及本质和ROC曲线是一致的,只是ROC曲线是把真正率( TPR )和假正率( FPR )当作横纵轴,而K-S曲线是把真正率( TPR )和假正率( FPR )都当作是纵轴,横轴则由选定的阈值来充当。
显示
5580
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
参考
https://zh.wikipedia.org/wiki/ROC%E6%9B%B2%E7%BA%BF
显示
5579
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
真阳性(TP 敏感性):诊断为有,实际上也有高血压。 伪阳性(FP):诊断为有,实际却没有高血压。 真阴性(TN 特异性):诊断为没有,实际上也没有高血压。 伪阴性(FN):诊断为没有,实际却有高血压。
显示
5578
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
ROC空间将伪阳性率(FPR)定义为 X 轴,真阳性率(TPR)定义为 Y 轴。 TPR:在所有实际为阳性的样本中,被正确地判断为阳性之比率。 FPR:在所有实际为阴性的样本中,被错误地判断为阳性之比率。 给定一个二元分类模型和它的阈值,就能从所有样本的(阳性/阴性)真实值和预测值计算出一个 (X=FPR, Y=TPR) 座标点。
显示
5577
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
一个标量函数的梯度 f (x 1 , x 2 , x 3 , ..., xn ) 记作 ∇f or \vec{\nabla} f 用微分算子符号 ∇ (nabla 符号) 来表示这个向量 , . 符号 "grad(f)" 也经常用来表示梯度. f 的梯度定义为唯一向量场的 它是向量 v 点积 每个点x 在f 沿着向量 v 的偏导数. 也就是,
(\nabla f(x))\cdot \mathbf{v} = D_{\mathbf v}f(x).
In a rectangular coordinate system, the gradient is the vector field whose components are the s of f :
\nabla f = \frac{\partial f}{\partial x_1 }\mathbf{e}_1 + \cdots + \frac{\partial f}{\partial x_n }\mathbf{e}_n
where the e i are the orthogonal unit vectors pointing in the coordinate directions. When a function also depends on a parameter such as time, the gradient often refers simply to the vector of its spatial derivatives only.
Cartesian coordinates
In the three-dimensional , the gradient is given by:
\nabla f = \frac{\partial f}{\partial x} \mathbf{i} +
\frac{\partial f}{\partial y} \mathbf{j} +
\frac{\partial f}{\partial z} \mathbf{k} where i , j , k are the s. For example, the gradient of the function
f(x,y,z)= \ 2x+3y^2-\sin(z)
is:
\nabla f=
\frac{\partial f}{\partial x} \mathbf{i} +
\frac{\partial f}{\partial y} \mathbf{j} +
\frac{\partial f}{\partial z} \mathbf{k}
= 2\mathbf{i}+ 6y\mathbf{j} -\cos(z)\mathbf{k}.
In some applications it is customary to represent the gradient as a or of its components in a rectangular coordinate system.
Cylindrical and spherical coordinates
{{main|Del in cylindrical and spherical coordinates}} In , the gradient is given by:[{{harvnb|Schey|1992|pp=139–142}}.]
\nabla f(\rho, \varphi, z) =
\frac{\partial f}{\partial \rho}\mathbf{e}_\rho +
\frac{1}{\rho}\frac{\partial f}{\partial \varphi}\mathbf{e}_\varphi +
\frac{\partial f}{\partial z}\mathbf{e}_z
where φ is the azimuthal or angle, z is the , and e ρ , e φ and e z are unit vectors pointing along the coordinate directions.
In , the gradient is given by:
\nabla f(r, \theta, \varphi) =
\frac{\partial f}{\partial r}\mathbf{e}_r+
\frac{1}{r}\frac{\partial f}{\partial \theta}\mathbf{e}_\theta+
\frac{1}{r \sin\theta}\frac{\partial f}{\partial \varphi}\mathbf{e}_\varphi
where φ is the angle and θ is the angle. For the gradient in other s, see .
显示
5576
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
在线公式输入
显示
5575
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
一个集合$ S \in R^n $ 称为凸集,若对任意的两个点$x,y \in S $,连接他们的两个点都在集合$ S $内。 即,
$ x,y \in S, \theta \in [0,1] \rightarrow \theta x + (1-\theta) y \in S $
显示
5574
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
设连续随机变量X的分布函数为F(X),密度函数为p(x)。那么,对任意0
显示
5573
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
另一个例子,现分别有 A,B 两个容器,在容器 A 里分别有 7 个红球和 3 个白球,在容器 B 里有 1 个红球和 9 个白球,现已知从这两个容器里任意抽出了一个球,且是红球,问这个红球是来自容器 A 的概率是多少? A代表选择A容器,R是红球 红球概率: P(R)=8/(8+12)=8/20
A中红球概率:P(R|A)=7/(3+7)=7/10
P(A)=1/2 P(A|R) P(R)=P(R|A) P(A)=7/10*1/2=7/20
P(A|R)=7/20/(8/20)=7/8
显示
5503
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
任意50个相同年份出生的人,同一天生日的概率有多大? 很多人都会认为这个概率很低,可能低于10%。 二实际上它的概率是非常高的。
显示
5572
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
对数公式
显示
5571
Warning : Undefined array key "link_id" in /data/ask.mathfan.com/note/index.php on line 587
柯西不等式
显示
5527