Built with datascienceportfol.io

Proportional Species Richness Analysis

Project photo

Project links

Skills

About this project

Proportional Species Richness Analysis

Institution: University of Essex (MSc Coursework Project)
Tools & Technologies: R, dplyr, tidyr, ggplot2, corrplot, moments, lmtest, epiR, pROC


Project Overview

This project investigates biodiversity patterns by analyzing proportional species richness across five key taxonomic groups: butterflies, hoverflies, ladybirds, grasshoppers & crickets, and vascular plants. The analysis focused on ecological survey data collected over two time periods — 1970–1990 (Y70) and 2000–2013 (Y00) — to evaluate long-term biodiversity changes and their implications for ecosystem health.

Using R, I performed data preparation, exploratory data analysis (EDA), hypothesis testing, regression modeling, and validation techniques to uncover biodiversity trends, quantify ecological decline, and identify which species groups serve as the strongest indicators of ecosystem stability.


Key Responsibilities

Data Preparation & Cleaning

  • Imported ecological survey datasets and merged multiple taxonomic group observations.

  • Removed missing values and standardized variable formats.

  • Converted categorical variables such as dominant land class and time period into factors for modeling.

  • Constructed a new biodiversity index (BD5) by averaging proportional richness values from five taxonomic groups.

Exploratory Data Analysis

  • Generated descriptive statistics (mean, median, quantiles, Winsorized mean).

  • Analyzed variance, skewness, and correlations among taxonomic groups.

  • Visualized biodiversity patterns using histograms, boxplots, correlation matrices, and ROC curves.

Hypothesis Testing

  • Kolmogorov-Smirnov test to compare ecological distributions between groups.

  • One-sample t-tests to assess biodiversity changes between Y70 and Y00.

  • Chi-square tests on contingency tables to examine independence of biodiversity outcomes.

  • Calculated Odds Ratio, Sensitivity, Specificity, and Youden’s Index to measure biodiversity prediction accuracy.

Regression Modeling & Validation

  • Simple regression: Modeled bird richness as a function of BD5 biodiversity index.

  • Multiple regression: Used five taxonomic predictors to explain ecological health.

  • Interaction models: Tested combined effects of groups to improve model fit.

  • Applied AIC, residual diagnostics, and R² for evaluation.

  • Used train/test split (Y70 as training, Y00 as testing) to validate predictive performance.


Key Results

  • Found significant biodiversity decline between 1970–1990 and 2000–2013.

  • Identified ladybirds, hoverflies, and butterflies as the strongest predictors of ecological health.

  • Demonstrated that interaction terms in regression models improved predictive accuracy.

  • ROC analysis confirmed robust classification ability, with high sensitivity and specificity.


Challenges Addressed

  • Handling a large ecological dataset with mixed categorical and numeric features.

  • Avoiding overfitting while maintaining model interpretability.

  • Managing correlations and interactions between taxonomic groups.

  • Extracting actionable insights from statistical outputs.


Future Scope

  • Incorporate spatial analysis (GIS mapping) to visualize biodiversity shifts geographically.

  • Extend modeling to time-series ecological forecasting.

  • Experiment with machine learning methods (Random Forest, Gradient Boosting) for enhanced predictive power.

  • Use model interpretability tools (SHAP, LIME) to support ecological decision-making.


Skills Demonstrated

R, Data Cleaning, Data Transformation, Exploratory Data Analysis, Data Visualization, Summary Statistics, Correlation Analysis, Hypothesis Testing (KS-test, t-test, Chi-square), Regression Modeling (Simple, Multiple, Interaction), Model Evaluation (AIC, Residual Analysis, Train/Test Split), ROC Curve Analysis, Biodiversity Analysis, Ecological Data Analysis