A comprehensive command-line statistics learning and analysis tool with step-by-step explanations
Transform your terminal into a comprehensive statistics education platform! This toolkit provides step-by-step explanations for statistical concepts, making it perfect for students, educators, and anyone who wants to understand the "why" behind statistical calculations.
- π Descriptive Statistics: Mean, median, mode, variance, standard deviation, five-number summary, outlier detection
- π§ͺ Hypothesis Testing: One-sample and two-sample t-tests with complete explanations
- π Data Visualization: Histograms, box plots, scatter plots with statistical overlays
- πΎ Data Management: CSV import/export, save/load datasets
- π Educational Focus: Every calculation shows mathematical steps and reasoning
- π₯οΈ Interactive CLI: User-friendly menu-driven interface
# Clone the repository
git clone https://github.com/connorodea/statistics-toolkit-cli.git
cd statistics-toolkit-cli
# Install dependencies
pip install -r requirements.txt
# Run the toolkit
python stats_cli.pycurl -sSL https://raw.githubusercontent.com/connorodea/statistics-toolkit-cli/main/setup_stats_toolkit.sh | bashpython stats_cli.pypython stats_cli.py --demoEnter values: 85 92 78 88 95 82 79 91 87 84
=== MEASURES OF CENTER ===
Sample size: n = 10
MEAN CALCULATION:
xΜ = Ξ£x/n = 861/10 = 86.1000
MEDIAN CALCULATION:
Sorted data: [78 79 82 84 85 87 88 91 92 95]
n is even: median = (85 + 87)/2 = 86.0000
This toolkit is designed for learning statistics, not just computing answers. Every calculation shows:
- π The formula being used
- π’ Step-by-step substitution of values
- π Intermediate calculations
- π‘ Interpretation of results
- β Assumption checking
statistics-toolkit-cli/
βββ stats_cli.py # Main application
βββ requirements.txt # Python dependencies
βββ setup.py # Package installation
βββ Makefile # Development commands
βββ examples/
β βββ data/ # Sample CSV datasets
β βββ create_sample_data.py # Generate sample data
βββ tests/
β βββ test_basic.py # Unit tests
βββ docs/ # Documentation
# Clone and setup
git clone https://github.com/connorodea/statistics-toolkit-cli.git
cd statistics-toolkit-cli
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Install as editable package
pip install -e .make run # Run the CLI tool
make demo # Run sample data demo
make test # Run tests
make sample-data # Generate sample datasets
make clean # Clean build artifacts
make help # Show all commandspython -m pytest tests/ -v
# or
make testThe toolkit includes sample datasets for practice:
test_scores.csv- Student academic performance datasales_data.csv- Business sales and advertising datastudy_vs_scores.csv- Study time vs exam performance
Generate fresh sample data:
make sample-dataContributions are welcome! Here's how to get started:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes
- Add tests for new functionality
- Run tests:
make test - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- Follow PEP 8 style guidelines
- Add docstrings to new functions
- Include tests for new features
- Update README if adding major features
- Maintain the educational focus of explanations
- Bug Reports: Create an issue
- Feature Requests: Create an issue
- Questions: Start a discussion
Originally inspired by TI-84 calculator programs, this toolkit brings the same step-by-step educational approach to modern Python development, making statistics accessible and understandable for everyone.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built for statistics education and learning
- Inspired by the need for transparent statistical calculations
- Designed to complement traditional statistics textbooks and courses
Made with β€οΈ for statistics education