{"id":23139,"date":"2019-09-12T12:00:15","date_gmt":"2019-09-12T03:00:15","guid":{"rendered":"https:\/\/www.techscore.com\/blog\/?p=23139"},"modified":"2019-09-18T11:55:05","modified_gmt":"2019-09-18T02:55:05","slug":"r%e3%81%ab%e3%82%88%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e5%88%86%e6%9e%90%e8%b6%85%e5%85%a5%e9%96%80%ef%bd%9e%e5%8f%af%e8%a6%96%e5%8c%96%e7%b7%a8%ef%bd%9e","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2019\/09\/12\/r%e3%81%ab%e3%82%88%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e5%88%86%e6%9e%90%e8%b6%85%e5%85%a5%e9%96%80%ef%bd%9e%e5%8f%af%e8%a6%96%e5%8c%96%e7%b7%a8%ef%bd%9e\/","title":{"rendered":"R\u306b\u3088\u308b\u30c7\u30fc\u30bf\u5206\u6790\u8d85\u5165\u9580\uff5e\u53ef\u8996\u5316\u7de8\uff5e"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u6842\u5ddd\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001R\u306b\u3088\u308b\u30c7\u30fc\u30bf\u5206\u6790\u306b\u3064\u3044\u3066\u8d85\u5165\u9580\u7684\u306a\u5185\u5bb9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u7279\u306b\u3001\u53ef\u8996\u5316\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<a href=\"https:\/\/www.r-project.org\/\">R<\/a>\u3068\u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u4e00\u7a2e\u3067\u3059\u3002R\u306e\u7279\u5fb4\u3068\u3057\u3066\u3001\u7d71\u8a08\u89e3\u6790\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u7279\u5316\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u70b9\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u7d71\u8a08\u89e3\u6790\u3084\u30c7\u30fc\u30bf\u5206\u6790\u3001\u6a5f\u68b0\u5b66\u7fd2\u306e\u5f79\u306b\u7acb\u3064\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u95a2\u6570\u304c\u5145\u5b9f\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u7279\u5fb4\u3092\u3082\u3064R\u3092\u5229\u7528\u3057\u3066\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1 dir=\"auto\" data-sourcepos=\"7:1-7:27\"><a id=\"user-content-r\u306b\u3088\u308b\u30c7\u30fc\u30bf\u5206\u6790\" class=\"anchor\" href=\"#r%E3%81%AB%E3%82%88%E3%82%8B%E3%83%87%E3%83%BC%E3%82%BF%E5%88%86%E6%9E%90\" target=\"_blank\" rel=\"nofollow noreferrer noopener\" aria-hidden=\"true\"><\/a>R\u306b\u3088\u308b\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316<\/h1>\n<h2 dir=\"auto\" data-sourcepos=\"9:1-9:9\"><a id=\"user-content-\u6982\u8981\" class=\"anchor\" href=\"#%E6%A6%82%E8%A6%81\" target=\"_blank\" rel=\"nofollow noreferrer noopener\" aria-hidden=\"true\"><\/a>\u6982\u8981<\/h2>\n<p dir=\"auto\" data-sourcepos=\"11:1-12:99\">\u672c\u8a18\u4e8b\u3067\u306f\u3001R\u3092\u5229\u7528\u3057\u3066\u30aa\u30fc\u30d7\u30f3\u30c7\u30fc\u30bf\u3092\u5206\u6790\u3057\u307e\u3059\u3002 \u7279\u306b\u3001\u30c7\u30fc\u30bf\u5168\u4f53\u306e\u6982\u8981\u3092\u8aad\u307f\u89e3\u304f\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\u306b\u53d6\u308a\u7d44\u307f\u307e\u3059\u3002<\/p>\n<p dir=\"auto\" data-sourcepos=\"11:1-12:99\">\u4eca\u56de\u3001\u8a2d\u5b9a\u3057\u305f\u76ee\u7684\u306f<strong>\u300c\u5bb6\u306e\u4fa1\u683c\u306b\u5927\u304d\u3044\u5f71\u97ff\u3092\u3082\u3064<\/strong><strong>\u7279\u5fb4\u306e\u628a\u63e1\u300d<\/strong>\u3067\u3059\u3002 \u500b\u4eba\u7684\u306a\u8a71\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u65b0\u5165\u793e\u54e1\u3068\u3057\u3066\u306e\u76ee\u6a19\u306f\u826f\u3044\u5bb6\u306b\u4f4f\u3080\u3053\u3068\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u69d8\u3005\u306a\u7279\u5fb4\u3067\u4fa1\u683c\u306f\u5909\u308f\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u90e8\u5c4b\u306e\u6570\u306f\u3044\u304f\u3064\u306b\u3059\u308b\u306e\u304b<\/li>\n<li>\u5916\u898b\u306f\u3069\u308c\u307b\u3069\u3053\u3060\u308f\u308b\u306e\u304b<\/li>\n<li>\u6d77\u304c\u898b\u3048\u308b\u6c34\u8fba\u306b\u5efa\u3066\u308b\u306e\u304b<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u7279\u5fb4\u306f\u3053\u3060\u308f\u308a\u306e\u5f37\u3044\u81ea\u5206\u306b\u3068\u3063\u3066\u3001\u3068\u3066\u3082\u91cd\u8981\u304b\u3064\u628a\u63e1\u3057\u3066\u304a\u304f\u3079\u304d\u5185\u5bb9\u304b\u3068\u601d\u3044\uff08\u5c11\u3005\u6c17\u304c\u65e9\u3044\u3067\u3059\u304c\uff09\u8abf\u67fb\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2 dir=\"auto\" data-sourcepos=\"14:1-14:36\"><a id=\"user-content-\u5bfe\u8c61\u3068\u3059\u308b\u30c7\u30fc\u30bf\u306e\u8a73\u7d30\" class=\"anchor\" href=\"#%E5%AF%BE%E8%B1%A1%E3%81%A8%E3%81%99%E3%82%8B%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E8%A9%B3%E7%B4%B0\" target=\"_blank\" rel=\"nofollow noreferrer noopener\" aria-hidden=\"true\"><\/a>\u5bfe\u8c61\u3068\u3059\u308b\u30c7\u30fc\u30bf\u306e\u8a73\u7d30<\/h2>\n<p dir=\"auto\" data-sourcepos=\"16:1-18:65\">\u672c\u8a18\u4e8b\u3067\u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30c7\u30fc\u30bf\u3068\u3057\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u4f4f\u5b85\u4fa1\u683c\u60c5\u5831<a href=\"#ref1\">*1 <\/a> \u3092\u5229\u7528\u3057\u3066\u305d\u308c\u3089\u306e\u7279\u5fb4\u3092\u5206\u6790\u3057\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u3092\u53ef\u8996\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u4f4f\u5b85\u4fa1\u683c\u306b\u7279\u306b\u5927\u304d\u3044\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u7279\u5fb4\u3092\u628a\u63e1\u3059\u308b\u624b\u304c\u304b\u308a\u3092\u767a\u898b\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30b9\u306b\u95a2\u3059\u308b\u30b3\u30cb\u30e5\u30cb\u30c6\u30a3\u30fc\u30b5\u30a4\u30c8\u300c<a href=\"https:\/\/www.kaggle.com\/\">Kaggle<\/a>\u300d\u304b\u3089\u4eca\u56de\u306e\u5206\u6790\u306b\u5229\u7528\u3059\u308b[<a href=\"https:\/\/www.kaggle.com\/harlfoxem\/housesalesprediction#kc_data.csv)\">\u4f4f\u5b85\u4fa1\u683c\u60c5\u5831\uff08kc_data.csv\uff09<\/a>\u300d\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2 dir=\"auto\" data-sourcepos=\"28:1-28:24\"><a id=\"user-content-\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\" class=\"anchor\" href=\"#%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E5%8F%AF%E8%A6%96%E5%8C%96\" target=\"_blank\" rel=\"nofollow noreferrer noopener\" aria-hidden=\"true\"><\/a>\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316<\/h2>\n<h3>\u5bfe\u8c61\u30c7\u30fc\u30bf\u306e\u628a\u63e1<\/h3>\n<p>\u307e\u305a\u306f\u3001\u5bfe\u8c61\u3068\u3059\u308b\u30c7\u30fc\u30bf\u304c\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u306a\u306e\u304b\u5b9f\u969b\u306b\u898b\u3066\u307f\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u308acsv\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8868\u5f62\u5f0f\u3067\u6a19\u6e96\u51fa\u529b\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"\"># \u5229\u7528\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u3042\u3089\u304b\u3058\u3081\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\nlibrary(ggplot2)\nlibrary(readr)\nlibrary(RColorBrewer)\nlibrary(dplyr)\nlibrary(gridExtra)\nlibrary(corrplot)\nlibrary(caret)\nlibrary(ggmap)\nlibrary(tidyverse)\nlibrary(moderndive)\n\n# \u307e\u305a\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\uff08csv\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002\ndata <- read.csv(\"kc_data.csv\", stringsAsFactor=F)\n\n# head\u306b\u3088\u308a\u3001\u8868\u306e\u4e0a\u304b\u30896\u4ef6\u306e\u307f\u3092\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\nhead(data)\n<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-23142 size-full\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/tmp.png\" alt=\"\" width=\"1298\" height=\"393\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/tmp.png 1298w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/tmp-300x91.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/tmp-768x233.png 768w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/tmp-1024x310.png 1024w\" sizes=\"(max-width: 1298px) 100vw, 1298px\" \/><\/p>\n<p>\u3053\u308c\u3067\u3001csv\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u304c\u628a\u63e1\u3067\u304d\u307e\u3059\u3002\u3053\u306ecsv\u30c7\u30fc\u30bf\u306f\u5217\u6570\uff08ID\u3092\u542b\u3081\u305f\u5909\u6570\u306e\u6570\uff09\u306f21\u5217\u3001\u884c\u6570\u306f\u7d042\u4e07\u884c\u3067\u3057\u305f\u3002<\/p>\n<h3>\u57fa\u672c\u7d71\u8a08\u91cf\u306e\u51fa\u529b<\/h3>\n<p>\u4eca\u56de\u306e\u30c7\u30fc\u30bf\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u7279\u5fb4\u304c\u3042\u308b\u306e\u304b\u30012\u4e07\u884c\u3042\u308b\u3053\u306e\u8868\u3092\u76ee\u8996\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u306f\u6c17\u306e\u9060\u304f\u306a\u308b\u4f5c\u696d\u306a\u306e\u3067\u3001\u5404\u5217\u306e\u57fa\u672c\u7d71\u8a08\u91cf\u3092\u7b97\u51fa\u3057\u307e\u3059\u3002\u57fa\u672c\u7d71\u8a08\u91cf\u3068\u306f\u3001\u30c7\u30fc\u30bf\u306e\u57fa\u672c\u7684\u306a\u7279\u5fb4\u3092\u8868\u3059\u3082\u306e\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>Min. \u3000 : \u6700\u5c0f\u5024<\/li>\n<li>1st Qu. : \u7b2c\uff11\u56db\u5206\u4f4d<\/li>\n<li>Median : \u4e2d\u592e\u5024<\/li>\n<li>Mean : \u5e73\u5747\u5024<\/li>\n<li>3rd Qu. : \u7b2c\uff13\u56db\u5206\u4f4d<\/li>\n<li>Max. \u3000 : \u6700\u5927\u5024<\/li>\n<\/ul>\n<p>R \u3067\u306f <code>summary<\/code>\u3092\u547c\u3073\u3060\u3059\u4e8b\u3067\u3001\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066\u3001\u4e0a\u8a18\u3092\u53d6\u5f97\u3057\u3066\u51fa\u529b\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30c7\u30fc\u30bf\u306e\u6982\u8981\u3092\u628a\u63e1\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u57fa\u672c\u7d71\u8a08\u91cf\u3092\u6a19\u6e96\u51fa\u529b\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"\"># summary\u306b\u3088\u3063\u3066\u8981\u7d04\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\nsummary(data)<\/pre>\n<pre class=\"\">       id                date               price            bedrooms     \n Min.   :1.000e+06   Length:21613       Min.   :  75000   Min.   : 0.000  \n 1st Qu.:2.123e+09   Class :character   1st Qu.: 321950   1st Qu.: 3.000  \n Median :3.905e+09   Mode  :character   Median : 450000   Median : 3.000  \n Mean   :4.580e+09                      Mean   : 540088   Mean   : 3.371  \n 3rd Qu.:7.309e+09                      3rd Qu.: 645000   3rd Qu.: 4.000  \n Max.   :9.900e+09                      Max.   :7700000   Max.   :33.000  \n   bathrooms      sqft_living       sqft_lot           floors     \n Min.   :0.000   Min.   :  290   Min.   :    520   Min.   :1.000  \n 1st Qu.:1.750   1st Qu.: 1427   1st Qu.:   5040   1st Qu.:1.000  \n Median :2.250   Median : 1910   Median :   7618   Median :1.500  \n Mean   :2.115   Mean   : 2080   Mean   :  15107   Mean   :1.494  \n 3rd Qu.:2.500   3rd Qu.: 2550   3rd Qu.:  10688   3rd Qu.:2.000  \n Max.   :8.000   Max.   :13540   Max.   :1651359   Max.   :3.500  \n   waterfront            view          condition         grade       \n Min.   :0.000000   Min.   :0.0000   Min.   :1.000   Min.   : 1.000  \n 1st Qu.:0.000000   1st Qu.:0.0000   1st Qu.:3.000   1st Qu.: 7.000  \n Median :0.000000   Median :0.0000   Median :3.000   Median : 7.000  \n Mean   :0.007542   Mean   :0.2343   Mean   :3.409   Mean   : 7.657  \n 3rd Qu.:0.000000   3rd Qu.:0.0000   3rd Qu.:4.000   3rd Qu.: 8.000  \n Max.   :1.000000   Max.   :4.0000   Max.   :5.000   Max.   :13.000  \n   sqft_above   sqft_basement       yr_built     yr_renovated   \n Min.   : 290   Min.   :   0.0   Min.   :1900   Min.   :   0.0  \n 1st Qu.:1190   1st Qu.:   0.0   1st Qu.:1951   1st Qu.:   0.0  \n Median :1560   Median :   0.0   Median :1975   Median :   0.0  \n Mean   :1788   Mean   : 291.5   Mean   :1971   Mean   :  84.4  \n 3rd Qu.:2210   3rd Qu.: 560.0   3rd Qu.:1997   3rd Qu.:   0.0  \n Max.   :9410   Max.   :4820.0   Max.   :2015   Max.   :2015.0  \n    zipcode           lat             long        sqft_living15 \n Min.   :98001   Min.   :47.16   Min.   :-122.5   Min.   : 399  \n 1st Qu.:98033   1st Qu.:47.47   1st Qu.:-122.3   1st Qu.:1490  \n Median :98065   Median :47.57   Median :-122.2   Median :1840  \n Mean   :98078   Mean   :47.56   Mean   :-122.2   Mean   :1987  \n 3rd Qu.:98118   3rd Qu.:47.68   3rd Qu.:-122.1   3rd Qu.:2360  \n Max.   :98199   Max.   :47.78   Max.   :-121.3   Max.   :6210  \n   sqft_lot15    \n Min.   :   651  \n 1st Qu.:  5100  \n Median :  7620  \n Mean   : 12768  \n 3rd Qu.: 10083  \n Max.   :871200  \n<\/pre>\n<p>\u5404\u5909\u6570\u306b\u3064\u3044\u3066\u3001\u3069\u306e\u3088\u3046\u306a\u5206\u5e03\u306a\u306e\u304b\u3001\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070\u3001\u4eca\u56de\u306e\u30c7\u30fc\u30bf\u3067\u306f\u3001\u4fa1\u683c\uff08price\uff09\u306f75, 000\uff5e7700, 000\u306e\u9593\u306e\u5024\u3092\u3068\u308a\u3001\u5e73\u5747\u5024\u306f540, 088\u3001\u4e2d\u592e\u5024\u306f450, 000 \u3067\u3042\u308b\u4e8b\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u307e\u305f \u968e\u306e\u6570\uff08floors\uff09\u306b\u3064\u3044\u3066\u306f\u30011\uff5e3.5 \u306e\u9593\u3067\u3001\u4e2d\u592e\u5024\u306f1.5\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306e\u63cf\u753b<\/h3>\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u6570\u5024\u3092\u898b\u3066\u3082\u307e\u3060\u307e\u3060\u5206\u304b\u308a\u306b\u304f\u3044\u30fb\u30fb\u30fb\u76f4\u611f\u7684\u3067\u306f\u306a\u3044\u30fb\u30fb\u30fb\u7279\u5fb4\u306e\u628a\u63e1\u304c\u96e3\u3057\u3044\u30fb\u30fb\u30fb\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u308c\u3089\u3092\u53ef\u8996\u5316\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u306f\u4fa1\u683c\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306b\u3057\u3066\u307f\u307e\u3059\u3002\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3068\u306f\u3001\u7e26\u8ef8\u306b\u5ea6\u6570\u3001\u6a2a\u8ef8\u306b\u968e\u7d1a\u3092\u3068\u3063\u305f\u7d71\u8a08\u30b0\u30e9\u30d5\u306e\u4e00\u7a2e\u3067\u3001\u30c7\u30fc\u30bf\u306e\u5206\u5e03\u306e\u72b6\u6cc1\u3092\u8996\u899a\u7684\u306b\u8a8d\u8b58\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306e\u63cf\u753b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"\">options(scipen=999)\noptions(repr.plot.width=20, repr.plot.height=20, align=\"center\")\n\ng2 <- ggplot(data, aes(x=price))+geom_histogram(fill=\"blue\")\ng2<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-23361 size-full\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/1-e1568254504891.png\" alt=\"\" width=\"1200\" height=\"1200\" \/><\/p>\n<p>\u6a2a\u8ef8\u304c\u5bb6\u306e\u4fa1\u683c\u3001\u7e26\u8ef8\u304c\u305d\u306e\u4fa1\u683c\u306e\u5bb6\u306e\u6570\u3067\u3059\u3002\u53ef\u8996\u5316\u3057\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u5206\u5e03\u304c\u76f4\u611f\u7684\u3067\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u306d\u3002\u307b\u3068\u3093\u3069\u306e\u5024\u304c\u3001500, 000~750, 000\u3042\u305f\u308a\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u3088\u3046\u306a\u6975\u7aef\u306a\u5206\u5e03\u3092\u8868\u3059\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3067\u306f\u3001\u7d30\u304b\u3044\u7279\u5fb4\u3092\u8a8d\u8b58\u3059\u308b\u3053\u3068\u306f\u96e3\u3057\u305d\u3046\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306f\u3001\u5024\u3092\u5bfe\u6570log\u306b\u5909\u63db\u3059\u308b\u306a\u3069\u3057\u3066\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u4fa1\u683c\u306e\u307f\u8a66\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u5bfe\u6570\u5909\u63db\u3057\u305f\u5024\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306e\u63cf\u753b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>data<-mutate(data, log_price=log10(price))\ng2 <- ggplot(data, aes(x=log_price))+geom_histogram()\ng2<\/code><\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-23362 size-full\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/2.png\" alt=\"\" width=\"2400\" height=\"2400\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/2.png 2400w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/2-150x150.png 150w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/2-300x300.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/2-768x768.png 768w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/2-1024x1024.png 1024w\" sizes=\"(max-width: 2400px) 100vw, 2400px\" \/><\/p>\n<p>\u6a2a\u8ef8\u304c\u5bfe\u6570\u5909\u63db\u3092\u3057\u305f\u5bb6\u306e\u4fa1\u683c\u3001\u7e26\u8ef8\u304c\u305d\u306e\u4fa1\u683c\u306e\u5bb6\u306e\u6570\u3067\u3059\u3002\u5148\u307b\u3069\u3088\u308a\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u306d\u3002<\/p>\n<p>\u6b21\u306b\u3001\u4eca\u56de\u306e\u30c7\u30fc\u30bf\u304b\u3089\u6570\u5024\u3067\u8868\u3055\u308c\u308b\u7279\u5fb4\u306e\u307f\u3092\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u5316\u3057\u3066\u4e00\u89a7\u8868\u793a\u3055\u305b\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u6570\u30b0\u30e9\u30d5\u3092\u4e00\u89a7\u8868\u793a\u3057\u3066\u305f\u63cf\u753b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"\">p1 <- ggplot(data, aes(x=price))+geom_histogram()\np2 <- ggplot(data, aes(x=bedrooms))+geom_histogram()\np3 <- ggplot(data, aes(x=bathrooms))+geom_histogram()\np4 <- ggplot(data, aes(x=sqft_living))+geom_histogram()\np5 <- ggplot(data, aes(x=sqft_lot))+geom_histogram()\np6 <- ggplot(data, aes(x=floors))+geom_histogram()\np7 <- ggplot(data, aes(x=waterfront))+geom_histogram()\np8 <- ggplot(data, aes(x=view))+geom_histogram()\np9 <- ggplot(data, aes(x=condition))+geom_histogram()\np10 <- ggplot(data, aes(x=grade))+geom_histogram()\np11 <- ggplot(data, aes(x=sqft_above))+geom_histogram()\np12 <- ggplot(data, aes(x=sqft_basement))+geom_histogram()\np13 <- ggplot(data, aes(x=yr_built))+geom_histogram()\np14 <- ggplot(data, aes(x=yr_renovated))+geom_histogram()\np15 <- ggplot(data, aes(x=zipcode))+geom_histogram()\np16 <- ggplot(data, aes(x=lat))+geom_histogram()\np17 <- ggplot(data, aes(x=sqft_living15))+geom_histogram()\np18 <- ggplot(data, aes(x=sqft_lot15))+geom_histogram()\n\n# \u8907\u6570\u30b0\u30e9\u30d5\u3092\u4e26\u3079\u3066\u63cf\u753b\ngridExtra::grid.arrange(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18)<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-23363 size-full\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/3.png\" alt=\"\" width=\"2400\" height=\"2400\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/3.png 2400w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/3-150x150.png 150w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/3-300x300.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/3-768x768.png 768w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/3-1024x1024.png 1024w\" sizes=\"(max-width: 2400px) 100vw, 2400px\" \/><\/p>\n<p>\u3053\u308c\u3067\u3001\u30c7\u30fc\u30bf\u306e\u6982\u8981\u3068\u3057\u3066\u3001\u5404\u5909\u6570\u306e\u5206\u5e03\u3092\u307f\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u3053\u306e\u5206\u5e03\u3092\u3058\u3063\u304f\u308a\u898b\u308b\u3053\u3068\u3067\u3001\u3044\u308d\u3093\u306a\u3053\u3068\u304c\u308f\u304b\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<h3>\u6563\u5e03\u56f3\u30fb\u56de\u5e30\u76f4\u7dda\u306e\u63cf\u753b<\/h3>\n<p>\u6b21\u306b\u3001\u76ee\u7684\u3067\u3042\u308b\u300c\u5bb6\u306e\u4fa1\u683c\u306b\u5927\u304d\u3044\u5f71\u97ff\u3092\u3082\u3064\u7279\u5fb4\u306e\u628a\u63e1\u300d\u306e\u305f\u3081\u306b\u3001\u6563\u5e03\u56f3\u3068\u305d\u306e\u56de\u5e30\u76f4\u7dda\u3092\u63cf\u753b\u3057\u3066\u307f\u307e\u3059\u3002\u6563\u5e03\u56f3\u3068\u306f\u30012\u7a2e\u985e\u306e\u9805\u76ee\u3092\u7e26\u8ef8\u3068\u6a2a\u8ef8\u306b\u3068\u308a\u3001\u30d7\u30ed\u30c3\u30c8\u306b\u3088\u308a\u4f5c\u6210\u3055\u308c\u308b\u56f3\u3067\u3059\u30022\u7a2e\u985e\u306e\u9805\u76ee\u306e\u9593\u306b\u76f8\u95a2\u95a2\u4fc2\u304c\u3042\u308b\u304b\u5426\u304b\u306e\u8abf\u67fb\u306e\u5f79\u306b\u7acb\u3061\u307e\u3059\u3002\u307e\u305f\u3001\u6563\u5e03\u56f3\u306b\u56de\u5e30\u76f4\u7dda\u3092\u63cf\u304f\u3053\u3068\u3067\u3001\u4e88\u6e2c\u3082\u3067\u304d\u307e\u3059\u3002\u56de\u5e30\u76f4\u7dda\u3068\u306f\u3001\u6563\u5e03\u56f3\u306b\u304a\u3051\u308b\u5206\u5e03\u306e\u50be\u5411\u3092\u307f\u308b\u3068\u304d\u306b\u7528\u3044\u3089\u308c\u308b\u76f4\u7dda\u306e\u3053\u3068\u3067\u3059\u3002<br \/>\n\u6700\u5c0f\u4e8c\u4e57\u6cd5\u3068\u547c\u3070\u308c\u308b\u7b97\u8853\u306b\u3088\u3063\u3066\u3001\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u201c\u4fa1\u683c\u201d\u3068\u201c\u5bdd\u5ba4\u306e\u6570\u201d\u3068\u306e\u95a2\u4fc2\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u6563\u5e03\u56f3\u3001\u304a\u3088\u3073\u56de\u5e30\u76f4\u7dda\u306e\u63cf\u753b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"\"># \u4fa1\u683c\u3068\u4ed6\u306e\u5909\u6570\u306e\u95a2\u4fc2\u3092\u307f\u305f\u3044\noptions(scipen=999)\noptions(repr.plot.width=20, repr.plot.height=20, align=\"center\")\n\np2 <- ggplot(data, aes(x=bedrooms, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np2<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-23146 size-full\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/results___9_0.png\" alt=\"\" width=\"2400\" height=\"2400\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/results___9_0.png 2400w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/results___9_0-150x150.png 150w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/results___9_0-300x300.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/results___9_0-768x768.png 768w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/results___9_0-1024x1024.png 1024w\" sizes=\"(max-width: 2400px) 100vw, 2400px\" \/><\/p>\n<p>\u6a2a\u8ef8\u304c\u5bdd\u5ba4\u306e\u6570\uff08bedrooms\uff09\u3001\u7e26\u8ef8\u304c\u5bfe\u6570\u5909\u63db\u3057\u305f\u5bb6\u306e\u4fa1\u683c\u3067\u3059\u3002\u6563\u5e03\u56f3\u304a\u3088\u3073\u56de\u5e30\u76f4\u7dda\u3092\u307f\u308b\u3068\u3001\u5bdd\u5ba4\u306e\u6570\u306e\u5897\u5927\u306b\u5bfe\u3057\u3066\u3001\u4fa1\u683c\u3082\u5897\u5927\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002\u3053\u308c\u304c\u6b63\u306e\u76f8\u95a2\u304c\u3042\u308b\u72b6\u614b\u3067\u3059\u3002<\/p>\n<p>\u540c\u3058\u8981\u9818\u3067\u3001\u4fa1\u683c\u3068\u4ed6\u306e\u5909\u6570\u3068\u306e\u95a2\u4fc2\u3082\u4e00\u89a7\u8868\u793a\u3057\u3066\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"\">p2 <- ggplot(data, aes(x=bedrooms, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np3 <- ggplot(data, aes(x=bathrooms, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\n\n# \u5024\u6bb5\u3068\u4ed6\u306e\u5909\u6570\u306e\u95a2\u4fc2\u3092\u307f\u305f\u3044\u3002\u6563\u5e03\u56f3\u3068\noptions(scipen=999)\noptions(repr.plot.width=20, repr.plot.height=20, align=\"center\")\n\np2 <- ggplot(data, aes(x=bedrooms, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np3 <- ggplot(data, aes(x=bathrooms, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np4 <- ggplot(data, aes(x=sqft_living, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np5 <- ggplot(data, aes(x=sqft_lot, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np6 <- ggplot(data, aes(x=floors, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np7 <- ggplot(data, aes(x=waterfront, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np8 <- ggplot(data, aes(x=view, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np9 <- ggplot(data, aes(x=condition, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np10 <- ggplot(data, aes(x=grade, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np11 <- ggplot(data, aes(x=sqft_above, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np12 <- ggplot(data, aes(x=sqft_basement, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np13 <- ggplot(data, aes(x=yr_built, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np14 <- ggplot(data, aes(x=yr_renovated, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np15 <- ggplot(data, aes(x=zipcode, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np16 <- ggplot(data, aes(x=lat, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np17 <- ggplot(data, aes(x=sqft_living15, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\np18 <- ggplot(data, aes(x=sqft_lot15, y=log_price))+geom_point()+stat_smooth(method=\"lm\", se=T, size=0.5)\n\ngridExtra::grid.arrange(p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18)\n<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-23364 size-full\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/4.png\" alt=\"\" width=\"2400\" height=\"2400\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/4.png 2400w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/4-150x150.png 150w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/4-300x300.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/4-768x768.png 768w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/4-1024x1024.png 1024w\" sizes=\"(max-width: 2400px) 100vw, 2400px\" \/>\u4fa1\u683c\u306f\u3001\u307b\u3069\u3093\u3069\u306e\u5909\u6570\u3068\u6b63\u306e\u76f8\u95a2\u304c\u3042\u308a\u305d\u3046\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3084\u306f\u308a\u3001\u3069\u3093\u306a\u8981\u7d20\u3067\u3082\u591a\u304b\u3063\u305f\u308a\u3001\u5927\u304d\u304b\u3063\u305f\u308a\u3059\u308b\u3068\u4fa1\u683c\u304c\u9ad8\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u30b0\u30e9\u30d5\u304b\u3089\u3082\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u306e\u63cf\u753b<\/h3>\n<p>\u6b21\u306b\u3001\u3053\u308c\u3089\u5909\u6570\u9593\u306e\u76f8\u95a2\u3092\u6bd4\u8f03\u3057\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u3001\u5404\u5909\u6570\u9593\u306e\u76f8\u95a2\u4fc2\u6570\u3092\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u306b\u3088\u308a\u3001\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u306f\u3001\u884c\u5217\u306e\u500b\u3005\u306e\u5024\u3092\u8272\u3084\u6fc3\u6de1\u3068\u3057\u3066\u8868\u73fe\u3057\u305f\u53ef\u8996\u5316\u30b0\u30e9\u30d5\u306e\u4e00\u7a2e\u3067\u3042\u308a\u3001\u8272\u306b\u3088\u308a\u76f8\u95a2\u4fc2\u6570\u3092\u6bd4\u8f03\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u306e\u63cf\u753b\u304c\u3067\u304d\u307e\u3059\u3002\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u4e0a\u540c\u3058\u8272\u4ed8\u3051\u3068\u306a\u3063\u305f\u3082\u306e\u306e\u9593\u3067\u3082\u95a2\u9023\u6027\u3092\u6bd4\u8f03\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u5404\u30bb\u30eb\u5185\u306b\u76f8\u95a2\u4fc2\u6570\u306e\u5024\u3082\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"\">col <- colorRampPalette(c(\"#BB4444\", \"#EE9988\", \"#FFFFFF\", \"#77AADD\", \"#4477AA\"))\ncorr<-cor(data[, 4:22])\ncorrplot(corr, method=\"shade\", shade.col=NA, tl.col=\"black\", tl.srt=45, \n         col=col(200), addCoef.col=\"black\", addcolorlabel=\"no\", order=\"AOE\")<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-23365 size-full\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/5.png\" alt=\"\" width=\"1200\" height=\"1200\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/5.png 1200w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/5-150x150.png 150w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/5-300x300.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/5-768x768.png 768w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/09\/5-1024x1024.png 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>\u4e0a\u8a18\u306e\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u304b\u3089\u3001\u4fa1\u683c\uff08log_price\uff09\u306f\u6b21\u306e\u7279\u5fb4\u3068\u6bd4\u8f03\u7684\u9ad8\u3044\u76f8\u95a2\u304c\u3042\u308b\u3068\u3044\u3048\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u898b\u305f\u76ee\uff08view\uff09<\/li>\n<li>\u5bdd\u5ba4\u306e\u6570\uff08bedroom\uff09<\/li>\n<li>\u6c34\u8fba\u306b\u7acb\u5730\u3057\u3066\u3044\u308b\u304b\u5426\u304b\uff08waterfront\uff09<\/li>\n<li>\u30ea\u30d3\u30f3\u30b0\u306e\u5e73\u7c73\uff08sqft_living\uff09<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u306f\u3001\u3053\u308c\u3089\u304c\u4fa1\u683c\u306b\u4e0e\u3048\u308b\u5f71\u97ff\u306f\u5927\u304d\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u6c34\u8fba\u3042\u305f\u308a\u306b\u3001\u5e83\u3044\u30ea\u30d3\u30f3\u30b0\u3001\u5927\u91cf\u306e\u5bdd\u5ba4\u3001\u305d\u3057\u3066\u3001\u3068\u3066\u3082\u898b\u305f\u76ee\u304c\u826f\u3044\u3001\u305d\u3093\u306a\u5bb6\u306b\u4f4f\u3080\u5922\u306f\u307e\u3060\u307e\u3060\u5148\u306e\u3088\u3046\u3067\u3059\u306d\u30fb\u30fb\u30fb<\/p>\n<p>&nbsp;<\/p>\n<h1 dir=\"auto\" data-sourcepos=\"30:1-30:11\"><a id=\"user-content-\u307e\u3068\u3081\" class=\"anchor\" href=\"#%E3%81%BE%E3%81%A8%E3%82%81\" target=\"_blank\" rel=\"nofollow noreferrer noopener\" aria-hidden=\"true\"><\/a>\u307e\u3068\u3081<\/h1>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001R\u306b\u3088\u308b\u30c7\u30fc\u30bf\u5206\u6790\u306b\u3064\u3044\u3066\u8d85\u5165\u9580\u7684\u306a\u5185\u5bb9\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u7279\u306b\u30c7\u30fc\u30bf\u5168\u4f53\u306e\u6982\u8981\u3092\u8aad\u307f\u89e3\u304f\u305f\u3081\u306b\u3044\u304f\u3064\u304b\u306e\u624b\u6cd5\u306b\u3088\u308a\u30c7\u30fc\u30bf\u3092\u53ef\u8996\u5316\u3055\u305b\u307e\u3057\u305f\u3002\u305d\u306e\u7d50\u679c\u300c\u5bb6\u306e\u4fa1\u683c\u306b\u5927\u304d\u3044\u5f71\u97ff\u3092\u3082\u3064\u7279\u5fb4\u300d\u3068\u3057\u305f4\u3064\u306e\u7279\u5fb4\u3092\u6319\u3052\u308b\u4e8b\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070csv\u306a\u3069\u3001\u30c7\u30fc\u30bf\u304c\u7f85\u5217\u3055\u308c\u305f\u5f62\u5f0f\u306e\u307e\u307e\u3001\u305d\u3053\u304b\u3089\u4eba\u304c\u76ee\u8996\u3067\u7279\u5fb4\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u306f\u56f0\u96e3\u3067\u3059\u3002\u7279\u306b\u3001\u30c7\u30fc\u30bf\u304c\u5927\u304d\u3044\u307b\u3069\u73fe\u5b9f\u7684\u3067\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306bR\u306a\u3069\u3092\u5229\u7528\u3057\u3066\u30c7\u30fc\u30bf\u5206\u6790\u3001\u53ef\u8996\u5316\u3059\u308b\u3053\u3068\u3067\u30c7\u30fc\u30bf\u304c\u305d\u306e\u4e2d\u306b\u3082\u3064\u7279\u5fb4\u3092\u5bb9\u6613\u306b\u8aad\u307f\u53d6\u308c\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002\u662f\u975e\u3001\u5229\u7528\u3057\u3066\u307f\u3066\u306f\u3069\u3046\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u6700\u5f8c\u307e\u3067\u8aad\u3093\u3067\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n<h1>\u53c2\u7167<\/h1>\n<ol>\n<li id=\"ref1\">House Sales in King County, USA | Kaggle(<a href=\"https:\/\/www.kaggle.com\/harlfoxem\/housesalesprediction\">https:\/\/www.kaggle.com\/harlfoxem\/housesalesprediction<\/a>) \u3088\u308a\u53d6\u5f97(2019\/09\/10)<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u6842\u5ddd\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001R\u306b\u3088\u308b\u30c7\u30fc\u30bf\u5206\u6790\u306b\u3064\u3044\u3066\u8d85\u5165\u9580\u7684\u306a\u5185\u5bb9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u7279\u306b\u3001\u53ef\u8996\u5316\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002R\u3068\u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u4e00\u7a2e\u3067\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2019\/09\/12\/r%e3%81%ab%e3%82%88%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e5%88%86%e6%9e%90%e8%b6%85%e5%85%a5%e9%96%80%ef%bd%9e%e5%8f%af%e8%a6%96%e5%8c%96%e7%b7%a8%ef%bd%9e\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":87,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[260],"tags":[330],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/23139"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=23139"}],"version-history":[{"count":62,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/23139\/revisions"}],"predecessor-version":[{"id":23332,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/23139\/revisions\/23332"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=23139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=23139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=23139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}