# Statistical unit

In statistics, a unit is one member of a set of entities being studied. It is the main source for the mathematical abstraction of a "random variable". Common examples of a unit would be a single person, animal, plant, manufactured item, or country that belongs to a larger collection of such entities being studied.

## Experimental and sampling units

Units are often referred to as being either experimental units or sampling units:
* An "experimental unit" is typically thought of as one member of a set of objects that are initially equal, with each object then subjected to one of several experimental treatments. Put simply, it is the smallest entity to which a treatment is applied.
* A "sampling unit" (or unit of observation) is typically thought of as an object that has been sampled from a statistical population. This term is commonly used in opinion polling and survey sampling.
For example, in an experiment on educational methods, methods may be applied to classrooms of students. This would make the classroom as the experimental unit. Measurements of progress may be obtained from individual students, as observational units. But the treatment (teaching method) being applied to the class would not be applied independently to the individual students. Hence, the student could not be regarded as the experimental unit. The class, or the teacher (who applies the method, if he/she has multiple classes), would be the appropriate experimental unit.

## Implementation

In most statistical studies, the goal is to generalize from the observed units to a larger set consisting of all comparable units that exist but are not directly observed. For example, if we randomly sample 100 people and ask them which candidate they intend to vote for in an election, our main interest is in the voting behavior of all eligible voters, not exclusively on the 100 observed units.
In some cases, the observed units may not form a sample from any meaningful population, but rather constitute a convenience sample, or may represent the entire population of interest. In this situation, we may study the units descriptively, or we may study their dynamics over time. But it typically does not make sense to talk about generalizing to a larger population of such units. Studies involving countries or business firms are often of this type. Clinical trials also typically use convenience samples, however the aim is often to make inferences about the effectiveness of treatments in other patients, and given the inclusion and exclusion criteria for some clinical trials, the sample may not be representative of the majority of patients with the condition or disease.
In simple data sets, the units are in one-to-one correspondence with the data values. In more complex data sets, multiple measurements are made for each unit. For example, if blood pressure measurements are made daily for a week on each subject in a study, there would be seven data values for each statistical unit. Multiple measurements taken on an individual are not independent (they will be more alike compared to measurements taken on different individuals). Ignoring these dependencies, the analysis can lead to an inflated sample size or pseudoreplication.
While a unit is often the lowest level at which observations are made, in some cases, a unit can be further decomposed as a statistical assembly.
Many statistical analyses use quantitative data that have units of measurement. This is a distinct and non-overlapping use of the term "unit."

## Units of collection and analysis

Statistical units are divided into two types. They are:
* Unit of collection: units in which figures relating to a particular problem are either enumerated or estimated. The units of collection may be simple or composite.
** A simple unit is one which represents a single condition without any qualification.
** A composite unit is one which is formed by adding a qualification word or phrase to a simple unit. For example, labour-hours and passenger-kilometer.
* Unit of analysis and interpretation: units in terms of which statistical data are analyzed and interpreted. For example, ratios, percentage, and coefficient, etc.