ArticleslgStudy

computer science

Computer experiment

Computer experiment is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Computer experiment rather than just read about it. In short: A computer experiment or simulation experiment is an experiment used to study a computer simulation, also referred to as an in silico system. This area includes computational physics, computational chemistry, computational biology and other similar disciplines.

Key takeaways

  • Computer experiment belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Computer experiment to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Computer experiment from memory before moving on to harder problems.

Reference excerpt

A computer experiment or simulation experiment is an experiment used to study a computer simulation, also referred to as an in silico system. This area includes computational physics, computational chemistry, computational biology and other similar disciplines.

Background Computer simulations are constructed to emulate a physical system. Because these are meant to replicate some aspect of a system in detail, they often do not yield an analytic solution. Therefore, methods such as discrete event simulation or finite element solvers are used. A computer model is used to make inferences about the system it replicates. For example, climate models are often used because experimentation on an earth sized object is impossible.

Objectives Computer experiments have been employed with many purposes in mind. Some of those include:

Uncertainty quantification: Characterize the uncertainty present in a computer simulation arising from unknowns during the computer simulation's construction. Inverse problems: Discover the underlying properties of the system from the physical data. Bias correction: Use physical data to correct for bias in the simulation. Data assimilation: Combine multiple simulations and physical data sources into a complete predictive model. Systems design: Find inputs that result in optimal system performance measures.

Computer simulation modeling Modeling of computer experiments typically uses a Bayesian framework. Bayesian statistics is an interpretation of the field of statistics where all evidence about the true state of the world is explicitly expressed in the form of probabilities. In the realm of computer experiments, the Bayesian interpretation would imply we must form a prior distribution that represents our prior belief on the structure of the computer model. The use of this philosophy for computer experiments started in the 1980s and is nicely summarized by Sacks et al. (1989) [1]. While the Bayesian approach is widely used, frequentist approaches have been recently discussed [2]. The basic idea of this framework is to model the computer simulation as an unknown function of a set of inputs. The computer simulation is implemented as a piece of computer code that can be evaluated to produce a collection of outputs. Examples of inputs to these simulations are coefficients in the underlying model, initial conditions and forcing functions. It is natural to see the simulation as a deterministic function that maps these inputs into a collection of outputs. On the basis of seeing our simulator this way, it is common to refer to the collection of inputs as x, the computer simulation itself as f, and the resulting output as f(x). Both x and f(x) are vector quantities, and they can be very large collections of values, often indexed by space, or by time, or by both space and time. Although f(⋅) is known in principle, in practice this is not the case. Many simulators comprise tens of thousands of lines of high-level computer code, which is not accessible to intuition. For some simulations, such as climate models, evaluation of the output for a single set of inputs can require millions of computer hours [3].

Gaussian process prior The typical model for a computer code output is a Gaussian process. For notational simplicity, assume f(x) is a scalar. Owing to the Bayesian framework, we fix our belief that the function f follows a Gaussian process, f∼GP⁡(m(⋅),C(⋅,⋅)), where m is the mean function and C is the covariance function. Popular mean functions are low order polynomials and a popular covariance function is Matern covariance, which includes both the exponential (ν=1/2) and Gaussian covariances (as ν→∞).

Design of computer experiments The design of computer experiments has considerable differences from design of experiments for parametric models. Since a Gaussian process prior has an infinite dimensional representation, the concepts of A and D criteria (see Optimal design), which focus on reducing the error in the parameters, cannot be used. Replications would also be wasteful in cases when the computer simulation has no error. Criteria that are used to determine a good experimental design include integrated mean squared prediction error [4] and distance based criteria [5]. Popular strategies for design include latin hypercube sampling and low discrepancy sequences.

Problems with massive sample sizes Unlike physical experiments, it is common for computer experiments to have thousands of different input combinations. Because the standard inference requires matrix inversion of a square matrix of the size of the number of samples (n), the cost grows on the 𝒪(n3). Matrix inversion of large, dense matrices can also cause numerical inaccuracies. Currently, this problem is solved by greedy decision tree techniques, allowing effective computations for unlimited dimensionality and sample size patent WO2013055257A1, or avoided by using approximation methods, e.g. [6].

See also Simulation Uncertainty quantification Bayesian statistics Gaussian process emulator Design of experiments Molecular dynamics Monte Carlo method Surrogate model Grey box completion and validation Artificial financial market

Further reading Santner, Thomas (2003). The Design and Analysis of Computer Experiments. Berlin: Springer. ISBN 0-387-95420-1. Fehr, Jörg; Heiland, Jan; Himpe, Christian; Saak, Jens (2016). "Best practices for replicability, reproducibility and reusability of computer-based experiments exemplified by model reduction software". AIMS Mathematics. 1 (3): 261–281. arXiv:1607.01191. doi:10.3934/Math.2016.3.261. S2CID 14715031.

Worked examples

Example 1 — a first encounter with Computer experiment

Start with the simplest possible case. Write down what Computer experiment claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Computer experiment before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Computer experiment ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Computer experiment

In research
Computer experiment appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Computer experiment in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Computer experiment is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational science, Design of experiments, Simulation, so understanding it makes those chapters shorter.
In everyday life
Look for Computer experiment outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Computer experiment” →

How to study Computer experiment in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Computer experiment means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Computer experiment out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Computer experiment in simple terms?

A computer experiment or simulation experiment is an experiment used to study a computer simulation, also referred to as an in silico system. This area includes computational physics, computational chemistry, computational biology and other similar disciplines.

Why does Computer experiment matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Computer experiment?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Computer experiment.

Tags

  • Computational science
  • Design of experiments
  • Simulation

Keep exploring