Concept Architecture
Concept
Theoretically, Grid Search is an exhaustive optimisation method that systematically evaluates every combination of predefined parameter values within a specified search space. Rather than following gradients or stochastic search strategies, Grid Search enumerates all candidate solutions and identifies the combination that optimises a chosen objective function. In health economics, it is primarily used for model calibration, parameter tuning, machine learning applications and sensitivity analysis when the parameter space is sufficiently small to permit complete evaluation.
Mathematically, Grid Search defines a finite discrete set of candidate values for each model parameter and evaluates the objective function at every possible parameter combination. The optimal solution is the parameter vector that minimises or maximises the objective function according to the modelling objective. Because every candidate is evaluated, Grid Search guarantees identification of the best solution within the specified grid but not necessarily the global optimum over the continuous parameter space.
In practice, Grid Search is implemented to calibrate disease models, optimise predictive algorithms and tune machine learning hyperparameters used in health economic analyses. Analysts specify parameter ranges and grid resolution before executing the search. Although computationally expensive for high-dimensional problems, Grid Search remains straightforward to implement and provides a transparent benchmark against which more sophisticated optimisation methods may be compared.
Purpose
Used to identify the optimal combination of model parameters or hyperparameters by exhaustively evaluating a predefined set of candidate values within a discrete search space.
Mathematical Formulae
Primary Formula
Grid Search solves:
? = arg min?? ? �? J(?)*
or, for maximisation,
? = arg max?? ? �? J(?)*
where:
- � = finite parameter grid
- J(?) = objective function
- ?* = optimal parameter combination
Supporting Formulae
Total number of parameter combinations:
N = ????? m?
where:
- k = number of parameters
- m? = number of candidate values for parameter i
Related Mathematical Methods
- Exhaustive search
- Hyperparameter optimisation
- Model calibration
- Cross-validation
- Bayesian optimisation
- Genetic algorithms
- Gradient-based optimisation
Example
A disease simulation model contains three uncertain calibration parameters.
- Transmission rate: 5 candidate values
- Recovery rate: 4 candidate values
- Vaccine effectiveness: 6 candidate values
The total number of parameter combinations is:
N = 5 ? 4 ? 6 = 120
Each of the 120 combinations is evaluated by comparing predicted disease incidence with observed epidemiological data. The parameter combination producing the smallest calibration error is selected for the final health economic model.
Excel Implementation
| Function | Example Formula | Health Economics Application |
|---|---|---|
| Solver | Evaluate each parameter combination manually or through iteration | Compare objective function values across candidate parameter sets. |
| MIN | =MIN(F2:F121) | Identify the lowest calibration error across all grid combinations. |
| INDEX | =INDEX(A2:E121,MATCH(MIN(F2:F121),F2:F121,0),0) | Retrieve the optimal parameter combination. |
| SEQUENCE | =SEQUENCE(120) | Generate candidate evaluation indices for exhaustive parameter searches. |
VBA (Optional)
Automate exhaustive evaluation of parameter combinations, record objective function values and identify the optimal solution across the complete search grid.
Sources
- Briggs A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation.
- Drummond MF, Sculpher MJ, Claxton K, Stoddart GL, Torrance GW. Methods for the Economic Evaluation of Health Care Programmes. 4th ed.
- Nocedal J, Wright SJ. Numerical Optimization. 2nd ed.
- Hastie T, Tibshirani R, Friedman J. The Elements of Statistical Learning.
- Bishop CM. Pattern Recognition and Machine Learning.
Related Concepts (2)
Library
Publications
1
Decision Modelling for Health Economic Evaluation — Briggs, Claxton & Sculpher, 1st Edition ed., 2006 (Oxford University Press)
Foundational textbook on decision-analytic modelling for economic evaluation, covering decision trees, Markov models, handling parameter and structural uncertainty, probabilistic sensitivity analysis, and value of information. Volume 1 in the Handbooks in Health Economic Evaluation series.
BookView source →
Frequently Asked Questions (6)
What is grid search?
An optimisation approach evaluating an objective function across a predefined set of candidate parameter combinations arranged in a regular grid.
Source: Press et al. 2007
Why does grid search become impractical with many parameters?
Grid search tries every combination of parameter values on a regular lattice, so the number of points it must evaluate is the product of the values tried along each dimension. Adding parameters multiplies this total, and refining the grid multiplies it again, so the count grows explosively as dimensions increase. A search that is quick for two parameters can become impossible for ten, a difficulty known as the curse of dimensionality. This is why smarter search methods are preferred for large problems. Nocedal and Wright (2006) note this limitation.
Source: Nocedal & Wright 2006
How does grid search work?
Grid search works by defining, for each parameter, a set of values to try, forming a grid of all combinations of these values, then evaluating the objective function at every combination and choosing the one that optimises it. Because it covers the grid exhaustively, it is guaranteed to find the best point on the grid, though not necessarily the true optimum if that lies between grid points. Its thoroughness comes at the cost of many evaluations.
Source: Press et al. 2007
What are the advantages of grid search?
Grid search is simple to implement and understand, requires no gradients or special properties of the objective, and reliably finds the best combination among those tried, making it robust for small problems. It also maps how the objective varies across the parameter space, which aids understanding. Because it is systematic and exhaustive over the grid, it avoids getting stuck in local optima within the range searched, which is an advantage over some directed methods.
Source: Press et al. 2007
What are the limitations of grid search?
Grid search suffers from the curse of dimensionality: the number of combinations grows rapidly with the number of parameters and the fineness of the grid, so it becomes infeasible for many parameters or fine resolution. It also finds only the best grid point, missing optima between points unless the grid is fine, and it wastes effort evaluating poor regions. For larger or higher-dimensional problems, directed or adaptive methods are usually more efficient than exhaustive grid search.
Source: Press et al. 2007
When is grid search used in modelling?
Grid search is used in modelling for small calibration or optimisation problems, where a few parameters must be tuned to fit data or achieve a target, and where its simplicity and reliability outweigh its inefficiency. It is also used to explore how model outputs depend on parameters over a range, in structured sensitivity analysis. Where the number of parameters is small and each evaluation is affordable, grid search provides a straightforward way to find good values or map the response.
Source: Press et al. 2007
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 30 Sep 2025
Content version: 1.0.0
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/grid-search
- Term code
- HE-EM-DM-040
Stable URI · Machine-readable · Resolvable · CC BY 4.0