<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>u651601f</author_name>
  <author_url>https://blog.hatena.ne.jp/u651601f/</author_url>
  <blog_title>usr / local / kt-lab</blog_title>
  <blog_url>https://u651601f.hatenablog.com/</blog_url>
  <categories>
    <anon>データ解析</anon>
    <anon>Ruby</anon>
    <anon>シミュレーション</anon>
  </categories>
  <description>私は毎日１箱タバコを吸う、世間から嫌われし喫煙者なのですが、 年間のタバコのコストなどを計算してみようと思いました。だいたい1箱440円で1日間吸うのだから、普通に考えて440×365円で計算できるのですが、 これはただのフェルミ推定を行っているだけでツマラナイです。なので、Rubyを使って１時間ほどかけて喫煙者の一日をシミュレーションするプログラムを作成しましたw 簡単な喫煙者モデルと、喫煙者の一日のモデルを作成してシミュレートしただけなので、細かい説明は省きます。 #喫煙者クラス class Smoker attr :smoking_time #累計喫煙時間 attr :tobacco #…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fu651601f.hatenablog.com%2Fentry%2F2013%2F11%2F10%2F033005&quot; title=&quot;喫煙者の１日を観察する - usr / local / kt-lab&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>2013-11-10 03:30:05</published>
  <title>喫煙者の１日を観察する</title>
  <type>rich</type>
  <url>https://u651601f.hatenablog.com/entry/2013/11/10/033005</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
