Research Methodology and Terminology Module.


Academic Year 2024-2025

TD 8

Data Analysis

 

           What Is Data Analytics?

           https://www.youtube.com/watch?v=yZvFH7B6gKI

          https://www.youtube.com/watch?v=rGx1QNdYzvs&list=PLUaB-1hjhk8FE_XZ87vPPSfHqb6OcM0cF

        Book to download Jerrold-H.-Zar-Biostatistical-Analysis-5th-Edition-Prentice-Hall ...

         https://bayesmath.com/wp-content/uploads/2021/05/Jerrold-H.-Zar-Biostatistical-Analysis-5th-Edition-Prentice-Hall-2009.pdf

Common data manipulations with R in biological researches

Shi-Yi Chen 1,, Qin Liu 2, Zhe Feng 2,

Chen SY, Liu Q, Feng Z. Common data manipulations with R in biological researches. J Thorac Dis. 2017 Jul;9(7):2209-2213. doi: 10.21037/jtd.2017.06.48. PMID: 28840022; PMCID: PMC5542989.

 

Teachers in charge of tutorials

Nasr-Eddine Kebir in charge of courses and tutorials

Assia Benmahieddine

Fatima  djebbah

Belgacem habiba

Bourahla Nadhira

 

Data Analysis Tutorial for Biology Students
Table of Content
Introduction to Data Analysis in Biology
1.1 Importance of Data Analysis in Biological Research
1.2 Types of Biological Data
1.3 Common Data Analysis Tools and Software

Data Collection and Organization
2.1 Designing Biological Experiments
2.2 Types of Data: Qualitative vs. Quantitative
2.3 Recording and Organizing Data: Best Practices

Descriptive Statistics
3.1 Measures of Central Tendency: Mean, Median, Mode
3.2 Measures of Dispersion: Range, Variance, Standard Deviation
3.3 Data Visualization: Graphs, Charts, and Tables

Inferential Statistics
4.1 Hypothesis Testing Basics
4.2 P-Values and Statistical Significance
4.3 Common Tests in Biology: t-Test, ANOVA, Chi-Square Test

Data Cleaning and Preprocessing
5.1 Identifying and Handling Missing Data
5.2 Data Normalization and Transformation
5.3 Detecting and Managing Outliers

Data Analysis Methods for Biological Studies
6.1 Regression Analysis: Linear and Logistic
6.2 Correlation vs. Causation
6.3 Multivariate Analysis: PCA, Cluster Analysis

Bioinformatics and Computational Tools
7.1 Introduction to R and Python for Data Analysis
7.2 Using Excel for Biological Data
7.3 Specialized Software: SPSS, GraphPad Prism

Interpreting Biological Data
8.1 Drawing Conclusions from Data
8.2 Avoiding Misinterpretation of Results
8.3 Ethical Considerations in Data Reporting

Case Studies in Biological Data Analysis
9.1 Example 1: Analyzing Population Genetics Data
9.2 Example 2: Investigating Environmental Effects on Biodiversity
9.3 Example 3: Clinical Data Analysis in Disease Studies

Practical Exercises and Projects
10.1 Exercise: Analyzing Plant Growth Under Different Conditions
10.2 Project: Statistical Analysis of Microbial Diversity
10.3 Exercise: Using Python to Analyze Gene Expression Data

Resources for Further Learning
11.1 Recommended Books and Articles
11.2 Online Tutorials and Courses
11.3 Data Sets for Practice

Conclusion
12.1 Recap of Key Concepts
12.2 The Future of Data Analysis in Biology

1. Introduction to Data Analysis in Biology
1.1 Importance of Data Analysis in Biological Research

Data analysis is crucial in biology for understanding patterns, testing hypotheses, and making scientific discoveries. It bridges observations and conclusions, enabling researchers to validate findings, identify anomalies, and predict trends.

1.2 Types of Biological Data

Quantitative Data: Numerical values (e.g., enzyme activity levels, population sizes).

Qualitative Data: Descriptive information (e.g., behavioral observations, color changes).

Time-Series Data: Data collected over time (e.g., growth rates).

Spatial Data: Related to geographic or spatial locations (e.g., species distribution).

1.3 Common Data Analysis Tools and Software

Excel: For basic data organization and simple statistical tests.

GraphPad Prism: Popular in life sciences for graphing and statistical analysis.

R: Open-source software for complex statistical computations and visualizations.

Python: Widely used for data manipulation, analysis, and machine learning applications.

2. Data Collection and Organization
2.1 Designing Biological Experiments

Define a clear research question.

Use controls and replicate experiments to ensure reliability.

2.2 Types of Data: Qualitative vs. Quantitative

Choose the appropriate method to collect data (e.g., surveys for qualitative data, sensors for quantitative data).

2.3 Recording and Organizing Data: Best Practices

Use structured formats such as spreadsheets.

Label rows and columns clearly with variable names and units.

Regularly back up your data to prevent loss.

3. Descriptive Statistics
3.1 Measures of Central Tendency

Mean: Average of data points.

Median: Middle value in sorted data.

Mode: Most frequently occurring value.

3.2 Measures of Dispersion

Range: Difference between highest and lowest values.

Variance: Spread of data points from the mean.

Standard Deviation: Average distance of data points from the mean.

3.3 Data Visualization

Use bar graphs for categorical data.

Use line graphs for trends over time.

Use scatter plots for relationships between two variables.

4. Inferential Statistics
4.1 Hypothesis Testing Basics

Null Hypothesis (H₀): Assumes no effect or relationship.

Alternative Hypothesis (H₁): Assumes a specific effect or relationship.

4.2 P-Values and Statistical Significance

A p-value < 0.05 typically indicates statistically significant results.

4.3 Common Tests in Biology

t-Test: Compares means between two groups.

ANOVA: Tests differences among three or more groups.

Chi-Square Test: Evaluates relationships between categorical variables.

5. Data Cleaning and Preprocessing
5.1 Identifying and Handling Missing Data

Methods: Imputation, ignoring missing values, or re-collecting data.

5.2 Data Normalization and Transformation

Normalize data to make it comparable across different scales.

5.3 Detecting and Managing Outliers

Use visualization tools like box plots to identify outliers.

Decide whether to exclude or include outliers based on biological significance.

6. Data Analysis Methods for Biological Studies
6.1 Regression Analysis

Linear Regression: Predicts a continuous outcome.

Logistic Regression: Predicts a binary outcome.

6.2 Correlation vs. Causation

Correlation indicates association; causation proves a direct effect.

6.3 Multivariate Analysis

PCA (Principal Component Analysis): Reduces data dimensionality.

Cluster Analysis: Groups similar data points.

7. Bioinformatics and Computational Tools
7.1 Introduction to R and Python for Data Analysis

Use R for statistical modeling and visualization.

Use Python for flexible data manipulation and advanced analytics.

7.2 Using Excel for Biological Data

Use pivot tables for summarizing large datasets.

Utilize built-in functions for quick statistical analysis.

7.3 Specialized Software

SPSS: For robust statistical analysis.

GraphPad Prism: User-friendly for life sciences.

8. Interpreting Biological Data
8.1 Drawing Conclusions from Data

Ensure results align with biological theories.

Use statistical significance to support findings.

8.2 Avoiding Misinterpretation

Beware of biases and overgeneralization.

8.3 Ethical Considerations

Do not manipulate or fabricate data.

Properly credit all data sources.

9. Case Studies in Biological Data Analysis
9.1 Example 1: Population Genetics

Analyze allele frequency changes in a population over time.

9.2 Example 2: Biodiversity

Use Shannon Index for assessing species diversity.

9.3 Example 3: Disease Studies

Statistical modeling to identify risk factors for a specific disease.

10. Practical Exercises and Projects

Exercise: Analyze the effect of light on plant growth using ANOVA.

Project: Investigate microbial diversity in water samples using R.

11. Resources for Further Learning

Books:

Biostatistics: A Foundation for Analysis in the Health Sciences.

Practical Statistics for Field Biology.

Courses:

Online tutorials on Coursera and edX.

12. Conclusion
12.1 Recap of Key Concepts

Understand the biological context of data.

Utilize appropriate statistical tools and software.

12.2 Future of Data Analysis in Biology

Integration of machine learning and AI in biological studies.

Example: Effect of Light Intensity on Plant Growth

This example demonstrates how data analysis can be applied in biology to test a hypothesis about light intensity and its impact on plant growth.

Background

You are investigating whether different light intensities affect the growth of bean plants. The hypothesis is:

H₀ (Null Hypothesis): Light intensity has no effect on plant growth.

H₁ (Alternative Hypothesis): Light intensity significantly affects plant growth.

Step 1: Experimental Design

Variables:

Independent Variable: Light intensity (e.g., 50%, 75%, 100% of natural light).

Dependent Variable: Plant height (in centimeters).

Controlled Variables: Soil type, water availability, temperature.

Groups:

Group A: 50% light intensity.

Group B: 75% light intensity.

Group C: 100% light intensity.

Data Collection: Measure plant height for each group over 30 days.

Step 2: Data Collection

Day

Group A (50%)

Group B (75%)

Group C (100%)

10

5 cm

6 cm

7 cm

20

8 cm

11 cm

13 cm

30

10 cm

15 cm

18 cm

Step 3: Data Analysis

Descriptive Statistics:

Calculate the mean height for each group:

Group A (50%): Mean = 5+8+103=7.6735+8+10​=7.67 cm

Group B (75%): Mean = 6+11+153=10.6736+11+15​=10.67 cm

Group C (100%): Mean = 7+13+183=12.6737+13+18​=12.67 cm

Visualization:

Create a bar graph comparing the mean heights of the groups.

Inferential Statistics:

Perform an ANOVA test to determine if the differences in means are statistically significant.

Step 4: Interpretation

If the p-value from the ANOVA test is < 0.05, reject the null hypothesis (H₀).

Example result: p=0.03p=0.03 → Significant difference in plant growth across groups.

Biological interpretation:

Higher light intensity promotes greater plant growth.

Conclusion

This experiment shows how statistical tools like ANOVA can validate hypotheses in biology. The results indicate a direct relationship between light intensity and plant growth, emphasizing the importance of light for photosynthesis.

Would you like a step-by-step guide on how to perform the analysis using specific software like Excel, R, or Python?

Step-by-Step Guide to Perform the Analysis
Using Excel, R, and Python to Analyze Plant Growth Data

1. Using Microsoft Excel
Step 1: Input Data

Open Excel and input your data:

| Day | Group A (50%) | Group B (75%) | Group C (100%) |
|-----|---------------|---------------|----------------|
| 10  | 5             | 6             | 7              |
| 20  | 8             | 11            | 13             |
| 30  | 10            | 15            | 18             |

 

Step 2: Calculate Means

Use the =AVERAGE(range) function:

Example: =AVERAGE(B2:B4) to calculate the mean for Group A.

Step 3: Create a Bar Chart

Highlight the group names and their means.

Go to the Insert tab → Select Bar Chart → Choose your desired chart type.

Step 4: Perform ANOVA

Ensure the Data Analysis ToolPak is enabled (File → Options → Add-ins → Manage: Excel Add-ins).

Go to Data → Data Analysis → Select ANOVA: Single Factor.

Input your data range and choose the output location.

Check the p-value in the ANOVA table:

If p < 0.05, there is a significant difference.

Why R is Commonly Used in Biology

R is a powerful open-source software specifically designed for statistical analysis and visualization. Its widespread use in biological research stems from its flexibility and extensive libraries tailored for analyzing biological data.

Key Features of R for Biology:

Statistical Tests: R can perform t-tests, ANOVA, regression, chi-square tests, and more, which are crucial for biological research.

Bioinformatics: R has specialized packages like Bioconductor for genomic and proteomic data analysis.

Data Visualization: Libraries like ggplot2 make it easy to create publication-quality graphs for biological datasets.

Big Data: R handles large datasets, such as those generated by sequencing or omics studies.

Open Source: R is free, making it accessible to students and researchers globally.

Comparison to Other Software:

Excel: Suitable for basic statistics and visualization but lacks the depth and flexibility for complex biological datasets.

SPSS: Useful for social sciences but less specialized for bioinformatics or high-dimensional data.

MATLAB: Powerful but focuses more on engineering and numerical simulations than biology-specific applications.

 
15 Prerequisite Questions for Learning Data Analysis

What is data, and how is it typically collected in biological studies?

What are the differences between qualitative and quantitative data?

Can you define the terms "population" and "sample" in the context of research?

What are the key characteristics of a good dataset?

What is the importance of variables in data analysis, and what are the main types of variables?

What is the difference between independent and dependent variables?

Why is it important to ensure data accuracy and completeness before analysis?

What are some common methods for handling missing data in a dataset?

How would you define "descriptive statistics," and how is it used in analyzing biological data?

What is the purpose of visualizing data, and what are some common types of data visualizations?

