[Contents] [TitleIndex] [WordIndex

The Ideal Statistics Module


In this document, we design an hypothetical "ideal" statistics module for Scilab.


The goal of this document is to design an hypothetical "ideal" statistics module for Scilab. First, we analyse the limitations of the current statistics features provided by Scilab, by Stixbox and by other toolboxes. In the second part, we present the ideal statistics module and its features.

The goal of this document is not to provide an analysis of the current features in this field (see Documents and tutorials for Probabilities and Statistics in Scilab on this topic).

Issues with existing tools

Issues with Scilab

Here are the current functions in the statistics section.

Central Tendency:

Measures of Dispersion:

Measures of Shape:

Data with Missing Values:

Descriptive Statistics



Principal Component Analysis

Hypothesis Testing


Distribution functions:

Random number generators:

Scilab provides several probability and statistical features and provides several distribution functions:

We can see the statistics-related bugs in bugzilla at:


In fact, a detailed analysis shows that the existing features would be easily enhanced on the following points.

See the Statistics category in the bug reports for a complete reports of the bugs:


The bottom line is that distfun outperforms Scilab on CDFs, iCDF (quantile) and RNGs functions.

Issues with Stixbox

Here are the functions provided by Stixbox.

There are many issues with Stixbox.

The issues of the Stixbox are reported at:


Issues with regtools

Regtools is a toolbox which is packaged on Atoms:


The regtools module provides the following functions:

A review has been done at:


There are several issues with Regtools.

Issues with CASCI

The CASCI toolbox includes various functions for probability & statistics that are used by P. Castagliola's lab at Université de Nantes.


The toolbox is developped on the Forge:


The CASCI toolbox provides the following functions:

There are several issues with CASCI:

Other tools

During the 2012 International Open Source Software Contest, a statistical toolbox was created:

TODO : review this toolbox

Existing statistical tools outside of Scilab


Matlab has a solid set of statistical functions.

The following page is the entry point for the statistical toolbox:


The following page presents the list of functions for hypothesis tests:



The statistical features of R are huge, so that Scilab will probably never reach that level of specialization. Anyway, this is an excellent reference to look at.


The following page presents the list of distributions in R:



The following modules and toolboxes for octave exists:


The ideal statistics API

Architecture of the modules

Rather than designing a single module, we may rather think of several separated modules, with clear and orthogonal goals. This restricts the work, increases the chances of reuse and limits the dependencies. For, it allows to separate the graphics issues from the computational issues. This is one of the main difficulty with several modules (e.g. Metanet), which has been a strong obstacle to their maintenance over the years.

Here are the modules that we could create.

Designs of experiments : scidoe

The scidoe toolbox was created for this purpose:


The goal of this toolbox is to provide design of experiments techniques, along with functions for model building.

This project is part of the GSOC 2012, managed by Maria Christopoulou.

Here is the list of functions which are available.

Factorial Design

Response Surface Designs


Here is the list of functions which *will* be created at the end of the project.

Latin Hypercube Designs

Factorial Design

Response Surface Designs

Optimal Designs

Supersaturated Designs

Model Building

General Functions

Distribution functions : distfun

The goal of the distribution function toolbox is to provide the following functions:

This section is the goal of the distfun project. This project is developped on the Forge:


and available on Atoms:


This project is part of the GSOC 2012, managed by Prateek Papriwal.

For each distribution x, we provide five functions :

Distributions available :


Random Number Generator

Still, the work is not finished and there are many distributions which are still missing in the distfun module.


In this section, we present functions to manage datasets.

This section is a *DRAFT*.

Datasets distributed alongside R : rdataset

rdataset is a collection of 597 datasets that were originally distributed alongside the statistical software environment "R" and some of its add-on packages.

Datasets which are available in R can be used in Scilab with rdataset. The toolbox needs around 50 MByte. The datasets can be used in order to tests statistical function in scilab and compare the results with the output of R. As the dastasets are included in R, no data have no loaded manually.

This project is developped on the Forge:


For example the dataset survey from the library MASS can be loaded using:

[data,desc] = rdataset_read("MASS","survey");

Statistical visualization : statvis

In this section, we present functions to produce statistical graphics.

This section is a *DRAFT*.

Descriptive statistics

In this section, we present functions to produce descriptive statistics.

This section is a *DRAFT*.

Regression analysis : regmod

Hypothesis testing : hypt

In this section, we present functions which compute tests, confidence intervals and model estimation.

One of the principles of this toolbox is to be compatible with MATLAB, especially the Hypothesis Testing sub-module:


This section is a *DRAFT*.

High Priority List:

Low Priority List:

Excluded The following functions will not be part of the hypt toolbox:

ANOVA module : anova





2022-09-08 09:27