moderndive (version 0.2.0)

tactile_prop_red: Tactile sampling from a tub of balls

Description

Counting the number of red balls in 33 tactile samples of size n = 50 balls from https://github.com/moderndive/moderndive/blob/master/data-raw/sampling_bowl.jpeg

Usage

tactile_prop_red

Arguments

Format

A data frame of 33 rows representing different groups of students' samples of size n = 50 and 4 variables

group

Group members

replicate

Replicate number

red_balls

Number of red balls sampled out of 50

prop_red

Proportion red balls out of 50

Examples

Run this code
# NOT RUN {
library(ggplot2)

# Plot sampling distributions
ggplot(tactile_prop_red, aes(x = prop_red)) +
  geom_histogram(binwidth = 0.025) +
  labs(x = expression(hat(p)), y = "Number of samples", 
  title = "Sampling distribution of p_hat based 33 samples of size n = 50")
# }

Run the code above in your browser using DataLab