# \#hypothesis-tests

**URL:** https://discourse.julialang.org/tag/hypothesis-tests/404.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Pearson correlation p-value](https://discourse.julialang.org/t/pearson-correlation-p-value/135645)

<div class="topic-metadata">

**Author:** [@mahmah](https://discourse.julialang.org/u/mahmah)\
**Replies:** 5\
**Last updated:** [February 14, 2026, 6:46pm UTC](https://discourse.julialang.org/t/pearson-correlation-p-value/135645 "2026-02-14T18:46:34Z")

</div>

Hi! I see that HypothesisTests.CorrelationTest makes a test for nonzero correlation. It prints the results of the test, including the two-sided p-value. How can I access that p-value? The output only has the fields k, n,…

---

## [Kolmogorov-Smirnov test](https://discourse.julialang.org/t/kolmogorov-smirnov-test/89990)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 23\
**Last updated:** [October 22, 2025, 6:46pm UTC](https://discourse.julialang.org/t/kolmogorov-smirnov-test/89990 "2025-10-22T18:46:20Z")

</div>

I have a sample consisting of a set of integers and want to test if can be from a specific distribution. I am not that strong in statistics, but my understanding is that the Kolmogorov-Smirnov test is a good choice for a…

---

## [Pvalue for Spearman Correlation in julia](https://discourse.julialang.org/t/pvalue-for-spearman-correlation-in-julia/125824)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [February 13, 2025, 2:02pm UTC](https://discourse.julialang.org/t/pvalue-for-spearman-correlation-in-julia/125824 "2025-02-13T14:02:12Z")

</div>

How to find correlation pvalue in case of spearman method? For Pearson, it’s straightforward with function CorrelationTest() but I couldn’t find something similar for spearman.

---

## [How do I extract more than a pvalue HypothesisTests.jl?](https://discourse.julialang.org/t/how-do-i-extract-more-than-a-pvalue-hypothesistests-jl/120703)

<div class="topic-metadata">

**Author:** [@Rosejoycrocker](https://discourse.julialang.org/u/Rosejoycrocker)\
**Replies:** 1\
**Last updated:** [September 30, 2024, 7:50am UTC](https://discourse.julialang.org/t/how-do-i-extract-more-than-a-pvalue-hypothesistests-jl/120703 "2024-09-30T07:50:29Z")

</div>

Hi, I’m using HypothesisTests.jl to do a series of 2 Sample Kolmogorov Smirnov tests. This means I’m looping through a large series of data sets and applying the test KS\_object = ApproximateTwoSampleKSTest(data\_set1, da…

---

## [\[ANN\] PermutationTests.jl, a package for multiple hypothesis testing](https://discourse.julialang.org/t/ann-permutationtests-jl-a-package-for-multiple-hypothesis-testing/116862)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 5\
**Last updated:** [July 15, 2024, 9:21pm UTC](https://discourse.julialang.org/t/ann-permutationtests-jl-a-package-for-multiple-hypothesis-testing/116862 "2024-07-15T21:21:50Z")

</div>

Hello, i am glad to annonce PermutationTests.jl, a fast, comprehensive and well-documented package for univariate and multiple comparisons hypothesis tests by data permutation. In practice, this is useful when your data…

---

## [Classical Hypothesis tests: Wald, LR, LM](https://discourse.julialang.org/t/classical-hypothesis-tests-wald-lr-lm/39575)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 10\
**Last updated:** [May 4, 2024, 6:34pm UTC](https://discourse.julialang.org/t/classical-hypothesis-tests-wald-lr-lm/39575 "2024-05-04T18:34:35Z")

</div>

I was able to code up the LR & Wald tests. I need help w/ the score test. Does anyone know how to obtain the loglik functions after glm? using DataFrames, GLM, Distributions n=7; k=1; X=randn(n,k); β=\[2 ;-4\]; σ\_e = 10…

---

## [What are the t-tests in the GLM.jl's models?](https://discourse.julialang.org/t/what-are-the-t-tests-in-the-glm-jls-models/103261)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 7\
**Last updated:** [August 28, 2023, 7:38pm UTC](https://discourse.julialang.org/t/what-are-the-t-tests-in-the-glm-jls-models/103261 "2023-08-28T19:38:53Z")

</div>

Hi all, I’m not sure about the meaning of the pretty prints of GLM.jl’s models: julia\> model StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPiv…

---

## [Mann-Whitney U Test vs. simple Bayesian inference](https://discourse.julialang.org/t/mann-whitney-u-test-vs-simple-bayesian-inference/99676)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 2\
**Last updated:** [August 16, 2023, 2:02pm UTC](https://discourse.julialang.org/t/mann-whitney-u-test-vs-simple-bayesian-inference/99676 "2023-08-16T14:02:31Z")

</div>

I’m looking at the Mann-Whitney U test from HypothesisTests.jl, and it is described as follows: Perform a Mann-Whitney U test of the null hypothesis that the probability that an observation drawn from the same populati…

---

## [How to compute/calculate a Confidence Interval (CI)?](https://discourse.julialang.org/t/how-to-compute-calculate-a-confidence-interval-ci/74794)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 4\
**Last updated:** [May 16, 2023, 10:54am UTC](https://discourse.julialang.org/t/how-to-compute-calculate-a-confidence-interval-ci/74794 "2023-05-16T10:54:59Z")

</div>

How can I calculate a confidence interval for a given distribution?

---

## [Meaning of \`GLM.lm\` results (\`t\` and \`Pr(\>|t|)\`)](https://discourse.julialang.org/t/meaning-of-glm-lm-results-t-and-pr-t/88042)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 9\
**Last updated:** [October 1, 2022, 4:30pm UTC](https://discourse.julialang.org/t/meaning-of-glm-lm-results-t-and-pr-t/88042 "2022-10-01T16:30:52Z")

</div>

Hi all! This is a very noobish question, I was uncertain if I should put it in “New to Julia” section, so sorry about it. Anyway, when I fit a linear model using the GLM package, like this: using DataFrames using CSV …

---

## [How to do a OneSampleZTest for the proportion instead of the mean?](https://discourse.julialang.org/t/how-to-do-a-onesampleztest-for-the-proportion-instead-of-the-mean/85779)

<div class="topic-metadata">

**Author:** [@floxo115](https://discourse.julialang.org/u/floxo115)\
**Replies:** 1\
**Last updated:** [August 22, 2022, 10:40am UTC](https://discourse.julialang.org/t/how-to-do-a-onesampleztest-for-the-proportion-instead-of-the-mean/85779 "2022-08-22T10:40:10Z")

</div>

I am playing around with the HypothesisTests package and wanted to do a OneSampleZTest but with the population proportion instead of the populatin mean as the parameter of interest. But I really don’t find anyting in the…

---

## [Anderson-Darling test pvalue](https://discourse.julialang.org/t/anderson-darling-test-pvalue/76929)

<div class="topic-metadata">

**Author:** [@as4831](https://discourse.julialang.org/u/as4831)\
**Replies:** 5\
**Last updated:** [February 23, 2022, 10:37pm UTC](https://discourse.julialang.org/t/anderson-darling-test-pvalue/76929 "2022-02-23T22:37:12Z")

</div>

Hi everyone, I’m using an Anderson-Darling test to check for normality and am unsure about the results. I am expecting to reject at the .01 level with a p-value around .008. The pvalue() call on the OneSampleADTest retur…

---

## [\[Question\] Python  \`scipy.stats\`  alternative for Julia](https://discourse.julialang.org/t/question-python-scipy-stats-alternative-for-julia/45083)

<div class="topic-metadata">

**Author:** [@rakesh4real](https://discourse.julialang.org/u/rakesh4real)\
**Replies:** 2\
**Last updated:** [August 17, 2020, 8:07am UTC](https://discourse.julialang.org/t/question-python-scipy-stats-alternative-for-julia/45083 "2020-08-17T08:07:03Z")

</div>

Hi, Can I know if there is any Python scipy.stats alternative for Julia. If yes, can anyone please share the link. If not available, is there some similar project where I can get built-in implementations of different …

---

## [ChisqTest parameter theta0 not recognized](https://discourse.julialang.org/t/chisqtest-parameter-theta0-not-recognized/40348)

<div class="topic-metadata">

**Author:** [@leclere](https://discourse.julialang.org/u/leclere)\
**Replies:** 2\
**Last updated:** [May 29, 2020, 9:47am UTC](https://discourse.julialang.org/t/chisqtest-parameter-theta0-not-recognized/40348 "2020-05-29T09:47:42Z")

</div>

I am trying to use the ChisqTest function to check adequation between my empirical repartition and a theoretical probability distribution. Unfortunately it seems that parameter theta0 is not recognized. MWE: ChisqTest(…
