PHPackages                             mathematicator-core/statistic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mathematicator-core/statistic

ActiveLibrary

mathematicator-core/statistic
=============================

PHP Statistic Algorithms

v3.0.1(5y ago)22.9k[4 PRs](https://github.com/mathematicator-core/statistic/pulls)2PHPPHP ^8.0

Since Jul 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mathematicator-core/statistic)[ Packagist](https://packagist.org/packages/mathematicator-core/statistic)[ Docs](https://github.com/mathematicator-core/statistic)[ RSS](/packages/mathematicator-core-statistic/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (9)Dependencies (10)Versions (15)Used By (2)

 PHP Statistic Algorithms
==========================

[](#----php-statistic-algorithms)

 [ ![](https://avatars3.githubusercontent.com/u/44620375?s=100&v=4) ](https://mathematicator.com)

[![Integrity check](https://github.com/mathematicator-core/statistic/workflows/Integrity%20check/badge.svg)](https://github.com/mathematicator-core/statistic/actions?query=workflow%3A%22Integrity+check%22)[![codecov](https://camo.githubusercontent.com/551dfdb419e9d2cc9adb336b9ddfc45da5d201bbe512366a558c7e9fc2e367a4/68747470733a2f2f636f6465636f762e696f2f67682f6d617468656d6174696361746f722d636f72652f7374617469737469632f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/mathematicator-core/statistic)[![Latest Stable Version](https://camo.githubusercontent.com/148f91aed899f9c039666b968548f23d7a6e68f2cace1d9ccea4a6449d0611bd/68747470733a2f2f706f7365722e707567782e6f72672f6d617468656d6174696361746f722d636f72652f7374617469737469632f762f737461626c65)](https://packagist.org/packages/mathematicator-core/statistic)[![Latest Unstable Version](https://camo.githubusercontent.com/2fbc3c0ab34950ca1b1b55d63dc0fb2ffa12f2deb71dd3e5db7043983426790f/68747470733a2f2f706f7365722e707567782e6f72672f6d617468656d6174696361746f722d636f72652f7374617469737469632f762f756e737461626c65)](https://packagist.org/packages/mathematicator-core/statistic)[![License: MIT](https://camo.githubusercontent.com/1a2e0606685ce00663bf829868f794fd3fc9c86f8d80cae324734129e0723a58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e737667)](./LICENSE)[![PHPStan Enabled](https://camo.githubusercontent.com/9142f3d2ec7588a75127608ff41f595540402524559c6f50feb756df4b8cf6c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642532304c382d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)

> Please help improve this documentation by sending a Pull request.

Installation
------------

[](#installation)

```
composer require mathematicator-core/statistic

```

Mathematicator Framework tools structure
----------------------------------------

[](#mathematicator-framework-tools-structure)

The biggest advantage is that you can choose which layer best fits your needs and start build on the top of it, immediately, without the need to create everything by yourself. Our tools are tested for bugs and tuned for performance, so you can save a significant amount of your time, money, and effort.

Framework tend to be modular as much as possible, so you should be able to create an extension on each layer and its sublayers.

**Mathematicator framework layers** ordered from the most concrete one to the most abstract one:

    **[ Search ](https://github.com/mathematicator-core/search)**    Modular search engine layer that calls its sublayers and creates user interface.      **[ Vizualizator ](https://github.com/mathematicator-core/vizualizator)**    Elegant graphic visualizer that can render to SVG, PNG, JPG and Base64.
 Extensions:  **[ Mandelbrot set generator ](https://github.com/mathematicator-core/mandelbrot-set)**       **[ Calculator ](https://github.com/mathematicator-core/calculator)**    Modular advance calculations layer.
 Extensions:  **[ Integral Solver ](https://github.com/mathematicator-core/integral-solver), [ Statistics ](https://github.com/mathematicator-core/statistic)**       **[ Engine ](https://github.com/mathematicator-core/engine)**    Core logic layer that maintains basic controllers, DAOs, translator, common exceptions, routing etc.      **[ Tokenizer ](https://github.com/mathematicator-core/tokenizer)**    Tokenizer that can convert string (user input / LaTeX) to numbers and operators.      **[ Numbers ](https://github.com/mathematicator-core/numbers)**    Fast &amp; secure storage for numbers with arbitrary precision. It supports Human string and LaTeX output and basic conversions.  **Third-party packages:**

⚠️ Not guaranteed!

    **[ REST API ](https://github.com/cothema/math-php-api)**    Install the whole pack as a REST API service on your server (Docker ready) or access it via public cloud REST API.  Contribution
------------

[](#contribution)

### Tests

[](#tests)

All new contributions should have its unit tests in `/tests` directory.

Before you send a PR, please, check all tests pass.

This package uses [Nette Tester](https://tester.nette.org/). You can run tests via command:

```
composer test
```

For benchmarking, we use [phpbench](https://github.com/phpbench/phpbench). You can run benchmarks this way:

```
composer global require phpbench/phpbench @dev # only the first time
phpbench run
```

Before PR, please run complete code check via command:

```
composer cs:install # only first time
composer fix # otherwise pre-commit hook can fail
```

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 79.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~70 days

Recently: every ~82 days

Total

9

Last Release

1918d ago

Major Versions

v1.0.4 → v2.0.02020-04-14

v2.0.1 → v3.0.02021-02-10

PHP version history (3 changes)v1.0.0PHP &gt;=7.1.0

v2.0.1PHP &gt;=7.2

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (27 commits)")[![flokixdev](https://avatars.githubusercontent.com/u/2387790?v=4)](https://github.com/flokixdev "flokixdev (5 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mathematicator-core-statistic/health.svg)

```
[![Health](https://phpackages.com/badges/mathematicator-core-statistic/health.svg)](https://phpackages.com/packages/mathematicator-core-statistic)
```

###  Alternatives

[baraja-core/cms

Simple smart CMS for Nette and Vue.js.

1667.6k3](/packages/baraja-core-cms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
