1 Giải thích về dataset

Bộ dữ liệu về giá bán xe hơi từ một trang web bán ô tô nổi tiếng ở Ba Lan được tổng hợp vào tháng 1 năm 2022.

Bộ dữ liệu gồm 117.927 quan sát và 11 biến.

mark: nhãn hiệu xe. Gồm 23 hãng xe

model: dòng xe

generation_name: thế hệ xe

year: năm

mileage: số km xe đi

vol_engine: kích thước động cơ tự động

fuel: nhiên liệu

city: địa phương ở Ba Lan

province: vùng ở Ba Lan

price: giá bán

cp <- read_excel("~/Library/Mobile Documents/com~apple~Numbers/Documents/Car_Prices_Poland_Kaggle.xlsx")
## New names:
## • `` -> `...1`
'https://docs.google.com/spreadsheets/d/1LYr-Ev1ubV0Y-Sc3xrYwDerVTVZq4Svn/edit?usp=share_link&ouid=104983862187174590159&rtpof=true&sd=true'
## [1] "https://docs.google.com/spreadsheets/d/1LYr-Ev1ubV0Y-Sc3xrYwDerVTVZq4Svn/edit?usp=share_link&ouid=104983862187174590159&rtpof=true&sd=true"
summary(cp)
##       ...1            mark              model           generation_name   
##  Min.   :     0   Length:117927      Length:117927      Length:117927     
##  1st Qu.: 29482   Class :character   Class :character   Class :character  
##  Median : 58963   Mode  :character   Mode  :character   Mode  :character  
##  Mean   : 58963                                                           
##  3rd Qu.: 88444                                                           
##  Max.   :117926                                                           
##       year         mileage          vol_engine       fuel          
##  Min.   :1945   Min.   :      0   Min.   :   0   Length:117927     
##  1st Qu.:2009   1st Qu.:  67000   1st Qu.:1461   Class :character  
##  Median :2013   Median : 146269   Median :1796   Mode  :character  
##  Mean   :2013   Mean   : 140977   Mean   :1812                     
##  3rd Qu.:2018   3rd Qu.: 203000   3rd Qu.:1995                     
##  Max.   :2022   Max.   :2800000   Max.   :7600                     
##      city             province             price        
##  Length:117927      Length:117927      Min.   :    500  
##  Class :character   Class :character   1st Qu.:  21000  
##  Mode  :character   Mode  :character   Median :  41900  
##                                        Mean   :  70300  
##                                        3rd Qu.:  83600  
##                                        Max.   :2399900
mean(cp$price)
## [1] 70299.88
var(cp$price)
## [1] 7195208997
sd(cp$price)
## [1] 84824.58