Master Advanced Statistical Testing Methods ๐ฏ
Welcome to Week 8! This week, we dive deep into hypothesis testing methods - essential skills for making statistical inferences in agricultural and biological research. Learn one-sample tests, paired t-tests, and chi-square analysis!
Click the "Launch Week 8" button above to start your R environment. This will take 2-5 minutes to load with all necessary packages for hypothesis testing.
Once Binder loads, you'll see the Jupyter Notebook interface. In the left panel, you'll see:
assignment/ - Assignment 8 on biodiversity wildfire analysisclass_activity/ - Week 8 comprehensive tutorialClick on the class_activity folder to access this week's content.
Inside the class_activity folder, double-click on Week8_Correlation_Analysis.ipynb to open the interactive lab notebook.
This week we'll work with multiple datasets including iris and agricultural yield data! The notebook will guide you through:
Use these interactive tools to understand hypothesis testing concepts before working with R code:
๐ก Tip: Use these tools to practice hypothesis formation and visualize statistical concepts before applying them in your R notebook!
t.test(data, mu = 4, alternative = "two.sided") # Two-tailed testt.test(data, mu = 4, alternative = "greater") # One-tailed (greater)t.test(data, mu = 4, alternative = "less") # One-tailed (less)qt(1 - alpha/2, df = n-1) # Critical t-value
t.test(group1, group2, paired = FALSE) # Independent samplest.test(before, after, paired = TRUE) # Paired samplest.test(group1, group2, var.equal = FALSE) # Welch's t-testsubset(data, Species == "setosa") # Data filtering
chisq.test(observed, p = expected/sum(expected)) # Goodness of fitchisq.test(contingency_table) # Test of independencematrix(c(data), nrow = 2, byrow = TRUE) # Create contingency tablept(t_stat, df = n-1) # P-value calculation
From the main directory, click on the assignment folder to access Assignment 8.
Double-click on Assignment8.ipynb to open your assignment on biodiversity analysis.
Load biodiversity data and check distributions
Test if wildfire significantly affected biodiversity
Test if wildfire significantly increased biodiversity
Test if wildfire significantly reduced biodiversity
Discuss limitations of the statistical analysis
The assignment focuses on environmental research applications:
Learn to make evidence-based environmental decisions using rigorous statistical testing!
โ ๏ธ Important: Binder environments are temporary! Always save your work locally.
When you're done working, save your progress:
To resume your work:
.ipynb fileFor Assignment 8, submit TWO files to UC Davis Canvas:
Your completed assignment with all outputs and analysis
Your notebook code as backup
Due Date: Check Canvas for assignment deadline
By the end of this week, you will be able to:
Mohammadreza Narimani
๐ง mnarimani@ucdavis.edu
๐ซ Department of Biological and Agricultural Engineering, UC Davis
Click the Binder badge below to launch Week 8!
Happy hypothesis testing! ๐ฌ๐