DATA ANALYSIS L6
Table of contents
- Lecture 6 Sampling Designs Choosing Statistical Tests
- DATA (level of measurement)
- Samples
- Purpose
- Application Example
- YouTube videos
- THANK YOU
1. Lecture 6 Sampling Designs Choosing Statistical Tests
1.1 Bridging From Sampling to Testing
This lecture applies principles of sampling and study design to the selection of appropriate statistical tests. Key questions about group comparisons, sample relatedness, research goals, and data types guide this selection process 2.
- Guiding questions for test selection:
- Are we comparing groups?
- Are the groups related (same individuals) or independent?
- Is the goal to find a relationship or test a difference?
- What type of data do we have (nominal, ordinal, interval, ratio) 2?
1.2 Core Sampling Designs & Their Tests
Statistical tests are chosen based on the study design, which dictates how samples are structured and measured. Common designs include paired, independent, and multiple-group designs, each associated with specific statistical tests depending on data distribution 3 4.
- Paired (dependent) sample designs: Involve measuring the same individuals twice, often to assess change (e.g., pre/post measurements).
- Test selection:
- If data is normally distributed: T-test.
- If data is not normally distributed: Wilcoxon signed-rank test.
- Independent sample designs: Involve two separate groups being compared (e.g., Method A vs. Method B).
- Test selection:
- If data is normally distributed: Independent t-test.
- If data is not normally distributed: Mann-Whitney U test.
- Multiple groups or conditions: Used when comparing more than two groups.
- Test selection:
- ANOVA (if data is normally distributed).
- Kruskal-Wallis test (if data is not normally distributed).
- Control vs. experimental group: Compares two independent samples.
- Test selection:
- If the outcome is continuous and normally distributed: Independent t-test.
- If the outcome is continuous and not normally distributed: Mann-Whitney U test.
- If the outcome is categorical: Chi-square test 4.
📝 A nutritionist measures cholesterol levels in 20 individuals before and after a 2-week meal plan. This is a paired sample design, and if the cholesterol data is normally distributed, a paired t-test is appropriate; otherwise, a Wilcoxon signed-rank test is used 18.
1.3 Selecting the Right Statistical Test
Choosing the correct statistical test requires careful consideration of variables, data types, and the research question. A systematic approach involves asking key questions about the number of groups, sample relatedness, and data measurement level 5.
- Decision-making process for test selection:
- Question: How many groups?
- Leads to: t-test, ANOVA (for 1, 2, or more groups).
- Question: Are samples related?
- Leads to: Paired test (if yes).
- Question: What is the data type?
- Leads to: Chi-square (for nominal data).
- Leads to: Rank tests (e.g., Mann-Whitney) (for ordinal data).
- Leads to: T-tests (for interval/ratio data with normal distribution) 5.
1.4 Choosing Test - YouTube Video and Slides
The selection of statistical tests is further elaborated through online resources, emphasizing the critical steps of identifying data measurement levels, the number of samples, and the analysis purpose 6.
- Key steps in choosing a statistical test:
- Determine the level of measurement for the data being analyzed (DATA).
- Identify the number of samples involved (SAMPLES).
- Define the purpose of the analysis (PURPOSE) 6.
2. DATA (level of measurement)
2.1 Nominal Data
Nominal data is categorical, qualitative, and non-parametric. Summary values for nominal data include frequencies, proportions, and percentages.
Tests used for nominal data include tests for proportions and the Chi-square test for independence 7.
- Characteristics of nominal data:
- Categorical.
- Qualitative.
- Non-parametric.
- Examples of nominal data:
- Color.
- Whether parts are affected or not.
- Preference.
- Nominal data summary values:
- Frequencies.
- Proportions.
- Percentages.
- Tests used for nominal data:
- Test for proportion.
- Difference of two proportions.
- Chi-square test for independence 7.