What are central tendency measures, and why are they important?

What is the difference between correlation and causation?

What is hypothesis testing, and why is it a crucial step in data analysis?

What tools or software are commonly used for data analysis in biological research?

Why is it important to understand the assumptions underlying statistical tests before applying them?

15 Prerequisite Questions with Answers for Learning Data Analysis

What is data, and how is it typically collected in biological studies?
Answer: Data is information collected for analysis, often in numerical or categorical forms. In biology, data is typically collected through experiments, observations, surveys, or simulations.

What are the differences between qualitative and quantitative data?
Answer: Qualitative data describes characteristics or categories (e.g., species type, blood type), while quantitative data involves numbers and measurable quantities (e.g., height, weight).

Can you define the terms "population" and "sample" in the context of research?
Answer: A population is the entire group being studied, while a sample is a subset of the population selected for analysis.

What are the key characteristics of a good dataset?
Answer: A good dataset is accurate, complete, consistent, relevant, and free of errors or biases.

What is the importance of variables in data analysis, and what are the main types of variables?
Answer: Variables are measurable elements of data analysis. The main types are independent variables (manipulated) and dependent variables (measured outcomes).

What is the difference between independent and dependent variables?
Answer: Independent variables are controlled or manipulated to observe their effect, while dependent variables are measured to determine the outcome of the experiment.

Why is it important to ensure data accuracy and completeness before analysis?
Answer: Inaccurate or incomplete data can lead to misleading results and incorrect conclusions.

What are some common methods for handling missing data in a dataset?
Answer: Common methods include imputation (filling missing values with estimates), removing incomplete records, or using statistical models to account for missing data.

How would you define "descriptive statistics," and how is it used in analyzing biological data?
Answer: Descriptive statistics summarize and describe the features of a dataset, such as mean, median, and standard deviation. They help identify patterns and trends.

What is the purpose of visualizing data, and what are some common types of data visualizations?
Answer: Data visualization helps interpret and communicate data insights clearly. Common types include bar graphs, scatter plots, histograms, and line charts.

What are central tendency measures, and why are they important?
Answer: Central tendency measures (mean, median, mode) indicate the central point or typical value in a dataset, helping summarize data.

What is the difference between correlation and causation?
Answer: Correlation indicates a relationship between two variables, while causation implies that one variable directly affects the other.

What is hypothesis testing, and why is it a crucial step in data analysis?
Answer: Hypothesis testing evaluates whether data supports a specific hypothesis, helping determine statistical significance.

What tools or software are commonly used for data analysis in biological research?
Answer: Common tools include R, Python, SPSS, Excel, and specialized software like GraphPad Prism and SAS.

Why is it important to understand the assumptions underlying statistical tests before applying them?
Answer: Statistical tests rely on assumptions (e.g., normal distribution, equal variance). Violating these assumptions can lead to inaccurate results.

 

 

15 Multiple-Choice Questions (MCQs) on Data Analysis

What is the primary purpose of data analysis?
A) To collect raw data
B) To interpret and make sense of data
C) To ensure data accuracy
D) To archive data

Which of the following is an example of qualitative data?
A) Plant height in centimeters
B) Number of birds in a habitat
C) Blood type of patients
D) Weight of a sample

What is the role of descriptive statistics in data analysis?
A) To make predictions
B) To summarize and describe data
C) To establish causal relationships
D) To test hypotheses

Which of these is a measure of central tendency?
A) Mean
B) Range
C) Variance
D) Standard deviation

In hypothesis testing, what does the p-value represent?
A) The probability of observing the sample result assuming the null hypothesis is true
B) The likelihood that the null hypothesis is false
C) The total variance in the data
D) The correlation between two variables

Which chart is best for visualizing the relationship between two continuous variables?
A) Pie chart
B) Scatter plot
C) Histogram
D) Bar graph

What type of data does a t-test compare?
A) Two categorical variables
B) Two means from continuous variables
C) Proportions of categorical data
D) Frequencies of occurrences

What does ANOVA test for in data analysis?
A) The correlation between two variables
B) The variance within a single group
C) Differences in means across multiple groups
D) Trends over time

Which of these is a common tool for data visualization?
A) Excel
B) SPSS
C) ggplot2 in R
D) All of the above

Which software is primarily used for statistical analysis in biology?
A) MATLAB
B) AutoCAD
C) R
D) Photoshop

