From 85e9cb1e9a6b0cb9fa338331b1e152147d1a10e3 Mon Sep 17 00:00:00 2001 From: cool camel Date: Tue, 5 May 2026 20:02:22 +0200 Subject: [PATCH] gdg --- projekt.rmd | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/projekt.rmd b/projekt.rmd index 070b903..a747e82 100644 --- a/projekt.rmd +++ b/projekt.rmd @@ -22,6 +22,7 @@ library(binom) library(reshape2) fig.width = 10 fig.height = 10 + ``` # O danych @@ -35,14 +36,14 @@ Dane są zbierane miesięcznie i obejmują okres od sierpnia 2023 roku do czerwc 1. ```city``` - nazwa miasta, w którym znajduje się mieszkanie 1. ```squareMeters``` - powierzchnia mieszkania w metrach kwadratowych 1. ```rooms``` - liczba pomieszczeń w mieszkaniu -1. ```floor``` floorCount - the floor where the apartment is located and the total number of floors in the building +1. ```floor```,```floorCount``` - piętro, na którym znajduje się mieszkanie oraz całkowita liczba pięter w mieszkaniu 1. ```buildYear``` - rok wybudowania 1. ```latitude```, ```longitude``` - wysokość oraz szerokość geograficzna 1. ```centreDistance``` - odległość od centrum mierzona w kilometrach -1. ```poiCount``` - number of points of interest in 500m range from the apartment (schools, clinics, post offices, kindergartens, restaurants, colleges, pharmacies) -1. ```[poiName]Distance``` - distance to the nearest point of interest (schools, clinics, post offices, kindergartens, restaurants, colleges, pharmacies) -1. ```condition``` - the condition of the apartment -1. ```has[features]``` - whether the property has key features such as assigned parking space, balcony, elevator, security, storage room +1. ```poiCount``` - liczba POI w promieniu 500 metrów od mieszkania (szkoły, kliniki, poczty, przedszkola, restauracje, wydziały, apteki) +1. ```[poiName]Distance``` - odległość od najblższego zadanego POI (szkoły, kliniki, poczty, przedszkola, restauracje, wydziały, apteki) +1. ```condition``` - stan mieszkania +1. ```has[features]``` - kluczowe cechy takie jak , balkon, winda, ochrona, schowek 1. ```price``` - cena oferty w złotówkach @@ -168,20 +169,6 @@ ggplot(apartments_city, aes(x = reorder(city, mean_price_m2), theme_minimal() ``` - -```{r czy miasta się różnią} -kruskal.test(price_m2 ~ city, data = rent) - -kruskal.test(price_m2 ~ city, data = apartments) -``` - -```{r udział balkonów} -x <- sum(df$hasBalcony, na.rm = TRUE) -n <- sum(!is.na(df$hasBalcony)) - -binom.confint(x, n, methods = "wilson") -``` - # Analiza cen ## Ceny/m^2 w miastach @@ -344,7 +331,7 @@ ggplot(apartments_warsaw, aes(x=longitude, y=latitude, col=log_price)) + ``` -# Czy ceny normalne? +# Czy ceny są log-normalne? ## Porównanie dystrybuant empirycznych z dystrybuantami estymowanych rozkładów normalnych