data
Table of contents
- Task 1: Experimental Design and Statistics
- Question 1: Parameter Identification and Hypothesis Formulation
- Question 1: Comparing Independent and Paired Samples
- Question 2: Diabetes Blood Glucose Levels Comparison
1. Task 1: Experimental Design and Statistics
1.1 Designing an experiment to compare animal speeds
To determine which animal is faster, an echidna or a tuatara, an experiment can be designed by:
- Collecting a sample of 30 echidnas and 30 tuataras.
- Ensuring both groups travel the same distance under identical conditions.
- Recording the time taken for each animal to complete the distance.
- Repeating the test multiple times for each animal to ensure reliability.
1.2 Statistics and parameters from experimental data
After conducting the experiment, statistical calculations can be made to infer population characteristics.
- Statistic: The mean time taken for the sample of echidnas and tuataras.
- Parameter: The true mean time for all echidnas and all tuataras in their respective populations.
1.3 Appropriate graphs for presenting data
When presenting data from an experiment involving one numerical variable (like time) and one categorical variable (like animal type), appropriate graphs include:
- Parallel boxplots: These visually compare the distribution of a numerical variable across different categories.
- Dot plots: Similar to boxplots, dot plots can show individual data points for each category, aiding in visualizing spread and potential outliers.



1.4 Investigating research questions with data
When working with data, a research question or hypothesis can be formulated. For example, with data on heights and gender:
- Research question: Are males taller than females?
- Variable types:
- Height is a continuous (numerical) variable.
- Gender is a categorical variable.
1.5 Histograms and bar charts for data visualization
Different types of graphs are used to visualize different data characteristics:
- Histograms are used to show the frequency distribution of a single numerical variable. For example, a histogram can display the distribution of student heights or penguin body masses.
- Bar charts are used to show the frequency or count of a categorical variable. For instance, a bar chart can depict the breakdown of gender in a tutorial group.

1.6 Comparing distributions using histograms
When comparing distributions of a numerical variable across different categories (e.g., male vs. female heights), histograms can be produced for each category separately.
- Comparing histograms allows for observation of similarities and differences in the shape, center, and spread of the distributions.
- For example, one might observe that the majority of males are taller than females, and that the range of female heights might show more drastic changes compared to male heights.

