In science, computing, and engineering, a black box is a system which can be viewed in terms of its inputs and outputs (or
transfer characteristics), without any knowledge of its internal workings. Its implementation is "opaque" (black). The term can be used to refer to many inner workings, such as those of a
transistor
A transistor is a semiconductor device used to Electronic amplifier, amplify or electronic switch, switch electrical signals and electric power, power. It is one of the basic building blocks of modern electronics. It is composed of semicondu ...
, an
engine
An engine or motor is a machine designed to convert one or more forms of energy into mechanical energy.
Available energy sources include potential energy (e.g. energy of the Earth's gravitational field as exploited in hydroelectric power ge ...
, an
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
, the
human brain
The human brain is the central organ (anatomy), organ of the nervous system, and with the spinal cord, comprises the central nervous system. It consists of the cerebrum, the brainstem and the cerebellum. The brain controls most of the activi ...
, or an institution or
government
A government is the system or group of people governing an organized community, generally a State (polity), state.
In the case of its broad associative definition, government normally consists of legislature, executive (government), execu ...
.
To analyze an
open system with a typical "black box approach", only the behavior of the stimulus/response will be accounted for, to infer the (unknown) ''box''. The usual representation of this "black box system" is a
data flow diagram
A data-flow diagram is a way of representing a flow of data through a process or a system (usually an information system). The DFD also provides information about the outputs and inputs of each entity and the process itself. A data-flow diagram ha ...
centered in the box.
The opposite of a black box is a system where the inner components or logic are available for inspection, which is most commonly referred to as a
white box (sometimes also known as a "clear box" or a "glass box").
History

The modern meaning of the term "black box" seems to have entered the English language around 1945. In electronic
circuit theory
Circuit may refer to:
Science and technology
Electrical engineering
* Electrical circuit, a complete electrical network with a closed-loop giving a return path for current
** Analog circuit, uses continuous signal levels
** Balanced circu ...
the process of
network synthesis from
transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
s, which led to electronic circuits being regarded as "black boxes" characterized by their response to signals applied to their
ports Ports collections (or ports trees, or just ports) are the sets of makefiles and Patch (Unix), patches provided by the BSD-based operating systems, FreeBSD, NetBSD, and OpenBSD, as a simple method of installing software or creating binary packages. T ...
, can be traced to
Wilhelm Cauer
Wilhelm Cauer (24 June 1900 – 22 April 1945) was a German mathematician and scientist. He is most noted for his work on the analysis and synthesis of electrical filters and his work marked the beginning of the field of network synthesis. Prio ...
who published his ideas in their most developed form in 1941. Although Cauer did not himself use the term, others who followed him certainly did describe the method as black-box analysis.
Vitold Belevitch
Vitold Belevitch (2 March 1921 – 26 December 1999) was a Belgian mathematician and electrical engineer of Russian origin who produced some important work in the field of electrical network theory. Born to parents fleeing the Bolsheviks, he ...
puts the concept of black-boxes even earlier, attributing the explicit use of
two-port network
In electronics, a two-port network (a kind of four-terminal network or quadripole) is an electrical network (i.e. a circuit) or device with two ''pairs'' of Terminal (electronics), terminals to connect to external circuits. Two terminals consti ...
s as black boxes to
Franz Breisig
Franz Breisig (1868–1934) was a German mathematician, chiefly known for his work on quadripoles (1921), later to be known as two-port networks.
Publications
*Breisig, Dr F, ''Theoretische Telegraphie'', Braunschweig, F. Vieweg und Sohn, 1910.
...
in 1921 and argues that 2-terminal components were implicitly treated as black-boxes before that.
In
cybernetics
Cybernetics is the transdisciplinary study of circular causal processes such as feedback and recursion, where the effects of a system's actions (its outputs) return as inputs to that system, influencing subsequent action. It is concerned with ...
, a full treatment was given by
Ross Ashby
William Ross Ashby (6 September 1903 – 15 November 1972) was an English psychiatrist and a pioneer in cybernetics, the study of the science of communications and automatic control systems in both machines and living things. His first name was ...
in 1956.
[Ashby, W. Ross; ''An introduction to cybernetics'', London: Chapman & Hall, 1956, chapter 6: ''The black box'', pp. 86117.] A black box was described by
Norbert Wiener
Norbert Wiener (November 26, 1894 – March 18, 1964) was an American computer scientist, mathematician, and philosopher. He became a professor of mathematics at the Massachusetts Institute of Technology ( MIT). A child prodigy, Wiener late ...
in 1961 as an unknown system that was to be identified using the techniques of
system identification
The field of system identification uses statistical methods to build mathematical models of dynamical systems from measured data. System identification also includes the optimal design#System identification and stochastic approximation, optimal de ...
. He saw the first step in
self-organization
Self-organization, also called spontaneous order in the social sciences, is a process where some form of overall order and disorder, order arises from local interactions between parts of an initially disordered system. The process can be spont ...
as being able to copy the output behavior of a black box. Many other engineers, scientists and epistemologists, such as
Mario Bunge
Mario Augusto Bunge ( ; ; September 21, 1919 – February 24, 2020) was an Argentine-Canadian philosopher and physicist. His philosophical writings combined scientific realism, systemism, materialism, emergentism, and other principles.
He was a ...
,
used and perfected the black box theory in the 1960s.
Systems theory

In
systems theory
Systems theory is the Transdisciplinarity, transdisciplinary study of systems, i.e. cohesive groups of interrelated, interdependent components that can be natural or artificial. Every system has causal boundaries, is influenced by its context, de ...
, the ''black box'' is an abstraction representing a class of concrete
open system which can be viewed solely in terms of its ''stimuli inputs'' and ''output reactions'':
The understanding of a ''black box'' is based on the "explanatory principle", the
hypothesis
A hypothesis (: hypotheses) is a proposed explanation for a phenomenon. A scientific hypothesis must be based on observations and make a testable and reproducible prediction about reality, in a process beginning with an educated guess o ...
of a
causal relation
In mathematical physics, the causal structure of a Lorentzian manifold describes the possible causal relationships between points in the manifold.
Lorentzian manifolds can be classified according to the types of causal structures they admit (''ca ...
between the ''input'' and the ''output''. This principle states that ''input'' and ''output'' are distinct, that the system has observable (and relatable) inputs and outputs and that the system is black to the observer (non-openable).
[Glanville, Ranulph; "Black Boxes", Cybernetics and Human Knowing, 2009, pp. 153–167.]
Recording of observed states
An observer makes observations over time. All observations of inputs and outputs of a ''black box'' can be written in a table, in which, at each of a sequence of times, the states of the ''box's'' various parts, input and output, are recorded. Thus, using an example from
Ashby Ashby may refer to:
People
* Ashby (surname)
* Alan la Zouche, 1st Baron la Zouche of Ashby (1267–1314), governor of Rockingham Castle and steward of Rockingham Forest, England
* Walter Ashby Plecker (1861–1947), American physician and public ...
, examining a box that has fallen from a
flying saucer
A flying saucer, or flying disc, is a purported type of disc-shaped unidentified flying object (UFO). The term was coined in 1947 by the United States (US) news media for the objects pilot Kenneth Arnold UFO sighting, Kenneth Arnold claimed fl ...
might lead to this protocol:
Thus, every system, fundamentally, is investigated by the collection of a long protocol, drawn out in time, showing the sequence of input and output states. From this there follows the fundamental deduction that all knowledge obtainable from a Black Box (of given input and output) is such as can be obtained by re-coding the protocol (the ''observation table''); all that, and nothing more.
If the observer also controls input, the investigation turns into an
experiment
An experiment is a procedure carried out to support or refute a hypothesis, or determine the efficacy or likelihood of something previously untried. Experiments provide insight into cause-and-effect by demonstrating what outcome occurs whe ...
(illustration), and hypotheses about
cause and effect
Causality is an influence by which one event, process, state, or object (''a'' ''cause'') contributes to the production of another event, process, state, or object (an ''effect'') where the cause is at least partly responsible for the effect, ...
can be tested directly.
When the experimenter is also motivated to control the box, there is active feedback in the box/observer relation, promoting what in
control theory
Control theory is a field of control engineering and applied mathematics that deals with the control system, control of dynamical systems in engineered processes and machines. The objective is to develop a model or algorithm governing the applic ...
is called a
feed forward architecture.
Modeling
The ''modeling process'' is the construction of a predictive
mathematical model
A mathematical model is an abstract and concrete, abstract description of a concrete system using mathematics, mathematical concepts and language of mathematics, language. The process of developing a mathematical model is termed ''mathematical m ...
, using existing historic data (observation table).
Testing the black box model
A developed ''black box model'' is a validated model when ''
black-box testing
Black-box testing, sometimes referred to as specification-based testing, is a method of software testing that examines the functionality of an application without peering into its internal structures or workings. This method of test can be applie ...
'' methods
[See for ex. the British standard BS 7925-2 (Software component testing), or its 2001 work draft,]
BCS SIGIST (British Computer Society Specialist Interest Group in Software Testing), "Standard for Software Component Testing", Working Draft 3.4, 27 April 200
webpage
ensures that it is, based solely on
observable
In physics, an observable is a physical property or physical quantity that can be measured. In classical mechanics, an observable is a real-valued "function" on the set of all possible system states, e.g., position and momentum. In quantum ...
elements.
With back testing, out of time data is always used when testing the black box model. Data has to be written down before it is pulled for black box inputs.
Other theories

''Black box theories'' are those theories defined only in terms of their function.
The term can be applied in any field where some inquiry is made into the relations between aspects of the appearance of a system (exterior of the black box), with no attempt made to explain why those relations should exist (interior of the black box). In this context,
Newton's theory of gravitation
Newton's law of universal gravitation describes gravity as a force by stating that every particle attracts every other particle in the universe with a force that is Proportionality (mathematics)#Direct proportionality, proportional to the product ...
can be described as a black box theory.
Specifically, the inquiry is focused upon a system that has no immediately apparent characteristics and therefore has only factors for consideration held within itself hidden from immediate observation. The observer is assumed ignorant in the first instance as the majority of available
data
Data ( , ) are a collection of discrete or continuous values that convey information, describing the quantity, quality, fact, statistics, other basic units of meaning, or simply sequences of symbols that may be further interpreted for ...
is held in an inner situation away from
facile investigations. The ''black box'' element of the definition is shown as being characterised by a system where observable elements enter a perhaps imaginary box with a set of different outputs emerging which are also observable.
Adoption in humanities
In
humanities disciplines such as
philosophy of mind
Philosophy of mind is a branch of philosophy that deals with the nature of the mind and its relation to the Body (biology), body and the Reality, external world.
The mind–body problem is a paradigmatic issue in philosophy of mind, although a ...
and
behaviorism
Behaviorism is a systematic approach to understand the behavior of humans and other animals. It assumes that behavior is either a reflex elicited by the pairing of certain antecedent stimuli in the environment, or a consequence of that indivi ...
, one of the uses of black box theory is to describe and understand
psychological
Psychology is the scientific study of mind and behavior. Its subject matter includes the behavior of humans and nonhumans, both consciousness, conscious and Unconscious mind, unconscious phenomena, and mental processes such as thoughts, feel ...
factors in fields such as marketing when applied to an analysis of
consumer behaviour
Consumer behaviour is the study of individuals, groups, or organisations and all activities associated with the Purchasing, purchase, Utility, use and disposal of goods and services. It encompasses how the consumer's emotions, Attitude (psy ...
.
Black box theory
''Black Box theory'' is even wider in application than professional studies:
Applications
Computing and mathematics
*In
computer programming
Computer programming or coding is the composition of sequences of instructions, called computer program, programs, that computers can follow to perform tasks. It involves designing and implementing algorithms, step-by-step specifications of proc ...
and
software engineering
Software engineering is a branch of both computer science and engineering focused on designing, developing, testing, and maintaining Application software, software applications. It involves applying engineering design process, engineering principl ...
, ''
black box testing
Black-box testing, sometimes referred to as specification-based testing, is a method of software testing that examines the functionality of an application without peering into its internal structures or workings. This method of test can be applie ...
'' is used to check that the output of a program is as expected, given certain inputs.
[Beizer, Boris; ''Black-Box Testing: Techniques for Functional Testing of Software and Systems'', 1995, ] The term "black box" is used because the actual program being executed is not examined.
* In
computing
Computing is any goal-oriented activity requiring, benefiting from, or creating computer, computing machinery. It includes the study and experimentation of algorithmic processes, and the development of both computer hardware, hardware and softw ...
in general, a ''black box program'' is one where the user cannot see the inner workings (perhaps because it is a
closed source
Proprietary software is software that grants its creator, publisher, or other rightsholder or rightsholder partner a legal monopoly by modern copyright and intellectual property law to exclude the recipient from freely sharing the software or modi ...
program) or one which has no side effects and the function of which need not be examined, a routine suitable for re-use.
* Also in
computing
Computing is any goal-oriented activity requiring, benefiting from, or creating computer, computing machinery. It includes the study and experimentation of algorithmic processes, and the development of both computer hardware, hardware and softw ...
, a black box refers to a piece of equipment provided by a vendor for the purpose of using that vendor's product. It is often the case that the vendor maintains and supports this equipment, and the company receiving the black box typically is hands-off.
*In
mathematical model
A mathematical model is an abstract and concrete, abstract description of a concrete system using mathematics, mathematical concepts and language of mathematics, language. The process of developing a mathematical model is termed ''mathematical m ...
ing, a limiting case.
Science and technology
*In
neural network
A neural network is a group of interconnected units called neurons that send signals to one another. Neurons can be either biological cells or signal pathways. While individual neurons are simple, many of them together in a network can perfor ...
ing or
heuristic algorithm
A heuristic or heuristic technique (''problem solving'', '' mental shortcut'', ''rule of thumb'') is any approach to problem solving that employs a pragmatic method that is not fully optimized, perfected, or rationalized, but is nevertheless ...
s (computer terms generally used to describe "learning" computers or "AI simulations"), a black box is used to describe the constantly changing section of the program environment which cannot easily be tested by the programmers. This is also called a
white box in the context that the program code can be seen, but the code is so complex that it is functionally equivalent to a black box.
*In
physics
Physics is the scientific study of matter, its Elementary particle, fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge whi ...
, a black box is a system whose internal structure is unknown, or need not be considered for a particular purpose.
*In
cryptography
Cryptography, or cryptology (from "hidden, secret"; and ''graphein'', "to write", or ''-logy, -logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of Adversary (cryptography), ...
to capture the notion of knowledge obtained by an algorithm through the execution of a
cryptographic protocol
A cryptographic protocol is an abstract or concrete Communications protocol, protocol that performs a information security, security-related function and applies cryptographic methods, often as sequences of cryptographic primitives. A protocol desc ...
such as a
zero-knowledge proof
In cryptography, a zero-knowledge proof (also known as a ZK proof or ZKP) is a protocol in which one party (the prover) can convince another party (the verifier) that some given statement is true, without conveying to the verifier any information ...
protocol. If the output of an algorithm when interacting with the protocol matches that of a simulator given some inputs, it only needs to know the inputs.
Other applications
*In
philosophy
Philosophy ('love of wisdom' in Ancient Greek) is a systematic study of general and fundamental questions concerning topics like existence, reason, knowledge, Value (ethics and social sciences), value, mind, and language. It is a rational an ...
and
psychology
Psychology is the scientific study of mind and behavior. Its subject matter includes the behavior of humans and nonhumans, both consciousness, conscious and Unconscious mind, unconscious phenomena, and mental processes such as thoughts, feel ...
, the school of
behaviorism
Behaviorism is a systematic approach to understand the behavior of humans and other animals. It assumes that behavior is either a reflex elicited by the pairing of certain antecedent stimuli in the environment, or a consequence of that indivi ...
sees the human
mind
The mind is that which thinks, feels, perceives, imagines, remembers, and wills. It covers the totality of mental phenomena, including both conscious processes, through which an individual is aware of external and internal circumstances ...
as a black box;
["Mind as a Black Box: The Behaviorist Approach", pp. 85–88, in Friedenberg, Jay; and Silverman, Gordon; ''Cognitive Science: An Introduction to the Study of Mind'', Sage Publications, 2006.] see ''
other theories''.
See also
*
Black box group
In computational group theory, a black box group (black-box group) is a group ''G'' whose elements are encoded by bit strings of length ''N'', and group operations are performed by an oracle (the "black box"). These operations include:
* taking ...
*
Blackboxing
In science studies, the social process of blackboxing is based on the abstract notion of a black box. To cite Bruno Latour, blackboxing is "the way scientific and technical work is made invisible by its own success. When a machine runs efficientl ...
*
Chinese room
The Chinese room argument holds that a computer executing a program cannot have a mind, understanding, or consciousness, regardless of how intelligently or human-like the program may make the computer behave. The argument was presented in a 19 ...
*
Flight recorder
A flight recorder is an electronic recording device placed in an aircraft for the purpose of facilitating the investigation of aviation accidents and incidents. The device may often be referred to colloquially as a "black box", an outdated nam ...
*
Grey box model
*
Hysteresis
Hysteresis is the dependence of the state of a system on its history. For example, a magnet may have more than one possible magnetic moment in a given magnetic field, depending on how the field changed in the past. Plots of a single component of ...
* ''Open system'':
**
in (general) Systems theory
**
in Thermodynamics
**
in Control theory
*
Multi-agent system
A multi-agent system (MAS or "self-organized system") is a computerized system composed of multiple interacting intelligent agents.H. Pan; M. Zahmatkesh; F. Rekabi-Bana; F. Arvin; J. HuT-STAR: Time-Optimal Swarm Trajectory Planning for Quadroto ...
*
Prediction
A prediction (Latin ''præ-'', "before," and ''dictum'', "something said") or forecast is a statement about a future event or about future data. Predictions are often, but not always, based upon experience or knowledge of forecasters. There ...
/
Retrodiction
Retrodiction is the act of making a prediction about the past. It is also known as postdiction (but this should not be confused with the use of the term in criticisms of parapsychological research).
Activity
The activity of retrodiction (or po ...
* Related theories
**
Oracle machine
In complexity theory and computability theory, an oracle machine is an abstract machine used to study decision problems. It can be visualized as a black box, called an oracle, which is able to solve certain problems in a single operation. The ...
**
Pattern recognition
Pattern recognition is the task of assigning a class to an observation based on patterns extracted from data. While similar, pattern recognition (PR) is not to be confused with pattern machines (PM) which may possess PR capabilities but their p ...
**
Systems theory
Systems theory is the Transdisciplinarity, transdisciplinary study of systems, i.e. cohesive groups of interrelated, interdependent components that can be natural or artificial. Every system has causal boundaries, is influenced by its context, de ...
**
Signal processing
Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing ''signals'', such as audio signal processing, sound, image processing, images, Scalar potential, potential fields, Seismic tomograph ...
*
System identification
The field of system identification uses statistical methods to build mathematical models of dynamical systems from measured data. System identification also includes the optimal design#System identification and stochastic approximation, optimal de ...
*
Stimulus–response model
The stimulus–response model is a conceptual framework in psychology that describes how individuals react to external Stimulus_(psychology), stimuli. According to this model, an external stimulus triggers a reaction in an organism, often without ...
References
{{Authority control
Cybernetics
Systems theory
Metatheory of science
Metaphors referring to objects
Software design patterns
Programming principles