Thanks to visit codestin.com
Credit goes to github.com

Skip to content

StatAnalyzer is a Django-based web application that empowers users to perform powerful statistical analyses directly from their browser.

Notifications You must be signed in to change notification settings

fkaan/StatAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

StatAnalyzer

Python Version
Django Version
License: MIT

StatAnalyzer Screenshot
StatAnalyzer Screenshot
StatAnalyzer Screenshot
StatAnalyzer Pro is a web-based statistical analysis tool that allows users to upload datasets and perform various statistical analyses, including hypothesis testing, regression modeling, visualization, and more. Built with Django and Python, it provides an intuitive interface for data exploration and statistical analysis.


๐Ÿš€ Features

  • Data Upload: Supports CSV, Excel (XLSX), and JSON formats
  • Data Summary: Automatic variable type detection and descriptive statistics
  • Hypothesis Testing:
    • Independent T-Test
    • One-Way ANOVA
    • Chi-Square Test
    • Mann-Whitney U Test
  • Regression Analysis:
    • Linear Regression with VIF diagnostics
    • Logistic Regression with performance metrics
  • Visualizations:
    • Histograms
    • Box Plots
    • Scatter Plots
    • Correlation Matrices
  • ANCOVA: Analysis of Covariance
  • AI Insights: Automated interpretation of results
  • Report Generation: Download PDF reports of your analyses

๐Ÿ“ฆ Installation

Prerequisites

  • Python 3.8+
  • pip
  • virtualenv (recommended)

Setup

  1. Clone the repository:

    git clone https://github.com/fkaan/Statistics-Calculator.git
    cd stat-analyzer
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Linux/macOS
    # On Windows:
    # venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Apply migrations:

    python manage.py migrate
  5. Create a superuser (optional):

    python manage.py createsuperuser
  6. Run the development server:

    python manage.py runserver
  7. Open in your browser:

    http://localhost:8000
    

๐Ÿงช Usage

Upload Your Data

  • Navigate to the home page
  • Upload your dataset file or paste CSV data
  • Click "Analyze Now"

Explore Data Summary

  • View variable types and descriptive statistics
  • Examine data preview

Perform Analyses

  • Use the tabs to navigate between different analysis types
  • Select variables and parameters for each test
  • Click "Run Analysis" to see results

Generate Reports

  • After any analysis, click "Download Report" to get a PDF
  • Use "Generate AI Insights" for automated interpretation

Start Over

  • Click "Upload New Data" to analyze a different dataset

โš™๏ธ Technical Stack

  • Backend: Django (Python)
  • Frontend: Bootstrap 4, jQuery
  • Data Analysis: Pandas, NumPy, SciPy, Statsmodels, scikit-learn
  • Visualization: Plotly
  • PDF Generation: ReportLab
  • AI Integration: OpenAI API (optional)

๐Ÿ“ Project Structure

stat-analyzer/
โ”œโ”€โ”€ analyzer/               # Main Django app
โ”‚   โ”œโ”€โ”€ migrations/         # Database migrations
โ”‚   โ”œโ”€โ”€ static/             # Static files (CSS, JS, images)
โ”‚   โ”œโ”€โ”€ templates/          # HTML templates
โ”‚   โ”œโ”€โ”€ utils/              # Utility functions
โ”‚   โ”œโ”€โ”€ admin.py            # Admin configuration
โ”‚   โ”œโ”€โ”€ apps.py             # App configuration
โ”‚   โ”œโ”€โ”€ forms.py            # Form definitions
โ”‚   โ”œโ”€โ”€ models.py           # Database models
โ”‚   โ”œโ”€โ”€ urls.py             # URL routing
โ”‚   โ””โ”€โ”€ views.py            # View functions
โ”œโ”€โ”€ stat_analyzer/          # Project configuration
โ”‚   โ”œโ”€โ”€ settings.py         # Django settings
โ”‚   โ”œโ”€โ”€ urls.py             # Main URL routing
โ”‚   โ””โ”€โ”€ wsgi.py             # WSGI configuration
โ”œโ”€โ”€ requirements.txt        # Python dependencies
โ””โ”€โ”€ manage.py               # Django management script

๐Ÿ” Configuration

Create a .env file in your project root with the following variables (if needed):

DEBUG=True
SECRET_KEY=your-secret-key-here
OPENAI_API_KEY=your-api-key-if-using-ai  # Optional

๐Ÿค Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch:
    git checkout -b feature-branch
  3. Make your changes and commit:
    git commit -am 'Add new feature'
  4. Push to the branch:
    git push origin feature-branch
  5. Create a new Pull Request

๐Ÿ“„ License

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


๐Ÿ”ฎ Future Improvements

  • Add time series analysis capabilities
  • Implement user accounts to save analysis history
  • Add more visualization options
  • Support for larger datasets with pagination
  • Dockerize the application for easier deployment

๐Ÿ“Œ Recommended Badges (Already Included)

[![Python Version](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/)
[![Django Version](https://img.shields.io/badge/django-3.2+-green.svg)](https://www.djangoproject.com/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

You can add these right under the title as already shown.


Built with โค๏ธ for data scientists, researchers, and students.

About

StatAnalyzer is a Django-based web application that empowers users to perform powerful statistical analyses directly from their browser.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published