データ分析
Bing Image Creator で生成: Close up of Kalanchoe flowers, background is blue sky, white clouds, long river in the forest, photo www.crosshyou.info の続きです。今回はデータを R でグラフにしてみます。 Chapter 2 Data Visualization | Statistic…
Bing Image Creator で生成: Close up Crassula ovata flowers, background is plain green grass field under blue sky, photo 今回からしばらくは、都道府県別の人口密度と交通事故発生件数のデータを分析してみようと思います。 政府統計の総合窓口(www.e…
Bing Image Creator で生成: Close up Schlumbergera flowers, background is high mountains and white clouds in the sky, photo www.crosshyou.info の続きです。 前回は、gdp_growth と elder_index を単回帰分析しました。今回は都道府県別の効果を考慮…
Bing Image Creator で生成: Close up of yellow Cymbidium flowers, background is green grass field and blue sky, photo www.crosshyou.info の続きです。今回は R で単回帰分析をしましょう。infer パッケージのワークフローに沿ってやってみます。 htt…
Bing Image Creator で生成: Close up of chrysanthemum flowers, background is Orion in the night sky, photo www.crosshyou.info の続きです。今回は、2つのカテゴリカル変数があって、変数の比率の差の検定を infer パッケージのワークフローでやって…
Bing Image Creator で生成: Close up of yellow Chimonanthus praecox flowers, background is white clouds in the sky, photo www.crosshyou.info の続きです。 これまでの結果、沖縄県が一番、老齢化指数が低く、秋田県が一番、老齢化指数が高いことがわ…
Bing Image Creator で生成: Close up of carnation flowers, blue sky and great river background, photo www.crosshyou.info の続きです。 前回はデータフレームを並び替えて、どこの都道府県が老年化指数が高いか、低いか、県内総生産額対前年増加率が高…
Bing Image Creator で生成: Red Gold and Green, photo www.crosshyou.info の続きです。 今回はデータフレームの並び替えをします。 arrange() 関数で並び替えできます。 elder_index: 老年化指数を並び替えしてみます。 沖縄県が上位独占、という感じです…
Bing Image Creator で生成: Landscape photograph of Japanese Plum Flowers, background is blue sky and white clouds, photo 今回からしばらくは、都道府県別の老齢化指数と県内総生産額対前年増加率のデータの分析をしてみます。 政府統計の総合窓口 (w…
Bing Image Creator で生成: Close up photo of a Helleborus Niger flower, background is landscape of winter forests, photo www.crosshyou.info の続きです。 前回は、景気ウォッチャー調査データを使って、TOPIX の水準を回帰分析するモデルを作りまし…
Bing Image Creator で生成: Close up photo of Euphorbia pulcherrima, background is wild green grass fields, photo www.crosshyou.info の続きです。今回は景気ウォッチャー調査のデータから TOPIX を予測するモデルを作ろうと思います。 まずは分析の…
Bing Image Creator で生成: Closeup photo of white lily flowers, background is great amazon river, photo www.crosshyou.info の続きです。 前回は、景気ウォッチャー調査の total: 総合の値の current: 現状の方向性、future: 先行きの方向性、level: …
Bing Image Creator で生成: Closeup photo of strawberry flowers, background is white mountain, photo www.crosshyou.info の続きです。 まず、make_date() 関数で year と month から date という名前で日付を表す変数を作成しましょう。 total のグラ…
Bing Image Creator で生成: Close up photo of Rosa banksiae flowers, background is blue sky, photo 今回からしばらくは、景気ウォッチャー調査の分野・業種別DIのデータの分析をしてみたいと思います。 まず、データを s-stat.go.jp 政府統計の総合窓口…
Bing Image Creator で生成: Long view of blue ocean and high cliff, blue sky and white clouds, photo www.crosshyou.info の続きです。 今回は、k-Nearest Neighbors でクラシフィケーションをします。 まず、モデルを生成します。 fit() 関数でモデル…
Bing Image Creator で生成: Close up of natural Gerbera jamesonii flowers, background is blue sky and white clouds, deep forests , photo www.crosshyou.info の続きです。 今回は、Decision Tree でクラシフィケーションしてみます。 Fitting and pr…
Bing Image Creator で生成: Close up of blue Hyacinthus orientalis flowers, background is long wide view of wild green grass fields, photo www.crosshyou.info の続きです。前回まででデータフレームの前処理は終わりました。今回からは具体的にマシ…
Bing Image Creator で生成: Close up of White Hawthorn Blossoms, background is great river and blue sky, photo www.crosshyou.info の続きです。前回に引き続き、変数を分析しやすいように処理していきます。 X7 からはじめます。X7 は文字列のデータ…
Bing Image Creator で生成: Close up of Cyclamen persicum flowers, background is green grass field, photo 今回は、UCI Machine Learning Repository の Credit Approval のデータを分析してみたいと思います。クレジットカードの申し込みが承認される…
Bing Image Creator で生成: Close up of a pink Rhododendron flower, background is blue clear sky, photowww.crosshyou.info の続きです。前回はおおまかな分析で2009年と2022年の体力テストの結果を比較して、2009年のほうがテスト結果が良いようだとわ…
Bing Image Creator で生成: Long wide view of north fields, flowering woods, photo www.crosshyou.info の続きです。 前回の最後で、男子の握力を2009年と2022年で比較しました。 グラフでも比較してみましょう。 2009年のほうが上方にありますね、特に …
Bing Image Creator で生成: Long wide view of Southern Italian coast, photo 今回は、東京都の児童・生徒の体力テストの調査結果のデータを分析してみようと思います。 データは東京都統計年鑑のウェブサイトから取得しました。 https://www.toukei.metro…
Bing Image Creator で生成: Close up of gentiana scabra flowers, background is wild natural fields, photo www.crosshyou.info の続きです。 今回は、R の rpart パッケージを使って、決定木(Decision Tree) モデルで予測してみます。rpart パッケージ…
Bing Image Creator で生成: Close up of Tulip flowers, background is blue sky and white clouds, photo www.crosshyou.info の続きです。 今回は、R の FNN パッケージを使って、k-Nearest Neighbors で予測してみます。 そうしたら、knn.reg() 関数を使…
Bing Image Creator で生成: Close up of Paeonia suffruticosa flowers, background is Orion stars www.crosshyou.info の続きです。前回は、データフレームをトレーニング用とテスト用に分けました。それではいよいよモデルを作って予測してみましょう。 …
Bing Image Creator で生成: Close up of Wisteria of Flowers, background is natural green forests and blue sky, photo www.crosshyou.info の続きです。 前回は CSV ファイルのデータを R に読み込みました。今回はそのデータを予測しやすいように、デ…
Bing Image Creator で生成: long bird's view of great rainforest river, photo 今回からしばらくは、UCI Machine Learning Repositry の Bike Sharing のデータを分析してみようと思います。 Fanaee-T, H. (2013). Bike Sharing [Dataset]. UCI Machine L…
Bing Image Creator で生成: Close up of daisy flowers, ground is green grass, background is blue sky, photo www.crosshyou.info の続きです。 今回は百貨店とスーパーの売上品目の構成比率をみてみます。 上のようにして、構成比率を計算しました。 こ…
Bing Image Creator で生成: Close up photograph of yellow Dandelion flowers, background is long wide view of blue sky and high mountains, photo www.crosshyou.info の続きです。 今回は、Rでバーチャートを描いて、百貨店とスーパーの違いがはっき…
Bing Image Creator で生成: close up photograph of white clover flowers. white flowers and pink flowers. www.crosshyou.info の続きです。 今回はデータをグラフにしてみます。 このデータは、2018年の1月から12月までと、2022年の1月から12月までの24…