#jsDisabledContent { display:none; } My Account | Register | Help

# Binary data

Article Id: WHEBN0001364506
Reproduction Date:

 Title: Binary data Author: World Heritage Encyclopedia Language: English Subject: Collection: Publisher: World Heritage Encyclopedia Publication Date:

### Binary data

Binary tree, a conceptual metaphor (and a data structure) for sequences of bits

Binary data is data whose unit can take on only two possible states, traditionally termed 0 and +1 in accordance with the binary numeral system and Boolean algebra. Forms and interpretations of binary data come in different technical and scientific fields. Such two-valued unit can be termed:

## Mathematical and combinatoric foundations

A discrete variable that can take only one state contains zero information, and is the next natural number after 1. That is why the bit, a variable with only two possible values, is a standard primary unit of information.

A collection of n bits may have 2n states: see binary number for details. Number of states of a collection of discrete variables depends exponentially on the number of variables, and only as a power law on number of states of each variable. Ten bits have more () states than three decimal digits (1000). 10k bits are more than sufficient to represent an information (a number or anything else) that requires 3k decimal digits, so information contained in discrete variables with 3, 4, 5, 6, 7, 8, 9, 10â€¦ states can be ever superseded by allocating two, three, or four times more bits. So, the use of any other small number than 2 does not provide an advantage.

A Hasse diagram: representation of a Boolean algebra as a directed graph

Moreover, Boolean algebra provides a convenient mathematical structure for collection of bits, with a semantic of a collection of propositional variables. Boolean algebra operations are known as "bitwise operations" in computer science. Boolean functions are also well-studied theoretically and easily implementable, either with computer programs or by so-named logic gates in digital electronics. This contributes to the use of bits to represent different data, even those originally not binary.

## In statistics

In statistics, binary data is a statistical data type described by binary variables, which can take only two possible values. Binary data represents the outcomes of Bernoulli trialsâ€”statistical experiments with only two possible outcomes. It is a type of categorical data, which more generally represents experiments with a fixed number of possible outcomes. The two values in a binary variable, despite being coded numerically as 0 and 1, are generally considered to exist on a nominal scale, meaning they represent qualitatively different values that cannot be compared numerically. In this respect, also, binary data is similar to categorical data but distinct from count data or other types of numeric data. Often, binary data is used to represent one of two conceptually opposed values, e.g.

• the outcome of an experiment ("success" or "failure")
• the response to a yes-no question ("yes" or "no")
• presence or absence of some feature ("is present" or "is not present")
• the truth or falsehood of a proposition ("true" or "false", "correct" or "incorrect")

However, it can also be used for data that is assumed to have only two possible values, even if they are not conceptually opposed or conceptually represent all possible values in the space. For example, binary data is often used to represent the party choices of voters in elections in the United States, i.e. Republican or Democratic. In this case, there is no inherent reason why only two political parties should exist, and indeed, other parties do exist in the U.S., but they are so minor that they are generally simply ignored. Modeling continuous data (or categorical data of >2 categories) as a binary variable for analysis purposes is called dichotomization (creating a dichotomy). Like all discretization, it involves discretization error, but the goal is to learn something valuable despite the error (treating it as negligible for the purpose at hand, but remembering that it cannot be assumed to be negligible in general).

Binary variables that are random variables are distributed according to a Bernoulli distribution. Regression analysis on predicted outcomes that are binary variables is accomplished through logistic regression, probit regression or a related type of discrete choice model.

## In computer science

A binary image, a common use of binary data in computing

In modern computers, almost all data is ultimately represented in

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.

Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.