Skip to content

A coursework project for my Statistical Techniques with R module. The aim is to identify channleges in data analytics and select appropriate solutions, demonstrate an understanding of core mthods and algorithms used in data analytics, manipulate data to provide analytics insights, critically evaluate and employ appropriate tools to provide answers.

License

Arslan2003/Statistical_Hypothesis_Testing_in_R

Repository files navigation

Hypothesis_Testing_in_R_-_Banner

Statistical Hypothesis Testing in R on Simulated Data

Exploring Data Generation, Visualisation, and Statistical Testing in R.


📖 Overview

This project demonstrates how to perform statistical hypothesis testing and distribution fitting in R using simulated experimental datasets.
It focuses on:

  • Generating synthetic datasets for two populations (mice and rats) with treatment effects.
  • Visualising data distributions using density plots and boxplots.
  • Checking normality assumptions with QQ plots and Shapiro-Wilk tests.
  • Performing paired t-tests and non-parametric tests to evaluate treatment effects.
  • Fitting and comparing multiple statistical distributions (Weibull, Lognormal, Gamma) to data.

The project serves as a hands-on example for researchers, students, or data enthusiasts interested in understanding statistical testing workflows in R.


📊 Results

Density Plots
Compare the "before" and "after" treatment distributions for mice and rats

Density Plot Mice Density Plot Rats

Boxplots
Visual summary of weight changes due to treatment

Boxplot Mice Boxplot Rats

Distribution Fitting
Comparison of fitted Weibull, Lognormal, and Gamma distributions for rats

Distribution Fitting


⚙️ Installation & Usage

  1. Ensure you have R installed (version 4.0+ recommended) and install the required packages:
install.packages(c("tidyverse", "fitdistrplus", "ggplot2"))
  1. Clone this repository:
git clone https://github.com/YOUR_USERNAME/statistical-hypothesis-r.git
cd statistical-hypothesis-r
  1. Run the R script:
source("statistical_hypothesis_testing.R")
  1. Experiment!

🤝 Contribution

Contributions, suggestions, and improvements are welcome! Feel free to open an issue or submit a pull request.


🧑‍💻 Author

Arslonbek Ishanov - First-Class Data Science Graduate & AI/ML Enthusiast.


⚖️ License

This project is licensed under the MIT License - see the LICENSE file for details.


🔗 Learn More

Read the detailed report explaining the underlying theory, methodology, and results here.

About

A coursework project for my Statistical Techniques with R module. The aim is to identify channleges in data analytics and select appropriate solutions, demonstrate an understanding of core mthods and algorithms used in data analytics, manipulate data to provide analytics insights, critically evaluate and employ appropriate tools to provide answers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages