Master T-Distribution and Group Comparisons 🎯
Welcome to Week 6! This week, we explore confidence intervals and t-tests - essential skills for comparing means between groups in agricultural research. Learn to construct confidence intervals, use t-distribution, and interpret statistical comparisons!
Click the "Launch Week 6" button above to start your R environment. This will take 2-5 minutes to load with all necessary packages for confidence intervals and t-tests.
Once Binder loads, you'll see the Jupyter Notebook interface. In the left panel, you'll see:
assignment/ - Assignment 6 on wheat fertilizer experimentclass_activity/ - Week 6 lab tutorialClick on the class_activity folder to access this week's content.
Inside the class_activity folder, double-click on Week6_Confidence_Intervals_T_Tests.ipynb to open the interactive lab notebook.
This week we'll work with the iris dataset and confidence intervals! The notebook will guide you through:
Use these interactive tools to understand confidence interval concepts before working with R code:
💡 Tip: Use these tools to visualize confidence intervals and t-distribution before applying them in your R notebook!
print(x) # Standard printingcat("The value is:", x) # Concatenated outputpaste("Result:", x, "units") # String combinationx # Basic display
qt(1-alpha/2, df = n-1) # Critical t-valueDoF <- n-1 # Degrees of freedomt_score <- qt(0.975, 49) # 95% confidence, n=50
SE <- sd/sqrt(n) # Standard errorME <- t_score * SE # Margin of errorCI <- c(mean - ME, mean, mean + ME) # Confidence intervaldata %>% filter(Group == "Treatment") # Data filtering
From the main directory, click on the assignment folder to access Assignment 6.
Double-click on Assignment6.ipynb to open your assignment on confidence intervals for agricultural data.
Load data, calculate overall statistics, and construct confidence intervals
Compare fertilizer treatments using confidence intervals
The assignment focuses on agricultural research applications:
Learn to make evidence-based agricultural decisions using statistical methods!
⚠️ 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 6, 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
?qt for help with t-distribution functionsClick the Binder badge below to launch Week 6!
Happy confidence interval building! 📊🌾