www.crosshyou.info

政府統計の総合窓口のデータや、OECDやUCIやのデータを使って、Rの練習をしています。ときどき、読書記録も載せています。

2024-01-01から1年間の記事一覧

World Bank Population living in slums data analysis 5 - Simulation based multiple regression analysis with R infer package

Generated by Bing Image Creator: Long view from far, small creek, a few trees, one side road along with beautiful flowers, blue sky and white clouds, photo www.crosshyou.info This post is followng of the above post. In this post, I will do…

World Bank Population living in slums data analysis 4 - Simulation based statistical inference with R infer package

Generated by Bing Image Creatpr: Wide large view of rice fields in the summer, blue sky and sunflower www.crosshyou.info This post is following of the above post. In this post I will do simulation based statistical inference with R infer p…

読書記録 - 「教養としての建築入門 - 見方、作り方、活かし方」 坂牛 卓 著 (中公新書)

教養としての建築入門-見方、作り方、活かし方 (中公新書 2764) 作者:坂牛 卓 中央公論新社 Amazon 非常に読みやすい本でした。なんでだろうと考えると、章や節にこの章/節では~~のことを話します、と導入があって、終わりには、~~とはこういうことでし…

World Bank Population living in slums data analysis 3 - Which country has decreased living in slums most?

Generated by Bing Image Creator: Long view from the sky, high mountains and green grass fields, photo www.crosshyou.info This post is following of the above post. In the previous post, I find data start from 2000 to 2020. So, let's see how…

World Bank Population living in slums data analysis 2 - making histograms using R

Generated by Bing Image Creator: Beautiful flower bucket, photo www.crosshyou.info This post is following of the above post. In the previous post, I load Population living in slums data into R. In this post, I will make histograms using R …

World Bank Population living in slums data analysis 1 - import CSV file data into R and tidying data.

