我正在寻找文档的代码,但我不知道这意味着什么。
获取专家帮助。谢谢!
Names Default To Here( 1 );
/* Generate random values, Normal(0,1) */
Y = J( 150, 1, Random Normal() );
/* CDF function */
{Quant, CumProb} = CDF( Y ); Wait(0);
/* Draw empirical and theorical CDF */
New Window( "Empirical CDF",
Graph Box(
X Scale( -3, 3 ),
Y Scale( 0, 1 ),
Pen Color( "red" );
For( i = 2, i <= N Row( Quant ), i++,
H Line( Quant[i - 1], Quant[i], CumProb[i] );
V Line( Quant[i - 1], CumProb[i - 1], CumProb[i] );
);
i = N Row( Quant );
V Line( Quant[i], CumProb[i], 1 );
Pen Color( "blue" );
Y Function( Normal Distribution( q ), q );
)
);我不知道“累积分布函数”和“累积密度函数”是否相同。