Thanks to visit codestin.com
Credit goes to github.com

Skip to content
View lineageispig's full-sized avatar

Block or report lineageispig

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
lineageispig/README.md
  • 👋 Hi, I’m @lineageispig
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

title: "Hypothesis Testing in R" output: html_notebook

# generate random population
population <- rnorm(300, mean=65, sd=3.5)

# calculate population mean here:
population_mean <- mean(population)
population_mean
# generate sample 1
sample_1 <- sample(population, size=30)
sample_1

# calculate sample 1 mean
sample_1_mean <- mean(sample_1)
sample_1_mean
# generate samples 2,3,4 and 5
sample_2 <- sample(population, size=30)
sample_3 <- sample(population, size=30)
sample_4 <- sample(population, size=30)
sample_5 <- sample(population, size=30)
# calculate sample means here:
sample_2_mean <- "Not calculated"
sample_2_mean
sample_3_mean <- "Not calculated"
sample_3_mean
sample_4_mean <- "Not calculated"
sample_4_mean
sample_5_mean <- "Not calculated"
sample_5_mean

Popular repositories Loading

  1. recordingButton recordingButton Public

    Swift

  2. learningnotes learningnotes Public

  3. Adi Adi Public

  4. ocean ocean Public

  5. profile profile Public

  6. challenge challenge Public

    Forked from lalamove/challenge

    JavaScript