1.7 Calculating descriptive statistics
Descriptive statistics summarize the main features of a dataset. For a numerical variable like body mass, these include:
- Mean: The average value.
- Median: The middle value when data is ordered.
- Standard deviation: A measure of the spread or dispersion of data around the mean.
- Interquartile range (IQR): The difference between the 75th and 25th percentiles, indicating the spread of the middle 50% of the data.
1.8 Describing data from plots and statistics
When describing a dataset using both plots and numerical summaries, consider:
- Center: Indicated by the mean and median.
- Spread: Indicated by the standard deviation and IQR.
- Shape: Observed from histograms (e.g., skewed, symmetrical, bimodal).
- Unusual features: Such as multiple peaks or outliers, which might be visible in a histogram but not a boxplot.
1.9 Scatterplots for relationships between variables
A scatterplot is used to visualize the relationship between two numerical variables.
- One variable is plotted on the horizontal axis (e.g., flipper length) and the other on the vertical axis (e.g., body mass).
- This helps to identify the type and strength of the relationship, such as a strong positive relationship where longer flippers correspond to greater body mass.
1.10 Comparing groups using parallel boxplots
Parallel boxplots are particularly useful for comparing the distributions of a numerical variable across two or more categories.
- They allow for easy comparison of centers (medians), spreads (IQRs), and overall distributions between groups.
- This is often easier than comparing separate histograms, especially when the number of categories increases.
1.11 Principles of statistical inference
Statistical principles help in understanding data and making inferences:
- Central Limit Theorem (CLT): States that the distribution of sample means will be approximately normally distributed, regardless of the population's distribution, if the sample size is sufficiently large. This is crucial for hypothesis testing and confidence intervals.
1.12 Probability calculations for normal distributions
For data that is approximately normally distributed, probabilities can be calculated:
- Probability of a value being longer/shorter than a certain point: This involves using the mean and standard deviation to find the area under the normal curve.
- Probability of a sample mean: Using the CLT, the distribution of sample means can be determined, allowing for probability calculations related to sample means.
1.13 Identifying parameters and statistics
In statistical analysis, it's important to distinguish between population parameters and sample statistics:
- Parameter: A numerical characteristic of a population (e.g., the true mean weight of all kiwi fruit).
- Statistic: A numerical characteristic of a sample, used to estimate a parameter (e.g., the sample mean weight of 91.7 grams).
| Scenario | Parameter of Interest | Statistic |
|---|---|---|
| Average weight of 60 kiwi fruits | True mean weight of all kiwi fruit | Sample mean weight (91.7g) |
| Difference in mean weight between two blocks of kiwifruit | True difference in mean weight (μ1−μ2) | Difference between two sample means (6.25g) |
| Median age of males and females from a survey | True median age of all males | Sample median age (36.0 years) |
1.14 Formulating hypotheses
Hypotheses are statements about population parameters that are tested using sample data.
- Null Hypothesis (H0): A statement of no effect or no difference.
- Alternative Hypothesis (HA or H1): A statement that contradicts the null hypothesis, suggesting an effect or difference exists.
| Research Question | Parameter | Null Hypothesis (H0) | Alternative Hypothesis (HA) |
|---|---|---|---|
| Jeff's hunch about average age of colleagues being 41 | True mean age of all colleagues (μ) | μ=41 | μ=41 |
| Cake's food intake vs. recommended amount (125g) | True average amount of food eaten per day (μ) | μ=125g | μ<125g |
| Han's concern about a test being too hard | True mean mark on the test (μ) | μ=70% | μ<70% |
2. Question 1: Parameter Identification and Hypothesis Formulation
2.1 Identifying parameters and formulating hypotheses
This section focuses on identifying relevant parameters for research questions and formulating appropriate null and alternative hypotheses. A parameter is a numerical characteristic of a population, such as a mean or proportion.
- Parameter of interest: The specific characteristic of the population being studied.
- Null hypothesis (H0): A statement of no effect or no difference, which is assumed to be true until evidence suggests otherwise.
- Alternative hypothesis (H1): A statement that contradicts the null hypothesis, representing what the researcher is trying to find evidence for.
Here are examples of parameter identification and hypothesis formulation for various scenarios:
- Scenario: Jeff wonders if he drinks grape juice more or less often than nights he doesn't.
- Parameter: The proportion of nights Jeff drinks grape juice (p).
- Hypotheses: H0:p=0.5, H1:p=0.5.
- Scenario: Jeff's sister Jiff wonders if he drinks an unusually large number of coffees per day, with the internet average being 2.3.
- Parameter: Jeff's average number of coffees consumed per day (m).
- Hypotheses: H0:m=2.3, H1:m>2.3.
- Scenario: Jeff's brother-in-law Juff claims Jeff sleeps less than the recommended 7.5 hours per night.
- Parameter: Jeff's average number of hours of sleep per night (m).
- Hypotheses: H0:m=7.5, H1:m<7.5.
- Scenario: Jeff's fourth cousin thrice removed Esmerelda wonders if the proportion of Jeff's skull cavity filled with brain matter differs from the usual average of 80%.
- Parameter: The proportion of Jeff's skull cavity filled with brain matter (p).
- Hypotheses: H0:p=0.80, H1:p=0.80.
2.2 Koala sleep patterns
This section examines a research question regarding koala sleep patterns in zoos compared to wild koalas.
- Research question: Do koalas in zoos sleep the same amount as koalas in the wild?
- Wild koala information: Average sleep = 20 hours/day, standard deviation = 2.4 hours, normally distributed.
- Zoo koala study: Sample size (n) = 30 koalas, sample mean sleep time = 17.6 hours.
The following are the steps to address Han's research question:
- Define parameters and hypotheses:
- Parameter: The true average sleep time for koalas in zoos (μ).
- Null hypothesis (H0): μ=20 (Koalas in zoos sleep the same average amount as wild koalas).
- Alternative hypothesis (H1): μ=20 (Koalas in zoos sleep a different average amount than wild koalas).
- Mean and standard deviation for the sample mean:
- Assuming H0 is correct, the mean of the sampling distribution of the sample mean is equal to the population mean: μxˉ=μ=20 hours.
- The standard deviation of the sampling distribution of the sample mean (standard error) is calculated as: σxˉ=nσ=302.4.
- Calculate the test statistic: The test statistic for a population mean when the population standard deviation is known is a z-statistic: z=σxˉxˉ−μ=302.417.6−20.
- Calculate the p-value: The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming the null hypothesis is true.
- Conclusion: Based on a significance level of 0.05, a decision is made to either reject or fail to reject the null hypothesis.
2.3 Fenterra dairy cow milk production
This section investigates whether cows in the Waikato region of Fenterra produce a different amount of milk compared to Taranaki cows.
- Taranaki cow information: Average milk production = 4000 litres/year, standard deviation = 300 litres/year.
- Waikato cow study: Sample size (n) = 50 cows, sample mean milk production = 4100 litres/year.
- Assumption: Population standard deviation (σ) = 300 litres/year.
The following steps are used to test the hypothesis:
- Null and alternative hypotheses:
- Parameter: The true average milk production per year for Fenterra cows in the Waikato region (μ).
- Null hypothesis (H0): μ=4000 (Waikato cows produce the same average amount of milk as Taranaki cows).
- Alternative hypothesis (H1): μ=4000 (Waikato cows produce a different average amount of milk than Taranaki cows).
- Calculate the test statistic: z=σxˉxˉ−μ=503004100−4000.
- Calculate the p-value: This is the probability of observing a test statistic as extreme as, or more extreme than, the calculated value, assuming H0 is true.
- Conclusion: Using a significance level of 0.05, determine if there is evidence to suggest a difference in milk production.
2.4 Peter the penguin's fish catching
This scenario involves Peter, a penguin, who wants to know if his fish-catching average differs from the known average for little blue penguins.
- Known average: 685g of fish caught per day.
- Peter's data: Collected over 33 days.
- Peter's average: 699.66g.
- Peter's standard deviation: 8.16g.
The analysis proceeds as follows:
- Hypotheses and parameters:
- Parameter: Peter's true average amount of fish caught per day in grams (m).
- Null hypothesis (H0): m=685 (Peter's average fish catch is the same as the average penguin).
- Alternative hypothesis (H1): m=685 (Peter's average fish catch is different from the average penguin).
- Test statistic: T=8.16699.66−685=1.80. Degrees of freedom (df) = n−1=33−1=32. The test statistic is T(32)=1.80.
- P-value and conclusion: The p-value is 0.082. Since p>0.05, we fail to reject the null hypothesis. This suggests there is not enough evidence to conclude that Peter is an unusual penguin regarding his fish catching.
2.5 Thumb clasping preference
This section investigates the proportion of people who place their left thumb on top when clasping their hands.
- Jeff's observation: 48 people placed their left thumb on top, and 52 placed their right thumb on top, out of a total of 100 people observed.
The analysis involves the following steps:
- Hypotheses:
- Parameter: p, the proportion of people who place their left thumb on top.
- Null hypothesis (H0): p=0.5 (The proportion is 50%).
- Alternative hypothesis (H1): p=0.5 (The proportion is not 50%).
- Standard error for the sample proportion: SE=np(1−p)=1000.5(1−0.5)=1000.25=0.0025=0.05.
- Test statistic: Z=SEp^−p=0.050.48−0.50=0.05−0.02=−0.4.
- P-value and interpretation: The p-value is calculated using the standard normal distribution: P(Z<−0.4)=0.3446. For a two-tailed test, the p-value is 2×0.3446=0.6892. Since the p-value (0.6892) is greater than 0.05, we fail to reject the null hypothesis. There is not enough evidence to conclude that the proportion of people who place their left thumb on top is different from 50%.
2.6 Adelie penguin body mass
This section examines Jeff's hypothesis about the average body mass of Adelie penguins on Dream Island.
- Jeff's hypothesis: The average weight of a Dream Adelie penguin is 3800g.
- Data: Sample size (n) = 55 penguins, sample mean body mass = 3701.36g, sample standard deviation (s) = 448.77g.
The analysis involves hypothesis testing and confidence interval construction:
- Hypotheses:
- Parameter: The true average body mass of Dream Adelie penguins (m).
- Null hypothesis (H0): m=3800g.
- Alternative hypothesis (H1): m=3800g.
- Test statistic: T=s/nxˉ−μ=448.77/553701.36−3800≈−1.63.
- P-value: The p-value is 2P(T<−1.63) with df=55−1=54, which is approximately 0.109.
- Conclusion: Since 0.109>0.05, we do not reject the null hypothesis at the 5% significance level.
2.7 Confidence interval for Adelie penguin body mass
This subsection calculates and interprets a 95% confidence interval for the average body mass of Adelie penguins.
- Standard error: SE=ns=55448.77≈60.51g.
- t-value for 95% confidence interval: With df=54, the t-value (t∗) is approximately 2.005.
- 95% confidence interval: CI=xˉ±t∗×SE=3701.36±(2.005)(60.51)=3701.36±121.32. The interval is from 3580.04g to 3822.68g.
- Interpretation: We are 95% confident that the true average body mass of Adelie penguins on Dream Island is between 3580g and 3823g.
- Plausibility of 3800g: Since 3800g falls within the 95% confidence interval (3580.04g < 3800g < 3822.68g), it is a plausible value for the true average body mass.
- Consistency of outcomes: The hypothesis test did not reject the null hypothesis (p=0.109>0.05), and 3800g is within the 95% confidence interval. Both outcomes are consistent, indicating insufficient evidence to suggest the true body mass differs from 3800g.
2.8 Cute dog election poll
This section constructs a confidence interval for the proportion of enrolled cute dogs who would vote for Cake.
- Survey data: 64 cute dogs surveyed, 24 said they would vote for Cake.
- Proportion of votes for Cake (p^): 24/64=0.375 or 37.5%.
The analysis involves constructing a confidence interval:
- Standard error: SE=np^(1−p^)=640.375(1−0.375)=640.375×0.625=640.234375≈0.003662≈0.0605.
- Z-value for 95% confidence interval: Z∗=1.96.
- 95% confidence interval: CI=p^±Z∗×SE=0.375±1.96(0.0605)=0.375±0.1186. The interval is from 0.2564 to 0.4936, or 25.6% to 49.4%.
- Interpretation: We are 95% confident that the true proportion of cute dogs who would vote for Cake is between 25.6% and 49.4%.
- Plausibility of 40%: Since 40% falls within the confidence interval (25.6% < 40% < 49.4%), it is plausible that the true proportion of cute dogs who would vote for Cake is 40%.
2.9 Comparing walking habits and traffic
This section defines parameters and hypotheses for comparing different scenarios.
- Scenario: Jeff wonders if his walking habits differ on Mondays compared to Tuesdays.
- Parameters:
- m1: Mean amount of walking on Mondays.
- m2: Mean amount of walking on Tuesdays.
- Hypotheses: H0:m1=m2, H1:m1=m2.
- Scenario: Fred wonders if bears with scarves are cuter than bears without scarves.
- Parameters:
- m1: Mean cuteness score of bears with scarves.
- m2: Mean cuteness score of bears without scarves.
- Hypotheses: H0:m1=m2, H1:m1>m2.
- Scenario: Esmerelda wonders if morning peak traffic is different from evening peak traffic.
- Parameters:
- m1: Mean traffic volume during the morning peak.
- m2: Mean traffic volume during the evening peak.
- Hypotheses: H0:m1=m2, H1:m1=m2.
2.10 Diabetes data analysis
This section addresses the analysis of blood glucose levels in males versus females using the 'diabetes.xlsx' dataset.
- Research question: Is there a difference in the average blood glucose levels between males and females?
- Data visualization: A paired boxplot is to be produced to compare glucose levels by gender.

- Conclusion based on boxplot: Based on the boxplot, the question is whether there is conclusive evidence of a difference in average glucose levels between males and females.
3. Question 1: Comparing Independent and Paired Samples
3.1 Independent vs. Paired Samples
When comparing two groups, it is crucial to determine if the samples are independent or paired. This choice dictates the statistical methods used for analysis.
- Independent samples: Data are collected from two distinct groups where the observations in one group do not influence the observations in the other.
- Scenario: Comparing the average weight of kangaroos to the average weight of wallabies. These are two separate species, and the weight of one does not affect the weight of the other.
- Paired samples: Data are collected from the same subjects under two different conditions, or from matched pairs of subjects. Each observation in one group is directly related to a specific observation in the other group.
- Scenario: Measuring the strength of a person's dominant hand versus their non-dominant hand. Both measurements are taken from the same individual, creating a natural pairing.
- Scenario: Testing the effect of a drug on the same individuals before and after administration. The "before" and "after" measurements for each person form a pair.
3.2 Hypothesis Testing for Independent Samples
When comparing two independent populations, the goal is often to test for a difference in their means or proportions.
- Hypotheses for comparing means:
- Null Hypothesis (H0): There is no difference between the population means (μ1−μ2=0).
- Alternative Hypothesis (H1): There is a difference between the population means (μ1−μ2=0), or one mean is greater than the other (μ1−μ2>0 or μ1−μ2<0).
- Hypotheses for comparing proportions:
- Null Hypothesis (H0): There is no difference between the population proportions (p1−p2=0).
- Alternative Hypothesis (H1): There is a difference between the population proportions (p1−p2=0), or one proportion is greater than the other (p1−p2>0 or p1−p2<0).
The standard error of the difference between two population means is calculated using their respective standard deviations and sample sizes.
| Parameter | Formula |
|---|---|
| Standard Error of the Difference between Two Means (assuming unequal variances) | n1s12+n2s22 |

The test statistic, often a t-statistic or z-statistic, is calculated to determine how many standard errors the observed difference in sample means is from zero. The degrees of freedom are also calculated, which are crucial for determining the p-value.
| Statistic | Formula |
|---|---|
| t-statistic (for independent samples) | n1s12+n2s22(xˉ1−xˉ2)−(μ1−μ2) |

The p-value represents the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming the null hypothesis is true. A conclusion is made by comparing the p-value to a chosen significance level (e.g., 5%).
If the p-value is less than the significance level, the null hypothesis is rejected.
A confidence interval for the difference between two population means provides a range of plausible values for the true difference. If this interval contains zero, it suggests that a difference of zero is plausible, and the null hypothesis would not be rejected at the corresponding significance level.
3.3 Hypothesis Testing for Paired Samples
When dealing with paired data, the analysis focuses on the differences between the paired observations.
- Hypotheses for paired differences:
- Null Hypothesis (H0): The mean difference between paired observations is zero (μd=0).
- Alternative Hypothesis (H1): The mean difference is not zero (μd=0), or one difference is greater than the other (μd>0 or μd<0).
A paired t-test is commonly used, where the test statistic is calculated based on the mean of the differences, the standard deviation of the differences, and the number of pairs.
| Statistic | Formula |
|---|---|
| t-statistic (for paired samples) | sd/ndˉ−μd |
The degrees of freedom for a paired t-test are n−1, where n is the number of pairs. The p-value is determined from this test statistic and degrees of freedom.
A conclusion is drawn by comparing the p-value to the significance level.
A confidence interval for the mean difference provides a range of plausible values for the true average difference. If this interval includes zero, it indicates that no statistically significant difference exists between the paired measurements.
3.4 Correlation and Linear Regression
Correlation measures the strength and direction of the linear relationship between two numerical variables.
- Interpretation of correlation values:
- Values near +1 indicate a strong positive linear relationship (as one variable increases, the other tends to increase).
- Values near -1 indicate a strong negative linear relationship (as one variable increases, the other tends to decrease).
- Values near 0 indicate a weak or no linear relationship.
Simple linear regression models the relationship between a dependent variable (y) and an independent variable (x) using a straight line. The method of least squares is used to find the "line of best fit" by minimizing the sum of the squared vertical distances between the actual data points and the predicted values on the line.
The fitted equation takes the form y=β0+β1x, where β0 is the intercept and β1 is the slope. The slope coefficient (β1) indicates the average change in the dependent variable for a one-unit increase in the independent variable.
A confidence interval for the slope coefficient provides a range of plausible values for the true slope of the relationship in the population.
4. Question 2: Diabetes Blood Glucose Levels Comparison
4.1 Interpretation of Confidence Interval
The confidence interval provides a range of plausible values for the true population parameter. For a 95% confidence interval, this means that if we were to repeat the sampling process many times, 95% of the intervals constructed would contain the true population parameter.
- Confidence Interval for Sepal Length: We are 95% confident that for every 1 cm increase in petal length, the mean sepal length increases between 0.828 cm and 1.164 cm.
4.2 Hypothesis Test for Slope Coefficient
A hypothesis test is used to determine if there is statistically significant evidence to reject a null hypothesis about a population parameter. In this case, the test examines the slope coefficient of petal length in relation to sepal length.
- Null Hypothesis (H₀): The slope coefficient for petal length is equal to 0 (B1=0). This suggests no linear relationship between petal length and sepal length.
- Alternative Hypothesis (H₁): The slope coefficient for petal length is not equal to 0 (B1=0). This suggests a linear relationship exists.
- Test Statistic: 11.90
- p-value: 6.3×10−16
- Significance Level: 0.05
Since the p-value (6.3×10−16) is less than the significance level (0.05), we reject the null hypothesis. There is strong evidence that the slope is not 0.
4.3 Conclusion on Linear Relationship
Based on the results of the hypothesis test, correlation analysis, and confidence interval, we can conclude whether a linear relationship exists between sepal length and petal length.
- The hypothesis test yielded a very small p-value, indicating statistical significance.
- The correlation coefficient (r=0.864) shows a strong and positive linear association.
- The 95% confidence interval for the slope (0.828 cm to 1.164 cm) does not include 0.
Consequently, a positive linear association between sepal length and petal length is strongly supported.
4.4 Plausibility of Jeff's Claim
Jeff claims that for every additional cm in petal length, the sepal length also increases by 1 cm. We can assess the plausibility of this claim using the estimated slope and its confidence interval.
- Estimated Slope: 0.9957
- 95% Confidence Interval: (0.828, 1.164)
Since the value of 1 cm (Jeff's claim) falls within the 95% confidence interval for the slope, Jeff's claim is plausible.
4.5 Data Summary for Tutorial 1
The following table summarizes key statistical measures for data related to Tutorial 1.
| Statistic | Value |
|---|---|
| Mean | 4207.057 |
| Median | 4050 |
| Standard deviation | 805.2158 |
| 1Q | 3550 |
| 3Q | 4775 |
| IQR | 1225 |
© 2026 Maeve. All rights reserved. This content is protected by copyright.