BaşlayınÜcretsiz Başlayın

Original population - change sample size

In order to understand the sampling distribution associated with the slope coefficient, it is valuable to visualize the impact changes in the sample and population have on the slope coefficient. Here, changing the sample size directly impacts how variable the slope is.

Bu egzersiz

Inference for Linear Regression in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

set.seed(4747)

# Generate 100 random samples of size 50
many_samples <- ___

# Using many_samples, plot response vs. explanatory, grouped by replicate
___ + 
  # Add a point layer
  ___ + 
  # Add a smooth  trend layer, using lin. reg., no ribbon 
  ___
Kodu Düzenle ve Çalıştır