Generated by Bing Image Creator: Local area photograph, apple trees, blue sky and white clouds In this post, I will analyze World Bank Population living in slums data using R. Population living in slums (% of urban population) | Data (worl…

UCI の Adult データの分析6 - R の rpart パッケージで決定木での分類 (Classification)

Generated by Bing Image Creator: 遠くの空からの風景写真。牧場に牛が数頭いる。可愛い青い花がたくさん咲いている。 www.crosshyou.info の続きです。 今回は R の rpart パッケージで決定木の方法で分類に挑戦してみたいと思います。まず、rpart, rpart.…

読書記録 - 「食の歴史」 ジャック アタリ 著 プレジデント社

食の歴史 作者:ジャック・アタリ プレジデント社 Amazon 知人が、面白いと言っていたので読んでみました。 面白かったです。 北京原人やアウストラロピテクスの頃から現在までの食の歴史、そしてこれからがコンパクト(といっても 360 ページくらい) にまとめ…

UCI の Adult データの分析5 - R の FNN パッケージで、k-nearest neighbors での Classification

Generated by Bing Image Creator: 広い野原に小川と小道があって、菜の花がいっぱい咲いていて、空は青空の写真 www.crosshyou.info の続きです。 今回は、R の FNN パッケージで、k-nearest neighbors での分類をします。 まずは、FNN パッケージの読み込…

UCI の Adult データの分析4- R の glmnet パッケージを使って、 LASSO, Ridge, Elastic-Net Regression で income の分類に挑戦

Generated by Bing Image Creator: Photo of old times, beautiful mountains scenery, blue sky and white clouds, cheerful flowers www.crosshyou.info の続きです。前回は、 glmnet パッケージで income の分類をするための前準備でした。今回は、実際に…

UCI の Adult データの分析3 - R の glmnet パッケージを使って LASSO, Ridge, Elastic-Net Regression で分類するための前準備

Generated by Bing Image Creator: Long wide view of green grass field. Blue sky and a few white clouds. red flower, yellow flower and blue flower are shining. Photo www.crosshyou.info の続きです。前回と前々回で income と他の変数との関係をグ…

UCI の Adult データの分析2 - 2つのカテゴリカルデータの関係性は geom_col() でバーチャートで。

Generated by Bing Image Creator: Long wide view, wild garden of colorful flowers www.crosshyou.info の続きです。 前回は、データを R に読み込んで、income というカテゴリーデータと数値データの関係性を geom_histogram() でヒストグラムにしてみま…

UCI の Adult データの分析1 - R にデータを取り込み、ヒストグラムで分布を確認

Generated by Bing Image Creator: Very large cherry blossoms, long view from the blue sky, phot 今回は、UCI の Adult のデータを使って、Rの練習をしてみようと思います。 income が年間 $50k を超えるか、超えないかを判別するタスクです。 Becker,Ba…

読書記録 - 「無限と連続」 遠山 啓 著 (岩波新書)

無限と連続 (岩波新書) 作者:遠山 啓 岩波書店 Amazon 1952年に出版された本で、私が買った本は2022年3月の第67刷でした。 無限にも大小がある、ということが不思議でした。 ほかにもいろいろ面白いことが書かれていましたが、正直、半分も理解できていない…

都道府県別のパソコン所有数量のデータ分析9 - RのrpartパッケージでClassification

Generated by Bing Image Creator: Long view of beach and hibiscus flowers, photo, blue sky and white cloud www.crosshyou.info の続きです。今回は R の rpart パッケージで Classification をしてみましょう。まず、必要なパッケージの読み込みをしま…

都道府県別のパソコン所有数量のデータ分析8- Rのglmnetパッケージで Elastic-Net Multinomial Regression で Classification

Generated by Bing Image Creator: Beautiful close up phot, bulue tulips.www.crosshyou.info の続きです。今回はRのglmnetパッケージで multinomial recgression の方法で都道府県の classification を実行してみます。 まず、glmnet パッケージの読み込…

読書記録 - 「三国志 演義から正史、そして史実へ」 渡邊 義浩 著 (中公新書)

三国志 演義から正史、そして史実へ (中公新書) 作者:渡邉義浩 中央公論新社 Amazon 三国志の時代は、日本でいうと邪馬台国の卑弥呼の時代だというのが驚きです。 昔の中国と比べると日本はずいぶん遅れていたんだなと思います。 私は、吉川英治の「三国志」…

都道府県別のパソコン所有数量のデータ分析7 - RのFNNパッケージで、knn(k-Nearest Neighbor) Classification

Generated by Bing Image Creator: Beautiful long view of wild forest, many sunflowers, blue sky and white cloud, photo www.crosshyou.info の続きです。 しばらく回帰分析をしていたので、今回は気分を変えてclassificationをやってみましょう。 df_r…

都道府県別のパソコン所有数量のデータ分析6 - Rでパネルデータ分析 - 趣味・娯楽の時間とパソコン所有数量の関係

Generated by Bing Image Creator: A beautiful shiny long view of green grass field and colorful tiny flowers, photo. www.crosshyou.info の続きです。 今回は、仕事の平均時間や、趣味・娯楽の平均時間との関連性を調べてみましょう。 仕事の時間や、…

都道府県別のパソコン所有数量のデータ分析5 - Rでパネルデータ分析 - 大学・大学院卒者の割合とパソコン所有数量の関係

Generated by Bing Image Creator: A long quiet and joyful view of blue morning glory flowers and red rose flowers. www.crosshyou.info の続きです。 前回は1人当たり県民所得とパソコン所有数量の関係をパネルデータ分析の手法で調べてみました。今回…

都道府県別のパソコン所有数量のデータ分析4 - Rでパネルデータ分析 - 1人当たり県民所得とパソコン所有数量の関係

Generated by Bing Image Creator: A beautiful long and quiet view of cherry blossoms and rape blossoms from afarLandscape photo www.crosshyou.info の続きです。 今回はパネルデータ分析の手法で1人当たり県民所得とパソコン所有数量の関係を調べて…

読書記録 - 「感染症の歴史学」 飯島 渉 著 (岩波新書)

感染症の歴史学 (岩波新書) 作者:飯島 渉 岩波書店 Amazon この本では、新型コロナウィルス、天然痘、ペスト、マラリアの4つの感染症について社会がどのように対応してきたのか、を医史学(医学史)の観点から描いています。 医史学という学問分野があることを…

都道府県別のパソコン所有数量のデータ分析3 - Rのlm()関数で回帰分析。所得や大学・大学院卒者の割合、趣味・娯楽の時間が大きいほど、パソコン所有数量も大きい。

Generated by Bing Inage Creator: flower of Lysichiton camtschatcensis schott, photo www.crosshyou.info の続きです。今回は回帰分析でパソコン所有数量が1人当たり県民所得などの変数と関連があるかを調べてみます。 まず、前回と同じように各変数の調…

都道府県別のパソコン所有数量のデータの分析2 - Rのggplot2パッケージでデータを視覚化して全体像をとらえる。

Generated by Bing Image Creator: Lavender Field photo, with blue sky and white clouds in the background www.crosshyou.info 今回のポストは上のポストの続きです。前回はデータをRに取り込むところまでやりました。今回はデータを視覚化してみましょ…

読書記録 - 「戦後世界経済史 自由と平等の視点から」 猪木 武徳 著 (中公新書)

戦後世界経済史 自由と平等の視点から (中公新書) 作者:猪木武徳 中央公論新社 Amazon 2009年に出版された本です。 自由と平等の視点から、という副題にあるように、自由と平等という相反することをどのように両立させていくかが難しいけれども大事なことだ…

都道府県別のパソコン所有数量のデータの分析1 - Rにデータを読みこむ。

Generated by Bing Image Creator: picture of flower garden in the future, more realistic 今回は都道府県別のパソコン所有数量のデータの分析をしてみたいと思います。 まず、政府統計の総合窓口 e-stat のウェブサイトデータ表示 | 都道府県データ | 社…

OECD Household savings data analysis 6 - Panel Data regression analysis using R plm package.

Generated by Bing Image Creator: Photograph of narcissus tazetta garden with spring shiny sky, more bright tone www.crosshyou.info This post is following of the above post. I will do panel data regression analysis in this post. I refert to…

OECD Household savings data analysis 5 - Analyzing savings and per capita GDP using 'infer' package workflow.

Generated by Bing Image Creator: Photographic of real violet flowers on the flower garden, background is fine sky www.crosshyou.info This post is following of the above post. In this post I will analyze relationship between household savin…

OECD Household savings data analysis 4 - Join World Bank per capita GDP data using R inner_join() function

Generated by Bing Image Creator: Photographs of rape blossoms like an illustrated book, more shiny and green www.crosshyou.info This post is following of above post. In the previous post, I found year 2000 is a special year for household s…

読書記録 - 「文学は地球を想像する エコクリティシズムの挑戦」 結城 正美 著 (岩波新書)

文学は地球を想像する エコクリティシズムの挑戦 (岩波新書 新赤版 1988) 作者:結城 正美 岩波書店 Amazon エコクリティシズムという学問分野があるのは知りませんでした。文学を環境との係りの観点から分析、考察していくものだそうです。 ソローの「森の生…