कोर्स में आपका स्वागत है!

R में संख्यात्मक डेटा के लिए Inference

Mine Cetinkaya-Rundel

Associate Professor of the Practice, Duke University

मैनहैटन में किराया

किसी दिन, Craigslist Manhattan पर "by owner" सूचीबद्ध अपार्टमेंट्स में से बीस 1 BR अपार्टमेंट्स को रैंडम चुना गया।

मैनहैटन में सामान्य किराए का बेहतर माप कौन सा है: mean या median?

chp1-vid1-manhattan-rents

R में संख्यात्मक डेटा के लिए Inference

Bootstrapping तकनीकें

  • मान लें कि डेटा प्रतिनिधि है
  • अपने ही bootstraps से ऊपर उठना
R में संख्यात्मक डेटा के लिए Inference

प्रेक्षित सैंपल

sample median = $2,350

chp1-vid1-bootsamp-bootpop

R में संख्यात्मक डेटा के लिए Inference

Bootstrap population

chp1-vid1-bootsamp-bootpop

R में संख्यात्मक डेटा के लिए Inference

Bootstrapping योजना

  1. एक bootstrap sample लें - मूल सैंपल से, उसी आकार का, with replacement लिया गया रैंडम सैंपल।

  2. bootstrap statistic निकालें - mean, median, proportion आदि जैसा कोई आँकड़ा, bootstrap samples पर गणना करें।

  3. चरण (1) और (2) कई बार दोहराएँ और bootstrap distribution बनाएँ - bootstrap statistics का वितरण।

R में संख्यात्मक डेटा के लिए Inference

Bootstrapping योजना, R में

library(infer)

___ %>%                               # data frame से शुरू करें
  specify(response = ___) %>%         # रुचि वाला वैरिएबल बताएँ
R में संख्यात्मक डेटा के लिए Inference

Bootstrapping योजना, R में

library(infer)

___ %>%                               # data frame से शुरू करें
  specify(response = ___) %>%         # रुचि वाला वैरिएबल बताएँ
  generate(reps = ___, type = "bootstrap") %>%  # bootstrap samples जनरेट करें
R में संख्यात्मक डेटा के लिए Inference

Bootstrapping योजना, R में

library(infer)

___ %>%                               # data frame से शुरू करें
  specify(response = ___) %>%         # रुचि वाला वैरिएबल बताएँ
  generate(reps = ___, type = "bootstrap") %>%  # bootstrap samples जनरेट करें
  calculate(stat = "___")             # bootstrap statistic निकालें
R में संख्यात्मक डेटा के लिए Inference

Bootstrap interval बनाना

library(infer)

___ %>%                               # data frame से शुरू करें
  specify(response = ___) %>%         # रुचि वाला वैरिएबल बताएँ
  generate(reps = ___, type = "bootstrap") %>%  # bootstrap samples जनरेट करें
  calculate(stat = "___")             # bootstrap statistic निकालें

chp1-vid1-boot-dist-noaxes

R में संख्यात्मक डेटा के लिए Inference

Bootstrap interval बनाना

library(infer)

___ %>%                               # data frame से शुरू करें
  specify(response = ___) %>%         # रुचि वाला वैरिएबल बताएँ
  generate(reps = ___, type = "bootstrap") %>%  # bootstrap samples जनरेट करें
  calculate(stat = "___")             # bootstrap statistic निकालें

chp1-vid1-boot-dist-noaxes-parantheses

R में संख्यात्मक डेटा के लिए Inference

अभ्यास करते हैं!

R में संख्यात्मक डेटा के लिए Inference

Preparing Video For Download...