Introduction to experimental design

Perancangan Eksperimen di R

Joanne Xiong

Data Scientist

Intro to experimental design

  • Starts with a question (hypothesis)
  • Collecting & analyzing the data

alt text

Perancangan Eksperimen di R

Steps of an experiment

  • Planning
    • dependent variable = outcome
    • independent variable(s) = explanatory variables
  • Design
  • Analysis
Perancangan Eksperimen di R

Key components of an experiment

  • Randomization
  • Replication
  • Blocking
Perancangan Eksperimen di R

Randomization

  • Evenly distributes any variability in outcome due to outside factors across treatment groups
  • Example:
    • double-blind medical trials
    • neither patient nor doctor knows which group has been assigned
    • group assignment is made randomly by 3rd party
Perancangan Eksperimen di R

Recap: t-tests

  • t-tests help answer research questions
    data("mtcars")
    
t.test(x = mtcars$mpg, alternative = "two.sided", mu = 40)
library(broom)
tidy()
Perancangan Eksperimen di R

Let's practice!

Perancangan Eksperimen di R

Preparing Video For Download...