What is the first step in data analysis?
A) Data cleaning
B) Hypothesis testing
C) Data visualization
D) Data collection

What does the term "outlier" refer to in a dataset?
A) The average value
B) A value significantly different from others in the dataset
C) A missing data point
D) The highest value in the dataset

What is the purpose of normalization in data preprocessing?
A) To eliminate outliers
B) To scale data to a standard range
C) To categorize variables
D) To combine datasets

Which of the following is a type of inferential statistics?
A) Mean
B) Median
C) Regression analysis
D) Range

What is a common error in data analysis?
A) Using too many statistical tools
B) Interpreting correlation as causation
C) Cleaning data thoroughly
D) Visualizing data in multiple formats

15 Multiple-Choice Questions (MCQs) on Data Analysis with Answers

What is the primary purpose of data analysis?
Answer: B) To interpret and make sense of data

Which of the following is an example of qualitative data?
Answer: C) Blood type of patients

What is the role of descriptive statistics in data analysis?
Answer: B) To summarize and describe data

Which of these is a measure of central tendency?
Answer: A) Mean

In hypothesis testing, what does the p-value represent?
Answer: A) The probability of observing the sample result assuming the null hypothesis is true

Which chart is best for visualizing the relationship between two continuous variables?
Answer: B) Scatter plot

What type of data does a t-test compare?
Answer: B) Two means from continuous variables

What does ANOVA test for in data analysis?
Answer: C) Differences in means across multiple groups

Which of these is a common tool for data visualization?
Answer: D) All of the above

Which software is primarily used for statistical analysis in biology?
Answer: C) R

What is the first step in data analysis?
Answer: A) Data cleaning

What does the term "outlier" refer to in a dataset?
Answer: B) A value significantly different from others in the dataset

What is the purpose of normalization in data preprocessing?
Answer: B) To scale data to a standard range

Which of the following is a type of inferential statistics?
Answer: C) Regression analysis

What is a common error in data analysis?
Answer: B) Interpreting correlation as causation

 

References

Academic Publications

Field, A. (2013). Discovering Statistics Using IBM SPSS Statistics (4th ed.).

This book is widely used for teaching statistical concepts in biology and offers in-depth guidance on using statistical tools like SPSS and R.

Link: Sage Publications

Kitsantas, A., & Dabbagh, N. (2009). Learning in Web-Enhanced Environments: The Role of Data Analysis in Biology Education. Educational Technology Research and Development, 57(4), 617-635.

This paper discusses the integration of data analysis tools into biology education and the role of technology in improving student engagement and understanding.

DOI: 10.1007/s11423-008-9115-3

Zar, J. H. (2010). Biostatistical Analysis (5th ed.).

This is an excellent resource for understanding advanced statistical methods applied in biological research. It provides real-life examples of statistical tests commonly used in biology.

Publisher: Pearson Education.

McDonald, J. H. (2014). Handbook of Biological Statistics (3rd ed.).

A comprehensive guide that provides examples and step-by-step instructions on performing statistical tests, including t-tests, ANOVA, and regression in biology.

Link: Handbook of Biological Statistics

Pallant, J. (2020). SPSS Survival Manual (7th ed.).

This is a useful book for students learning to use SPSS for data analysis in biological research, offering clear guidance on statistical tests and interpreting outputs.

Link: SPSS Survival Manual

Educational Videos and Resources

CrashCourse Statistics

A YouTube playlist that covers the basics of statistics, including hypothesis testing, probability, and data visualization.

Link: CrashCourse Statistics YouTube Playlist

Khan Academy - Statistics and Probability

A great resource for learning the fundamentals of statistics, with numerous videos explaining concepts like mean, variance, hypothesis testing, and more.

Link: Khan Academy - Statistics and Probability

Data Science and Statistics: R Programming for Biology by Stanford University

A course designed for biologists interested in using R for statistical analysis and data visualization in biological research.

Link: Stanford University - Data Science and Statistics

StatQuest with Josh Starmer

StatQuest offers clear and concise explanations of statistical concepts, including tests like ANOVA, regression, and p-values, making complex topics easy to understand.

Link: StatQuest YouTube Channel

Coursera - Biostatistics in Public Health

An online course that covers biostatistics in the context of public health and biology, including how to conduct statistical analysis on biological data.

Link: Coursera Biostatistics Course

 

Modifié le: mardi 21 janvier 2025, 16:28