This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(ggplot2); theme_set(theme_bw()) | |
| library(patchwork) | |
| ## SÜREKLİ DAĞILIMLAR | |
| # Uniform Dağılım | |
| ggplot() + | |
| stat_function(fun = dunif, args = list(min = 0, max = 1)) + | |
| labs(x = "Uniform Dağılım (a = 0, b = 1)") | |
| ggplot() + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(ggplot2); theme_set(theme_bw()) | |
| library(patchwork) | |
| ## AYRIK DAĞILIMLAR | |
| p1 <- ggplot() + | |
| stat_function(fun = dbinom, args = list(size = 1, prob = .6), geom = 'bar') + | |
| labs(x = "Militao (p = .60)") + | |
| ylim(0, 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################ | |
| ##### R’A GİRİŞ KILAVUZU. ##### | |
| ##### Abdullah Kabaoglu ##### | |
| ##### U. of Illinois Urbana-Champaign ##### | |
| ##### Date Created: 12.02.2025 ##### | |
| ##### Last Revision: 12.02.2025 ##### | |
| ############################################ | |
| ### 1. TEMEL VERİ TİPLERİ | |
| # Tam sayı (integer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install.packages("tidyverse") | |
| library(tidyverse); theme_set(theme_bw()) | |
| set.seed(34680) | |
| ## MERKEZİ LİMİT TEORİSİ | |
| # Part 1: Bir veriden çekilen örneklemlerden üzerinden hesaplanan ortalama normal dağılıma sahiptir. | |
| male_heights <- round(rnorm(250, 175, 7.5)) | |
| female_heights <- round(rnorm(250, 155, 7.5)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================ | |
| # İSTATİSTİK KONSEPTLERI — Örnekli R Rehberi | |
| # Hazırlayan: Abdullah Kabaoğlu | KÜME Vakfı | |
| # ============================================================ | |
| # ============================================================ | |
| # 0. PAKET VE VERİ HAZIRLIĞI | |
| # ============================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #install.packages("tidyverse") | |
| #install.packages("nycflights") | |
| # Scripti ilk kez çalıştırdığınızda yukarıdaki kısmı baştaki kareleri kaldırıp bir kez çalıştırın | |
| library(tidyverse); theme_set(theme_bw()) | |
| library(nycflights13) | |
| set.seed(1) | |
| ### Örneklemden Popülasyon Ortalamasını Tahminleme/Hesaplama |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(scatterplot3d) | |
| library(RColorBrewer) | |
| set.seed(61801) | |
| dat <- tibble(x = rnorm(10), | |
| y = rnorm(10), | |
| z = rpois(10, 3)) |