---
id: "p_value"
kind: "datatype"
status: "draft"
is_pii: false
name: "p-value of a statistical test"
regexp: "^(?:0?[.,]\\d+|[01]|1[.,]0+|\\d(?:[.,]\\d+)?[eE]-\\d{1,3})$"
categories: ["science", "values"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/p_value"
---

# p-value of a statistical test (`p_value`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Probability, under the null hypothesis of a statistical test, of a result at least as extreme as the one observed: a number from 0 to 1, written as a decimal (0.023), without the leading zero (.05) or in scientific notation when it is very small (3.2e-08). Tables of results have one for every test: differential expression of genes, regression coefficients, comparisons of groups; the fields are named p-value, pvalue, p.value, pval or P, and values adjusted for multiple testing padj, FDR or q-value. A program may print a p-value too small to represent as 0. A number alone does not tell a p-value from another share or probability: the field name does.

- Parent datatype: [`numeric`](https://registry.apicrafter.io/datatype/numeric.md)
- Personal data (PII): no
- Categories: Scientific (science), All measurable values (percentage, amount and e.t.c) (values)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:0?[.,]\d+|[01]|1[.,]0+|\d(?:[.,]\d+)?[eE]-\d{1,3})$
```

## Examples

- `0.023`
- `0.96`
- `3.2e-08` — Scientific notation
- `1`
- `.05` — Without the leading zero, as SPSS and Stata print it
- `1.5` (invalid example) — Above one

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `pvaluebyname` (field, `common/science.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- es: Valor p de una prueba estadística
- ru: P-значение статистического теста

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/P-value>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/p_value.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/science/p_value.yaml>
