<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kento1109</author_name>
  <author_url>https://blog.hatena.ne.jp/kento1109/</author_url>
  <blog_title>機械学習・自然言語処理の勉強メモ</blog_title>
  <blog_url>https://kento1109.hatenablog.com/</blog_url>
  <categories>
    <anon>Stan</anon>
  </categories>
  <description>はじめに 前回は階層モデルの基本的なことを書いた。 kento1109.hatenablog.com今回は実際のデータでもう少し基本を確認する。 過分散 今回は緑本（データ解析のための統計モデリング入門）で紹介されている階層モデルの導入部分を実践する。データとしては以下を用意する。 x [1] 1 8 9 2 4 3 2 9 5 8 緑本では植物の種子数だったが、これは別に何でもよい。 今回は10点満点のテストの生徒の点数などと考える。これデータの平均と分散を最尤法で求めると以下となる。 n &lt;- length(x) opt &lt;- optimize(l, interval = c(0, 1),…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkento1109.hatenablog.com%2Fentry%2F2018%2F04%2F24%2F110607&quot; title=&quot;Stan：階層モデル② - 機械学習・自然言語処理の勉強メモ&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>2018-04-24 11:06:07</published>
  <title>Stan：階層モデル②</title>
  <type>rich</type>
  <url>https://kento1109.hatenablog.com/entry/2018/04/24/110607</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
