Univariate
Univariate means involving a single variable. A variable is a feature that can be observed or measured and can take different values, such as height or age.[1][2] Data with two variables are called bivariate, and data with more variables are called multivariate.
The term is used in Statistics and mathematics, with a few common senses:
- A univariate data set records one measured quantity, such as the heights of the students in a class.
- A univariate function depends on one input, such as . A function is a rule that gives an output for each input.
- In probability, Merriam-Webster defines univariate as involving only one random variable, which is a quantity whose value depends on chance.[3]
What counts as one variable
In a study, a variable is any feature that can be observed or measured on the person or thing being studied, such as age or blood pressure.[1] Univariate work looks at one such feature at a time.
Univariate analysis is any statistical method that looks at a single variable, rather than at the relationship between two or more variables.[4] Relationships between two variables are the topic of bivariate analysis, and relationships among many are the topic of multivariate statistics.
| Term | Number of variables | Example data set |
|---|---|---|
| Univariate | One | Height of each student |
| Bivariate | Two | Height and weight of each student |
| Multivariate | Several | Height, weight, age, and blood pressure of each student |
The figure below draws one variable as a Histogram and two variables as a scatter plot. A scatter plot is a graph that shows each observation as a point, placed by its value of one variable on the horizontal axis and its value of the other on the vertical axis.[5]
Univariate statistics
Univariate statistics describe how the values of one variable are spread out. The full treatment is on the page univariate statistics.
Describing one variable
Univariate description shows how one variable's values are spread in one sample, the group of observations being studied.[1] In clinical research, this description is the first step of every study.[1]
A common starting point is the frequency distribution. It counts how often each value or class of values occurs in the sample.[1]
A continuous variable can take any value within a range. Its values should first be grouped into classes before they are counted.[1]
The Median is the value that splits the data in half, with half the values below it and half above.[6] A Percentile is the value at or below which a given percentage of the data falls.[6] The quartiles split the ordered data into four equal parts, so the lower and upper quartiles mark the 25th and 75th percentiles.[6]
Graphs can show the distribution instead of tables:[1]
- Pie charts suit nominal data (categories with no order).
- Bar charts suit ordered categories and discrete data, whose values are separate and countable, such as the number of children in a family.
- A histogram is used for continuous data.
- A box plot shows the median, the quartiles, and extreme values.
Summary numbers
The right summary numbers depend on the shape of the distribution.[1]
A skewed distribution is lopsided, with one tail stretching farther than the other.[6]
The mean is the average, found by adding all the values and dividing by how many there are.[6]
| Shape of distribution | Recommended summary numbers | Reason |
|---|---|---|
| Roughly symmetric (balanced around the center) | Mean and standard deviation | Both describe the data well |
| Skewed | Median and quartiles | The median is less affected by extreme values |
The source for these recommendations also suggests reporting these four numbers in every case:[1]
- Mean
- Median
- Standard deviation
- Quartiles
The mode, the most frequent value, is rarely useful for numerical variables.[1] It is the only measure of center to use for categorical variables, whose values are names or labels rather than numbers.[1][7]
When a distribution has a long tail to the right, its mean is usually higher than its median.[6] This rule of thumb has many exceptions, most often in discrete distributions, where the areas on each side of the median can be unequal.[8]
Univariate probability distributions
A univariate probability distribution describes a single random variable. A familiar example is the normal distribution, whose probability density (a curve whose area over a range gives the chance of a value in that range) is:[9]
The symbols mean the following:[9]
- is the variable's value.
- is the location parameter, which is the mean.
- is the scale parameter, which is the standard deviation.
The scale parameter must be positive.[10]
Getting one variable from many
A distribution of several variables still contains a univariate distribution for each one. Start from the joint distribution of two random variables and , which describes their combined values.[11]
The marginal distribution of is found by summing over for discrete variables, or integrating over for continuous ones.[11] Integrating means adding up across all the possible values of in a continuous range. For continuous variables:[11]
Here is the joint density, a density that describes the combined values of and . is the univariate density of . For discrete variables, the integral becomes a sum over all values of .[11]
The reverse step does not always work. The marginal distributions carry no information about how the variables relate, so they cannot always rebuild the joint distribution.[11] The exception is when the variables are independent, meaning that knowing the value of one tells nothing about the other.[11]
Univariate time series
A univariate time series is a sequence of measurements of the same variable collected over time.[12] An example is a city's daily high temperature.
An autoregressive model works on one series. It predicts a variable from its own past values.[13]
A vector autoregression extends the univariate autoregressive model to several series at once. Each variable gets its own equation, and every variable can affect every other.[14]
The univariate model in measurement
The NIST/SEMATECH e-Handbook of Statistical Methods calls the univariate problem the simplest problem type. Its general model, response = fixed part + random part, becomes:[15]
For this model, the data should behave like random draws from a fixed distribution with a fixed location and fixed spread.[15]
The univariate model is also used to check more complex models. If a model with many variables fits well, its residuals (data minus predictions) should behave like a univariate process with location zero.[15]
Residuals that break these univariate assumptions show that the model is not good enough and can be improved.[15]
Univariate in mathematics
In mathematics, univariate describes objects built on one variable.
A univariate function is a function of a single variable, such as or .[16] Functions whose input is one real number are covered on the page function of a real variable.
A univariate Polynomial with constant coefficients has this form:[17]
Here is the variable. The coefficients are fixed numbers that multiply the powers of .[17]
MathWorld calls the highest power, (with ), the order, or sometimes the degree.[17]
A polynomial in more than one variable is a multivariate polynomial.
Univariate and multivariate models
In statistical modeling, "univariate" and "multivariate" usually count the dependent (outcome) variables, not all variables. In descriptive statistics, univariate simply means a single variable.[18]
Counting outcomes
Under this usage, a model with one outcome is univariate, however many predictors (input variables used to predict the outcome) it has.[18] Analysis of variance shows the difference:[19]
| Method | Number of outcomes | What it relates |
|---|---|---|
| Analysis of variance (ANOVA) | One | One numerical dependent variable and a grouping variable |
| Multivariate analysis of variance (MANOVA) | Several | Several numerical dependent variables and a grouping variable |
A grouping variable is a variable that divides the observations into groups, such as treatment groups.[19]
Regression is a method for modeling how an outcome relates to one or more other variables.[19] The same outcome-counting rule applies to it. A multiple regression with one outcome and eight predictors is not a multivariate model, and the software package SPSS fits it with its "Univariate" general linear model procedure.[18]
Naming advice
Authors often mix up these terms. Hidalgo and Goodman suggest that models be called simple or multivariable to give the number of predictors.[20]
They reserve "multivariate" for models of several outcomes. Examples include:[20]
- Repeated measures, where an outcome is measured for the same person at several time points.
- Clustered data, where several individuals belong to each cluster.
A review of journal articles
Hidalgo and Goodman reviewed 30 articles in the American Journal of Public Health (December 2010 to November 2011) that described a "multivariate" method.[20]
| Kind of analysis actually used | Articles | Share |
|---|---|---|
| Multivariate (several outcomes) | 5 | 17% |
| Multivariable (one outcome) | 25 | 83% |
Other definitions
Other authors count all variables instead. One biostatistics review defines multivariate analysis as methods that look at three or more variables together, and it includes multiple linear regression with one dependent variable.[19] Readers should therefore check what a given author is counting.
References
- How to describe univariate data, Canova S., Cortinovis D. L., Ambrogi F., Journal of Thoracic Disease, 2017.
- Types of variables, Statistics: Power from Data!, Statistics Canada, 2021.
- Univariate, Merriam-Webster Dictionary.
- Univariate analysis, Esri GIS Dictionary.
- Scatter Plot, NIST/SEMATECH e-Handbook of Statistical Methods, NIST.
- Univariate Data Analysis: Analyzing One Variable at a Time, Sociology Research Methods, VIVA Pressbooks.
- Chapter 1 Key Terms, Introductory Statistics 2e, OpenStax.
- Mean, Median, and Skew: Correcting a Textbook Rule, von Hippel P. T., Journal of Statistics Education 13(2), 2005.
- Normal Distribution, NIST/SEMATECH e-Handbook of Statistical Methods, NIST.
- Location and Scale Parameters, NIST/SEMATECH e-Handbook of Statistical Methods, NIST.
- Multiple Random Variables (lecture notes), 14.30 Introduction to Statistical Methods in Economics, MIT OpenCourseWare, 2006.
- Time Series Basics, STAT 510 Applied Time Series Analysis, Penn State.
- Autoregressive models, Hyndman R. J. and Athanasopoulos G., Forecasting: Principles and Practice, 3rd ed., OTexts.
- Vector autoregressions, Hyndman R. J. and Athanasopoulos G., Forecasting: Principles and Practice, 3rd ed., OTexts.
- Underlying Assumptions, NIST/SEMATECH e-Handbook of Statistical Methods, NIST.
- Univariate Function, Wolfram MathWorld.
- Polynomial, Wolfram MathWorld.
- Multivariate Regression vs. Multiple Regression, The Analysis Factor.
- Biostatistics Series Module 10: Brief Overview of Multivariate Methods, Indian Journal of Dermatology, 2017.
- Multivariate or Multivariable Regression?, Hidalgo B. and Goodman M., American Journal of Public Health, 2013.
