如何计算R中拟合T分布的矩(均值,方差,偏度,峰度)?

时间:2020-05-13 15:49:06

标签: r statistics

我已经将样本数据(标准普尔500指数回报)拟合为T分布,现在必须计算前四个时刻。但是,我不知道如何处理它,我的代码如下: 这基本上是情节,以及我如何使用rugarch。有什么方法可以快速计算方差/均值/峰度/骨骼度?谢谢

<div start.container style="position:relative;  " class=main>
  <div start.s class="infoContent" style="">
    <div>Able an hope of body. Any nay shyness article matters own removal nothing his forming. Gay own additions education satisfied the perpetual. If he cause manor happy. Without farther she exposed saw man led. Along on happy could cease green oh. </div>
  </div>
  <div start.s class="infoContent">

    <div>
      Believing neglected so so allowance existence departure in. In design active temper be uneasy. Thirty for remove plenty regard you summer though. He preference connection astonished on of ye. Partiality on or continuing in particular principles as. Do
      believing oh disposing to supported allowance we. </div>
  </div>

  <div start.s class="infoContent">
    <div>On it differed repeated wandered required in. Then girl neat why yet knew rose spot. Moreover property we he kindness greatest be oh striking laughter. In me he at collecting affronting principles apartments. Has visitor law attacks pretend you calling
      own excited painted. Contented attending smallness it oh ye unwilling. Turned favour man two but lovers. Suffer should if waited common person little oh. Improved civility graceful sex few smallest screened settling. Likely active her warmly has.</div>
  </div>
  <div class=btn_learnmore style="left:10%">Learn More</div>
  <div class=btn_learnmore style="left:450px">Learn More</div>
  <div class=btn_learnmore style="left:750px">Learn More</div>
</div>

1 个答案:

答案 0 :(得分:0)

我不能肯定地说,因为我不熟悉rugarch软件包,并且文档有点肤浅。但是在我看来,您已经有了它们。

  • dist_st2$pars["mu"]是第一时间。
  • dist_st2$pars["sigma"]^2应该排第二(请注意,您不必对标准偏差进行平方才能得到方差)。
  • dist_st2$pars["shape"]是第四名。
  • 应该有dist_st2$pars["skew"],它是第三个。