Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
157 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Documenter | ||
using MultivariateTests | ||
|
||
makedocs(modules=[MultivariateTests], | ||
clean=false, | ||
format=:html, | ||
sitename="MultivariateTests.jl", | ||
authors="Alex Arslan and other contributors", | ||
pages=Any["Home" => "index.md", | ||
"Measures of Dispersion" => "dispersion.md", | ||
"Partial Correlation" => "partialcor.md", | ||
"Equality of Mean Vectors" => "hotelling.md", | ||
"Equality of Covariance Matrices" => "covariance.md"]) | ||
|
||
deploydocs(repo="github.com/ararslan/MultivariateTests.jl.git", | ||
target="build", | ||
deps=nothing, | ||
make=nothing, | ||
julia="0.6") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Bartlett's test | ||
|
||
Bartlett's test for equality of two variance-covariance matrices is provided. | ||
This is equivalent to Box's ``M``-test for two groups. | ||
|
||
## API | ||
|
||
```@docs | ||
MultivariateTests.BartlettsTest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Measures of dispersion | ||
|
||
Two summary statistics are provided, both of which are generalizations of the sample | ||
variance to multivariate data. | ||
|
||
The first is the *generalized variance* of Wilks (1960), which provides a scalar | ||
measure of multidimensional scatter. | ||
For a random vector ``X``, the generalized variance is defined as the determinant of the | ||
sample variance-covariance matrix of ``X``, i.e. ``|\text{Cov}(X)|``. | ||
Note that this can be 0 if there is linear dependence among the columns of ``X``. | ||
|
||
The second is the *total variance*. | ||
For a random vector ``X``, the total variance is the matrix trace of the sample | ||
variance-covariance matrix of ``X``, i.e. the sum of the sample variances of the columns | ||
of ``X``. | ||
This can only be 0 if there is only a single observation. | ||
|
||
When ``X`` has only one column, both of these measures are equivalent to the sample | ||
variance of the column. | ||
|
||
## API | ||
|
||
```@docs | ||
MultivariateTests.genvar | ||
MultivariateTests.totalvar | ||
``` | ||
|
||
## References | ||
|
||
Wilks, S.S. (1960). "Multidimensional Statistical Scatter." In *Contributions to | ||
Probability and Statistics*, I. Olkin et al., ed. Stanford University Press, Stanford, | ||
CA, pp. 486-503. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Hotelling's ``T^2`` test | ||
|
||
The HypothesisTests framework is extended here to include Hotelling's ``T^2`` test for | ||
one and two samples. | ||
|
||
## API | ||
|
||
```@docs | ||
MultivariateTests.OneSampleHotellingT2 | ||
MultivariateTests.EqualCovHotellingT2 | ||
MultivariateTests.UnequalCovHotellingT2 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# MultivariateTests.jl | ||
|
||
MultivariateTests is a Julia package that extends the framework provided by the | ||
[HypothesisTests](https://github.com/JuliaStats/HypothesisTests.jl) to include | ||
functionality for multivariate statistics. | ||
|
||
## Functionality | ||
|
||
```@contents | ||
Pages = [ | ||
"dispersion.md", | ||
"partialcor.md", | ||
"hotelling.md", | ||
"covariance.md", | ||
] | ||
Depth = 1 | ||
``` | ||
|
||
## Acknowledgements | ||
|
||
Initial work on this package by Alex Arslan was part of a research project for | ||
the master's program in applied statistics at Penn State University. | ||
Alex thanks Andreas Noack, Jiahao Chen, Moritz Schauer, and Simon Byrne for | ||
initial feedback and discussion in the early stages of development. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Partial correlation | ||
|
||
This package provides a function for computing the partial correlation directly and | ||
another for testing the hypothesis of zero partial correlation using the HypothesisTests | ||
framework. | ||
|
||
Partial correlation is a generalization of correlation to conditional distributions; | ||
it's akin to Pearson's correlation, substituting conditional variances and covariances in | ||
the computation. | ||
It can be thought of as the correlation between two random variables for the subpopulation | ||
defined by the conditional variable(s). | ||
|
||
## API | ||
|
||
```@docs | ||
MultivariateTests.partialcor | ||
MultivariateTests.PartialCorTest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters