<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>napton</author_name>
  <author_url>https://blog.hatena.ne.jp/napton/</author_url>
  <blog_title>とげまる日記</blog_title>
  <blog_url>https://napton.hatenadiary.com/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>Rで最尤法を行おうと思ったのですが、ネットで調べてもいまいち分からなかったため自分で作ってみました。 自然な設定として線形回帰モデルを考え、最尤推定量を求めます。 モデル： ここで. 誤差項の分布として を仮定。 設定: N &lt;- 1000 # サンプル数 mu &lt;- c(5,2,3) # 回帰係数 sig &lt;- 3 # 分散 X &lt;- matrix(runif(3*N,min=1,max=5), nr=N, nc=3) # 説明変数行列 par.init &lt;- c(2,2,2,1) # 最適化の初期値 対数尤度関数: ここではの確率密度関数、 の番目の成分、の行。 log.likelihoo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnapton.hatenadiary.com%2Fentry%2F2024%2F07%2F05%2F123338&quot; title=&quot;R言語で対数尤度関数を作り最適化を行う - とげまる日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-07-05 12:33:38</published>
  <title>R言語で対数尤度関数を作り最適化を行う</title>
  <type>rich</type>
  <url>https://napton.hatenadiary.com/entry/2024/07/05/123338</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