2.2 Interval/Ratio Data
Interval and ratio data are quantitative. Summary values include the mean.
Tests used for interval/ratio data include tests for a mean, difference of two means (independent samples), regression analysis, and paired difference of two means 8.
- Examples of interval/ratio data:
- How many liked the red apples.
- Weight.
- Temperature.
- Interval/ratio data summary value:
- Mean.
- Tests used for interval/ratio data:
- Test for a mean.
- Difference of two means (independent samples).
- Regression analysis.
- Difference of two means (paired) 8.

📝 For nominal data, a contingency table shows that 32 out of 62 red apple consumers liked sour apples, while 30 out of 50 green apple consumers liked sour apples 7.
2.3 Ordinal Data
Ordinal data can be classified as nominal or interval/ratio, possessing a meaningful order but not necessarily equal intervals between categories 9.

3. Samples
3.1 Number of Samples
The number of samples involved in an analysis is a critical factor in selecting the appropriate statistical test. This can range from a single sample to multiple samples or one sample with multiple variables 10.
- One sample: Used for testing a relevant statistic against a hypothesized value11.
- Two samples: Used for comparing different groups, such as men and women or people from different departments12.
- One sample with multiple variables: Occurs when a single set of people or things provides information on several variables, such as gender and weight for individuals, or days and ice-cream sales 10 13.
3.2 Testing a Proportion or a Mean Against a Given Value
When analyzing a single sample, the focus is on testing a specific statistic, such as a proportion or a mean, against a predetermined hypothesized value 11.
📝 Comparing different groups, such as men and women or people from different departments 12.
3.3 Comparing Different Groups
Comparing different groups, such as distinct populations or experimental conditions, involves analyzing two separate samples to identify differences or relationships between them 12.
3.4 One Sample with Multiple Variables
This scenario involves a single set of individuals or items for whom multiple pieces of information (variables) have been collected. For example, collecting data on both gender and weight for each participant 13.
4. Purpose
4.1 Testing Against a Hypothesized Value
One primary purpose of statistical analysis is to test whether a calculated statistic from a sample significantly differs from a hypothesized population value 14.
📝 A nutritionist tests whether a 2-week meal plan improves cholesterol levels by measuring participants' cholesterol before and after the plan, using a paired t-test if the data is normally distributed 18.
4.2 Comparing Two Statistics
Another key purpose is to compare statistics derived from two different groups or samples to determine if there is a significant difference between them 15.
4.3 Looking for a Relationship
Statistical analysis can also be used to investigate the relationship between two variables. The choice of test depends on the type of data involved: contingency tables are used for nominal data, while scatterplots are used for interval/ratio data 16.
- Tests for relationships:
- Nominal data: Using data in a table (e.g., Chi-square test).
- Interval/Ratio data: Using data in a scatterplot (e.g., Regression analysis) 16.

5. Application Example
A nutritionist aims to assess the impact of a 2-week meal plan on cholesterol levels. The study involves 20 participants whose cholesterol is measured before and after the plan.
This design constitutes a paired sample because the same individuals are measured at two different time points. Cholesterol levels, being continuous, require a paired t-test if the data is normally distributed, or a Wilcoxon signed-rank test if it is not 18.
- Study design: Paired sample.
- Participants: 20 individuals.
- Data type: Continuous (cholesterol level in mmol/L).
- Test selection:
- Paired t-test (if normally distributed).
- Wilcoxon signed-rank test (if data is not normal) 18.
Following the meal plan, participants also rate its ease of use on a 5-point Likert scale, which is ordinal data. For analyzing pre/post attitude changes or comparing ease scores, the Wilcoxon signed-rank test is suitable 18.
- Follow-up survey data type: Ordinal.
- Test for follow-up data: Wilcoxon signed-rank test 18.
6. YouTube videos
Online video resources offer further explanations on statistical concepts and test selection. These videos cover topics such as choosing statistical tests, paired and independent samples, and experimental design types 19.
- Recommended videos:
- Statistical tests: choosing which statistical test to use.
- Paired samples and independent samples for statistical analysis.
- Types of Experimental Designs 19.
7. THANK YOU
7.1 Thank you
This concludes the lecture. Thank you for your attention and participation 21.
© 2026 Maeve. All rights reserved. This content is protected by copyright.