RESEARCH DOSSIER
Computational Law and Economics
Abstract. Computational law and economics combines legal analysis, economic reasoning, and computational methods to investigate the representation, operation, and consequences of legal institutions. This monograph examines formal legal representations, data construction, prediction, causal inference, simulation, tax-benefit microsimulation, regulatory impact assessment, judicial prediction, risk allocation, algorithmic competition, contracts, institutional design, privacy, and validation. Drawing on selected scholarly and official sources, it distinguishes legal applicability from executable representation, mechanical incidence from behavioral response, and forecasting from causal and normative reasoning. Synthetic worked examples demonstrate how transaction costs, thresholds, institutional selection, discounting, and administrative capacity alter economic conclusions. The analysis establishes the importance of traceability between legal authority, modeled mechanisms, evidence, and the institutional decisions that computational results inform. It offers a critical methodological synthesis rather than a novel named theory or an original empirical estimate.
Keywords: Computational law; law and economics; legal informatics; econometrics; causal inference; simulation; rules as code; microsimulation; regulatory impact assessment; judicial prediction; algorithmic competition; institutional design; procedural safeguards
Introduction and research design
Computational law and economics examines the interaction between legal institutions, economic behavior, and computational representations of both. It extends economic analysis of law into settings in which the relevant rules, actors, evidence, transactions, and strategic responses can be represented and investigated algorithmically. Its intellectual object is the institution and its consequences. The computer is a means of representing, calculating, testing, and sometimes implementing institutional arrangements; it is also an object of regulation when computational systems change markets or administrative practice.
The central research question is how a computational account of a legal arrangement can support a defensible economic conclusion while preserving the authority, interpretation, distributional consequences, and procedural conditions of law. Three related questions follow. What information must a computational representation preserve? Under what assumptions does a calculated consequence become credible evidence of real-world effects? How should an institution respond when algorithms themselves alter the behavior on which legal and economic analysis depends?
This inquiry is an international methodological synthesis, using selected historical and institutional materials from the United States, the European Union, the United Kingdom, and transnational policy organizations. It combines conceptual analysis, economic reasoning, examination of published computational and empirical research, and limited doctrinal reading of identified instruments. It does not estimate a new population parameter or conduct an original field experiment. Numerical examples use invented inputs and are transparent arithmetic demonstrations. The research cutoff is November 24, 2026; dates of legal instruments are retained, and historical texts are not treated as universal current legal advice. The evidence base is purposive rather than systematic: sources are chosen to illuminate distinct methodological tasks. Where only an abstract or indexed passage was accessible, the claims are confined to that material. No novelty priority or new named theory is asserted.
Frankenreiter and Livermore (2020) describe the expansion of computational methods in legal analysis across legal texts and empirical inquiry. Athey and Imbens (2019) examine machine learning methods for economists and their connections to policy estimation and econometrics. Bringing these lines of inquiry together requires an understanding of the difference between a legal rule, a statistical regularity, a causal mechanism, and a normative recommendation. Each has a different criterion of success. An institution can be represented exactly and still produce economically undesirable results; an accurate forecast can be legally irrelevant; an efficient policy can remain unavailable under governing law. The study proceeds through those differences rather than assuming that computational performance settles all of them.
Economic foundations of legal computation
Economic analysis begins with scarcity, alternatives, incentives, information, and the costs of coordination. Legal institutions establish permissions, duties, ownership, remedies, procedures, enforcement capacities, and the allocation of risk. Their effects depend on how individuals and organizations respond to them. A legal entitlement affects the feasible set of actions, expected consequences, investment incentives, and bargaining positions. The analyst must specify which of these channels is under examination.
Coase's (1992) Institutional Structure of Production emphasizes the consequences of positive transaction costs for the ability to contract around legal arrangements. This observation supplies an important reason to compute institutions rather than assume frictionless adjustment. A nominally equivalent allocation of resources can lead to different outcomes where parties have unequal information, enforcement is costly, agreements are difficult to negotiate, or some parties are absent from bargaining. Digital systems may reduce the cost of matching and calculation while raising verification, security, dependency, or switching costs.
A basic economic model might express an actor's expected private payoff as benefit minus direct cost, expected sanction, and transaction cost. This expression is a simplification: a person may be uncertain about the rule, misperceive probabilities, care about reputation or fairness, or be unable to bear an immediate cost. A firm's conduct depends on future competition and information. Administrative officials face budgets, workload constraints, professional duties, and political oversight. Modeling them all as interchangeable payoff maximizers erases institutional differences.
Consider a hypothetical compliance decision. An action yields a private gain of 100 units, detection probability is 0.2, and a monetary sanction is 300 units. The expected monetary sanction is 60, leaving an expected private gain of 40 before other costs. Doubling the sanction to 600 produces an expected sanction of 120, but the calculation alone does not establish the preferable legal policy. Actual detection probability may respond to evasion, collection may fail, the sanction may be disproportionate, and harm to third parties is absent from private payoff. Raising detection to 0.4 at the original sanction yields the same expected monetary sanction but a different institutional burden. Thus even simple calculations expose the assumptions that determine which policy instrument looks attractive.
Welfare analysis introduces another distinction. A transfer changes the distribution of resources but is not automatically a net destruction of resources; the administrative cost of making the transfer, behavioral distortions, and the welfare significance of different recipients are separate issues. An analysis that adds monetary sanctions to social benefits without accounting for transfers and enforcement costs may double count. Similarly, a policy that raises measured aggregate surplus can disadvantage a group with few alternatives. The normative basis for aggregating individual gains and losses must be stated rather than hidden inside a software objective.
The economic question therefore has a legal boundary and a distributional dimension. Computation makes this relationship explicit by forcing the analyst to specify available actions, the consequences of those actions, and the institutions through which those consequences arise. Its value is greatest when these specifications can be inspected, challenged, and varied.
The legal object and its computational representation
A legal provision is an institutional communication whose effect depends on authority, applicability, interpretation, procedural context, and facts. Encoding a statutory sentence as a logical condition is one possible representation. A legal dataset, a network of citations, a probabilistic forecast, a decision table, and an executable eligibility calculator are different representations with different omissions. Their outputs should be interpreted according to their construction.
The historical publication by Sergot and colleagues (1986), The British Nationality Act as a Logic Program, documents an early encounter between statutory reasoning and logic programming. This historical reference establishes the existence of a computational treatment, not the current content of British nationality legislation. Formal logic is useful when the elements of a rule can be expressed as conditions, exceptions, and relationships. It can expose ambiguities in scope and show how an assumed conclusion follows from specified premises.
Consider a fictional eligibility rule. A resident qualifies if age is at least eighteen, income is below a threshold, and a valid application exists, subject to a separate hardship exception. A program must distinguish three cases: income known to be below threshold, income known to exceed it, and income not established. Treating missing information as a negative finding converts an evidentiary gap into a legal decision. Treating every hardship claim as true makes the exception automatic. A defensible representation identifies who determines hardship, what evidence is required, and what happens while the determination is unresolved.
Dates are equally consequential. Rules can change on different effective dates; a fact may be assessed at application, at payment, or at the event creating an entitlement. A system should preserve the applicable legal version and record the time of the relevant event. A single variable called current law cannot represent retrospective amendments, transitional arrangements, or an earlier contract governed by a different legal regime. Nor should a jurisdiction field be inferred from the location of a server.
The distinction between constitutive and evaluative rules also matters. A constitutive rule defines an institutional status or entitlement. An evaluative standard asks whether conduct meets a legal requirement such as reasonableness. The former may often admit a precise calculation; the latter can require context-dependent assessment. Both can be represented computationally to a degree, but executable logic must preserve unresolved matters and the institutional competence to decide them.
Mohun and Roberts (2020) describe the Rules as Code proposal for official machine-consumable rules. Official publication of code, where lawfully authorized, could reduce duplicated implementation effort. It still requires a defined legal relationship between textual and coded expressions, a process for amendments, and a remedy for inconsistency. Independently authored software ordinarily requires a distinct assessment of fidelity to governing sources. A program's internal consistency establishes only consistency relative to its specification.
A useful implementation record therefore identifies the source instrument, provision, jurisdiction, applicable period, factual inputs, interpretation, test cases, uncertainty, and decision authority. A change in any of these may require a different implementation. The record also allows an economic analyst to determine whether the scenario tested actually corresponds to the proposed legal change.
Data, legal measurement, and institutional selection
Data describing legal institutions emerge through institutional processes. Court opinions reflect litigation selection, publication rules, settlement, appeal, and access to counsel. Administrative records reflect applications received, eligibility screening, reporting practices, and enforcement priorities. A firm observes transactions it completed; an insurer observes claims submitted; a regulator observes investigations opened. These are not interchangeable samples of all relevant events.
For a court corpus, the unit of observation may be a case, opinion, vote, party, issue, citation, or procedural event. An opinion containing several disputed questions can generate several measurements but remains one institutional document. Treating those observations as independent may understate statistical uncertainty. Duplicate reports of the same case can inflate apparent sample size. A court's citation to an authority can indicate endorsement, distinction, criticism, or a procedural reference. A directed citation network is therefore a representation of documented referencing, not a complete ranking of legal authority.
The construction of a legal variable requires a codebook. For example, classifying a case as a claimant victory requires a decision about partial relief, procedural dismissal, remand, and multi-party outcomes. Human-coded examples can be used to estimate agreement and identify ambiguous categories. Disagreement is informative when it exposes genuine uncertainty rather than mere annotation error. An adjudication process should preserve the reasons for classifying disputed examples.
Text analysis can quantify document similarity, identify recurring topics, or classify relevant passages. Such measures may be sensitive to vocabulary changes, translation, digitization quality, and changes in publication practices. A sudden increase in the number of documents mentioning a phrase can reflect legal reform, changes in terminology, or improved access to digital archives. A well-designed analysis compares alternative measurements and evaluates known examples before inferring a change in underlying legal practice.
The same care applies to economic data. Observed prices may omit fees, rebates, quality differences, or contractual restrictions. A recorded zero may mean no transaction, a true zero amount, missing data, or a reporting threshold. Legal categories must be reconciled with economic measurement: household, taxpayer, employee, contractor, undertaking, and beneficial owner have different definitions and may change with jurisdiction.
Data governance includes both scientific provenance and legal permission. A researcher should identify the date of extraction, transformation rules, access restrictions, linkage keys, and coverage. Reproducibility does not require public disclosure of confidential personal information; it can use controlled access, synthetic examples, or independently reviewable summaries. The scientific requirement is a transparent account of the evidence and its limitations. The legal requirement depends on the applicable rules governing collection and processing.
Prediction, explanation, and causal identification
A predictor estimates an outcome conditional on available information. A causal analysis asks how the outcome would change under an intervention. A decision analysis selects an action under specified preferences, constraints, and uncertainty. A doctrinal analysis establishes the meaning and applicability of legal authorities. These tasks may share data or computational methods but answer distinct questions.
A model predicting litigation duration could help plan staffing or inform a client about risk. It does not establish whether changing a procedural deadline would shorten cases. The observed association between a deadline and duration may reflect differences in case complexity or court resources. Causal interpretation requires an identification argument: what comparison approximates the outcomes that would have occurred under the alternative rule, and why?
Random allocation, where ethically and legally permitted, can address selection by design. Observational designs use assumptions to recover relevant counterfactuals. A difference-in-differences comparison must consider preexisting trends, anticipation, contemporaneous reforms, and heterogeneous timing. A regression discontinuity design depends on credible continuity around a threshold and the absence of manipulation that destroys comparability. Instrumental variables require a defensible relationship with treatment and restrictions on alternative pathways. Angrist, Imbens, and Rubin (1996) identify a subgroup causal effect for instrumental-variable analysis under their assumptions. The resulting quantity need not represent an effect for the entire population.
A fictional example illustrates why this matters. After a court introduces electronic filing, average duration falls from 100 to 80 days. In another court without the change, duration falls from 110 to 95 days. The raw before-after change is minus 20 days; the comparison-adjusted change is minus 5 days. The latter is a candidate estimate only if the untreated court approximates the treated court's counterfactual trend and relevant assumptions hold. A simultaneous staffing increase confined to the treated court could explain the remaining difference. No actual court data are represented by these numbers.
Machine learning can assist by predicting intermediate quantities, adjusting for high-dimensional covariates, or discovering heterogeneity; it cannot establish identification by accuracy alone. A researcher should describe the causal estimand, the institutional mechanism producing treatment variation, the assumptions, diagnostics, and uncertainty. Prediction tasks, by contrast, need information cutoffs, out-of-sample evaluation, calibration, and comparison with realistic alternatives. An institution should assess each method according to the purpose for which it is proposed.
Finally, explanation has several meanings. A feature attribution may describe how a trained model arrived at a numerical output; an economic explanation proposes a mechanism; a legal explanation supplies authoritative reasons. An institution may need all three. A statistical explanation that identifies influential variables is insufficient to justify a decision whose legal ground must be established through admissible evidence and governing rules.
Simulation and computational institutional analysis
Simulation investigates the consequences of an explicit specification by executing it under alternative inputs or sequences. A deterministic simulation calculates outcomes from fixed conditions. Monte Carlo methods vary inputs or stochastic events to examine uncertainty. Agent-based models represent heterogeneous interacting actors and update rules. Structural economic models specify preferences, technologies, constraints, or equilibrium conditions to explore counterfactuals. The choice depends on the mechanism and question.
Epstein (2008) distinguishes explanation from prediction in Why Model?. His discussion is especially relevant where legal reforms have no historical counterpart. A model can clarify the assumptions necessary for a proposed consequence, identify an internally inconsistent argument, or generate questions for empirical research even when precise prediction is unavailable. This is different from treating simulated output as observed evidence.
In an agent-based model of civil litigation, parties might differ in wealth, legal knowledge, expected damages, risk tolerance, and access to counsel. A filing-fee change can be implemented as a modification of the entry cost. Cases that enter the system then proceed through settlement, adjudication, or withdrawal. Court capacity and delays may depend on the number and complexity of cases. This creates feedback: lower entry costs may increase filing, which may increase delay, which may alter future settlement incentives.
A defensible simulation separates parameters informed by data from assumptions chosen for exploration. Distributions of wealth, litigation cost, and expected damages should have empirical foundations where quantitative claims are made. The modeler should report behavior update rules, institutional timing, constraints, initial conditions, random seeds, simulation horizon, and results over repeated runs. Validation includes comparing outputs with patterns not used for calibration and testing whether plausible alternative specifications reverse the result.
A policy simulation can be useful even when several plausible mechanisms remain compatible with historical data. In that case, the appropriate conclusion is conditional: under one specification a fee reduction increases access substantially; under another, limited capacity offsets the benefit. Policy may then favor a pilot, additional capacity, or collection of better information. Reporting only the preferred specification conceals the decision-relevant uncertainty.
Numerical instability also deserves attention. Optimization algorithms may converge to a local optimum, simulations may depend strongly on update ordering, and equilibrium models can have multiple solutions. An analyst should distinguish a numerical failure from an institutional result. An apparent discontinuity might arise from a legal threshold, a genuine strategic response, or a software error. Testing simplified cases with known solutions helps separate these possibilities.
Model complexity should be justified by the decision it improves. More interacting variables increase descriptive richness but can make identification and interpretation harder. A simple transparent model may be preferable for explaining a statutory mechanism; a richer model may be necessary for market interactions. The purpose determines the appropriate level of detail.
Tax-benefit microsimulation and legal incidence
Microsimulation evaluates policy at the level of individual units such as persons, households, or firms. It applies encoded rules to their characteristics and aggregates the resulting amounts using an appropriate weighting scheme. It is particularly informative when taxes, contributions, credits, exemptions, and benefits interact nonlinearly.
The European Commission's Joint Research Centre documents EUROMOD's static microsimulation as a system applying coded policy rules to harmonized microdata. Its architecture enables comparable policy calculations while retaining national policy differences. OpenFisca's tax and benefit system documentation distinguishes simulation variables and legislative parameters. These are examples of a practical separation between computational infrastructure and jurisdiction-specific rule representations.
A fictional benefit illustrates the difference between legal entitlement and economic response. Suppose an annual benefit equals 2,000 units for incomes up to 10,000, then falls by 0.5 units for each additional income unit until it reaches zero at 14,000. Income tax is assumed to be 20 percent of all earnings. At earnings of 10,000, disposable income is 10,000 minus 2,000 tax plus 2,000 benefit, or 10,000. At earnings of 11,000, disposable income is 11,000 minus 2,200 tax plus 1,500 benefit, or 10,300. The marginal gain of 300 on an additional 1,000 implies an effective marginal withdrawal of 70 percent in this interval. The rates and rules are entirely hypothetical.
A reform that reduces the benefit withdrawal rate to 25 percent, retaining the same initial benefit and start threshold, would produce a benefit of 1,750 at earnings of 11,000 and disposable income of 10,550. At fixed earnings, the direct gain is 250. The calculation is a mechanical comparison. Whether a person works more, changes employment arrangements, applies for the benefit, or leaves an informal job requires a behavioral account. Revenue and benefit cost after adjustment can differ from fixed-characteristic results.
Microsimulation can reveal hidden distributional differences. A reform giving a uniform tax credit may benefit individuals with sufficient tax liability more than those without it, depending on refundability and interactions. A rule applying to households can create different consequences from one applying individually. An aggregate fiscal estimate should therefore be accompanied by distributions across income groups, household types, and other relevant categories. Appropriate categories depend on the legal purpose and available data.
Data and model limitations remain important. Survey incomes may differ from legally assessable incomes; assets and eligibility conditions may be incomplete; take-up and compliance may require estimation. A model's treatment of nonresponse and imputation should be recorded. Updating nominal parameters without aligning the data year and price level can misstate incidence. A policy simulation should identify whether results are ex ante statutory calculations, behavioral forecasts, or retrospective estimates of actual payments.
The practical contribution of computational law and economics here is a traceable translation from legal rule to distributional consequence. A reform can be tested for internal interactions before implementation, and public debate can distinguish arithmetic effects from contested behavioral assumptions. The outcome is a more inspectable policy argument, not an automatic determination of what justice requires.
Regulatory impact assessment and cost-benefit analysis
A regulatory impact assessment compares feasible institutional arrangements against a defined baseline. The baseline describes what is expected without the proposed intervention, including other scheduled changes. The relevant alternative is seldom a choice between regulation and a world without any law. Existing rights, administrative practice, market conditions, and overlapping obligations form the starting point.
The OECD's (2020) regulatory impact assessment principles discuss impact screening and evaluation. The archived US Office of Management and Budget Circular A-4 (2003) is a historical example of structured benefit-cost reasoning and alternative analysis. The latter is cited as the 2003 instrument, without asserting that all of its provisions govern every US agency or are currently operative.
A discounted net-benefit calculation can compare resource costs and benefits occurring at different times. Suppose a fictional regulation costs 100 units immediately and yields benefits of 60 units at the end of each of the next two years. With a 5 percent discount rate, the present value of benefits is 60/1.05 + 60/1.1025, or approximately 111.56. The net present value is approximately 11.56. At a 15 percent rate, the benefit value is about 97.54 and net value about minus 2.46. The example shows why discounting assumptions should be reported, particularly when costs are immediate and benefits delayed.
The analyst should avoid counting transfers as additional resources, combining gross and net values inconsistently, or attributing benefits to the intervention that would occur under the baseline. Benefits can include avoided physical harm, reduced delay, reduced administrative burden, or improved service quality, provided that measurement is defensible. Some impacts are difficult to monetize; their exclusion from a monetary subtotal does not establish that they are irrelevant. Qualitative evaluation should make the omitted dimension visible.
Distribution can be studied separately from aggregate net benefits. A reform may reduce administrative expenditure while imposing additional application costs on people least able to bear them. Average gains can conceal concentrated losses, and regional effects may be obscured by national totals. Analysts should report incidence and who bears costs, including parties whose data are missing. Where legal requirements protect a right or prohibit a class of action, the economic comparison should be conducted within the permissible alternatives.
Uncertainty is multidimensional. Parameter uncertainty concerns values such as demand elasticity; model uncertainty concerns the mechanism; scenario uncertainty concerns future conditions. Sensitivity analysis that varies one parameter at a time can be useful but may overlook correlated uncertainty. Joint scenarios and threshold analysis can indicate what assumptions would change the preferred option. Probabilistic analysis is justified only when distributions are adequately supported or transparently specified for illustration.
Ex post evaluation completes the institutional learning process. The assumptions that mattered most ex ante should inform data collection after implementation. If the objective was improved access to an administrative benefit, metrics should include successful applications, processing times, error rates, appeal outcomes, and experience of affected groups, not just number of transactions. The appropriate measure is linked to the legal and policy objective.
Judicial prediction, litigation, and access to justice
Court prediction is an important example of law as data. Katz, Bommarito, and Blackman (2017) report a Supreme Court prediction study using historical US Supreme Court data from 1816 to 2015, with 70.2 percent case-level and 71.9 percent justice-vote accuracy. The published abstract describes time-evolving prediction using information available before decisions. These are reported historical evaluation results, not a guarantee for contemporary cases, other courts, or new procedural contexts.
Economic applications include litigation budgeting, assessment of settlement options, court staffing, and study of institutional uncertainty. A probability of a favorable judgment is one component of a decision. Expected recovery also depends on remedy size, collection, legal costs, time, appeal, liquidity, risk aversion, and nonmonetary interests. A party may rationally pursue a case with negative expected monetary value to vindicate a right, establish precedent, or protect reputation. Another may settle a positive-value claim because it cannot finance litigation.
Consider a fictional dispute in which a claimant has a 60 percent probability of obtaining an award of 10,000 units, pays litigation costs of 2,000 regardless of outcome, and can accept an immediate settlement of 4,000. Expected net trial recovery before discounting is 4,000 units. For a risk-neutral claimant with identical timing and no other costs, the monetary expectation is equal. If recovery is delayed or uncertain, settlement may become preferable. If the claimant values a public decision or the defendant cannot pay, the comparison changes. The hypothetical calculation supplies a decision aid, not legal advice or a forecast of a real case.
Prediction quality should be assessed with metrics appropriate to the action. Accuracy can be misleading when most cases have one outcome. Calibration evaluates whether cases assigned a given probability have corresponding observed frequencies; discrimination measures whether higher-risk cases tend to receive higher scores. Subgroup performance, uncertainty, and drift matter if a system is used repeatedly. Evaluation should prevent leakage of information created after judgment and use temporal splits that resemble deployment.
Access-to-justice consequences require attention to asymmetry. Well-resourced parties may possess better models, more complete data, or the ability to exploit delays. Small claimants may encounter simplified systems that discourage filing on the basis of unreliable estimates. A predictor used to recommend settlement should disclose the outcome it predicts and the data it omits. It should permit a person to seek independent review rather than convert a probability into an entitlement determination.
The proper relationship between forecasting and adjudication is therefore limited but useful. A forecast describes a possible institutional outcome; judicial reasoning concerns legal authority and the facts of the case. An accurate estimate of what a court may do cannot substitute for an argument about what the law requires.
Risk assessment, selective labels, and fairness
Risk prediction becomes especially consequential when institutions allocate liberty, benefits, investigations, credit, or public services. A risk score predicts a defined outcome over a specified interval using selected information. A policy converts that score into an action. These steps create separate questions about measurement, accuracy, incentives, proportionality, and authority.
Kleinberg and colleagues (2018) examine bail in Human Decisions and Machine Predictions. The paper's discussion of selective labels is central: outcomes available for learning depend on prior institutional decisions. When people are detained, the behavior they would have exhibited if released is generally unobserved. Training a model only on outcomes observed under prior decisions may reproduce the selection mechanism. A comparison between algorithmic and human decisions must address this problem rather than equate observed labels with counterfactual truth.
Consider an invented eligibility audit. An agency investigated 100 applicants chosen because its existing screen flagged them; 20 were found ineligible. Among 900 uninvestigated applicants, no investigation outcome exists. The observed 20 percent detection rate in the investigated group cannot establish a 2 percent population prevalence, a 20 percent population prevalence, or a valid false-negative rate without additional information. A lawful audit design that includes a representative validation sample could improve the estimate; its costs and impacts also matter.
A model can be calibrated within groups while producing different error rates at a common threshold. Kleinberg, Mullainathan, and Raghavan (2017) identify fairness trade-offs in risk scores under specified mathematical conditions. This result concerns the simultaneous satisfaction of particular mathematical criteria. It does not determine which legal equality obligation applies, which metric is appropriate in a particular institutional context, or whether the underlying data represent a legitimate outcome.
The decision threshold should reflect the actual consequences of errors and legal constraints. A false positive in a low-impact recommendation is different from a false positive that leads to detention, denial of an entitlement, or an investigation. The people affected should be able to understand the grounds relevant to their case and access an effective mechanism for correction where applicable. A system that is statistically accurate in aggregate may still impose excessive burdens on individuals whose cases fall outside its training distribution.
Economic evaluation should include the cost of human review, the opportunity cost of administrative attention, burdens on affected persons, and errors not captured by the prediction target. A narrowly optimized objective can shift errors to less visible parts of the institution. For example, reducing processing time by increasing automatic denials may create expensive appeals and deter valid applications. An honest evaluation tracks the entire institutional pathway, including reversals and abandoned claims.
The analytical conclusion is that prediction performance, decision welfare, and legal legitimacy are distinct dimensions. Their interaction is the subject of computational legal-economic inquiry, rather than a reason to collapse one into another.
Algorithmic markets and competition
Algorithms can change market behavior by reducing search costs, enabling frequent price adjustments, improving demand estimation, or changing the information available to competitors. Some uses can intensify competition; others may reduce competitive pressure. Their effects depend on market concentration, entry, consumer switching, monitoring, product differentiation, strategic objectives, and legal constraints.
Calvano and colleagues (2020) study algorithmic pricing and collusion in a controlled repeated-price competition environment using reinforcement learning. The important methodological point is that simulation can investigate emergent strategic behavior under explicit conditions. A stylized simulated market is not evidence that every real pricing system behaves in the same way or that a particular firm has violated competition law. The publisher's abstract reports that the pricing agents learned to sustain prices above the competitive level in this modeled environment. Detailed effect magnitudes are not reproduced here.
Field evidence addresses a different problem. Assad and colleagues (2024) study the German retail gasoline market using inferred adoption and an instrumental-variable strategy. Their repository abstract reports margin effects for nonmonopoly stations and conditional effects in markets with few competitors. Adoption dates were not directly observed. The study therefore illustrates both the value of institutional market data and the importance of identification assumptions. Its findings cannot be generalized mechanically to all industries, all pricing algorithms, or all legal jurisdictions.
An economic account of coordination examines pricing patterns, responses to deviations, transparency, information exchange, market entry, and alternative explanations such as common cost shocks. A legal account evaluates the elements of the applicable prohibition and the quality of evidence supporting them. The European Commission's reproduction of TFEU competition provisions distinguishes Article 101, concerning specified forms of restrictive coordination, from Article 102, concerning abuse of dominance. Parallel price movements alone do not logically establish every element of a legal infringement. The legal characterization depends on the facts and applicable authorities.
The OECD (2017) algorithms and collusion background note frames these concerns as a competition-policy problem. A practical investigation might compare price behavior before and after adoption, account for cost and demand shocks, inspect market structure, and evaluate documentary or technical evidence about decision rules. The researcher should distinguish statistical detection of a pattern from proof of a legal predicate. An economic model can guide the collection of evidence but cannot declare liability independently of the governing legal test.
Remedies should also be evaluated dynamically. A hypothetical restriction on data exchange may reduce coordination opportunities but also reduce useful price information. A requirement to disclose pricing logic could aid oversight yet raise confidentiality concerns or reveal sensitive strategic information. The likely effect depends on who receives the information, what they can do with it, and the market's institutional structure. Computational analysis can compare these effects under transparent assumptions, while legal analysis establishes permissible obligations and procedural safeguards.
Platform markets add further complexity because rules governing ranking, access, fees, and contractual terms may influence both sides of a market. A model focusing only on prices can miss quality, attention, data use, and access. The legal-economic object is the market institution as organized through both contractual rules and computational systems.
Contracts, liability, and strategic interaction
Contract law allocates obligations, information duties, risk, and remedies. Economic modeling can study how contractual forms affect investment, performance, renegotiation, and dispute resolution. Computational representations can test how different terms operate when inputs and events change. Their usefulness depends on an accurate representation of the agreement and the legal environment.
A contract may contain fixed amounts, deadlines, formulas, contingencies, and notice requirements. These elements often lend themselves to executable representations. Open-textured duties, discretionary decisions, facts requiring proof, and mandatory legal protections require separate treatment. An automated payment function can implement an agreed formula while still needing a mechanism for disputes about whether the triggering event occurred.
A fictional procurement agreement pays 100 units on delivery, with a deduction of 5 units per day of delay up to 20 units, except where a recognized excuse applies. At six days of unexcused delay the deduction is capped at 20, so payment is 80. If the recognized excuse covers two of those days, the remaining four days produce the same deduction of 20. If it covers three days, the deduction falls to 15 and payment becomes 85. These calculations show that a seemingly simple executable term depends on classification of the relevant event, timing, exceptions, and cap. They establish no proposition about enforceability in any jurisdiction.
Economic analysis of liability similarly distinguishes prevention incentives from compensation and risk allocation. A party deciding whether to invest in safety compares private costs with expected private consequences, while society may bear additional harms. An automated assessment of accident frequency can inform prevention, but causal attribution, legally recognized duty, and admissible proof remain separate tasks. A model should identify whether a proposed rule changes behavior, insurance coverage, litigation frequency, or merely the party bearing an existing loss.
Strategic behavior matters where parties adapt to rules. A threshold may induce parties to restructure transactions, delay reporting, or change contract classification. A static calculation captures the initial effect but misses adaptation. Simulations can explore alternative response assumptions, and empirical data can inform the plausible range. The analyst should avoid labeling every adaptation unlawful; some responses are expressly permitted, while others may engage specific anti-avoidance or abuse doctrines. Legal status must be established in the relevant jurisdiction.
The costs of automated contracting also include dependence on software providers, disputed data feeds, correction procedures, and migration when the law changes. Savings in routine processing should be weighed against exceptional-case costs and the distribution of bargaining power. The question is whether a particular computational implementation improves the institution's operation under its legal and economic conditions.
Mechanism design, enforcement, and administrative capacity
Mechanism design asks how rules governing participation, information, allocation, and payments affect strategic behavior. Auctions, licensing, public procurement, and rationing are familiar applications. The legal institution sets the permissible mechanism; economic analysis investigates the incentives it produces. Computation can solve allocation problems, simulate bidding, and test behavior under alternative rules.
In a fictional allocation of ten permits, the administrator can use a queue, lottery, price auction, or needs-based scoring rule. A queue may reward ability to wait or access information. A lottery may equalize chances among qualified applicants but does not prioritize the highest-valued use. An auction allocates by willingness and ability to pay, which may diverge from public purpose. A needs-based system requires reliable and reviewable information. The preferable rule depends on the legal objective, constraints, administrative cost, and distributional consequences.
Administrative capacity is a scarce resource. A model of targeted enforcement might rank cases by expected recoverable amount per hour of investigation. This objective could improve collections but neglect serious nonmonetary harms or underrepresent groups whose cases are difficult to measure. It could also create feedback if investigations generate labels used in future targeting. A defensible policy incorporates statutory priorities, resource constraints, the cost of mistaken targeting, and the need for review.
A simple queue model illustrates why efficiency claims require a system boundary. Suppose an agency receives 100 applications each week and can resolve 110. If a software change increases screening throughput to 130 but downstream review can handle only 105, the overall sustainable throughput is still limited by downstream capacity. More rapid initial screening may enlarge a waiting queue without improving completion. The relevant outcome is time to a correct final disposition, including appeals and correction, not the speed of one stage.
Mechanism performance should be assessed under strategic adaptation. Participants may learn how to optimize scores, split applications, or time transactions. Some adaptations represent a successful incentive response; others expose defects in the rule design. The modeler must specify information available to participants and enforcement authorities, and distinguish expected conduct under the mechanism from factual claims about actual conduct.
Computational institutional design is most useful when it supports a process of comparison, testing, revision, and accountable implementation. It should preserve the authority responsible for deciding whether an allocation mechanism meets its public purpose.
Privacy, procedural safeguards, and legal authority
Computational legal-economic analysis often requires data that describe individuals, organizations, and their interactions. Legal permission to collect or process these data is distinct from the scientific value of the information. The fact that a variable improves a prediction does not establish permission to use it or the legitimacy of making it a decisive factor.
The European Union's 2016 GDPR automated individual decision-making provision is an example of a statutory concern with decisions based solely on automated processing that produce legal or similarly significant effects and associated exceptions and safeguards. The text is discussed as Article 22 in the dated May 4, 2016 version; a complete opinion on current application would require the relevant consolidated law, judicial interpretation, sectoral context, and national implementing rules. The EU's original 2024 Artificial Intelligence Act recital on justice-related AI identifies the risks of certain justice and democratic-process uses. Its application to a concrete system depends on operative provisions, classifications, exceptions, dates, and subsequent amendments. No claim about the current phase-in schedule is made here.
An economic case for data minimization can arise even apart from legal duties. Additional information entails collection, validation, security, retention, and correction costs. Sensitive data may increase harm if disclosed. A less intrusive variable might deliver similar performance. Data quality and governance should be compared with the marginal benefit of prediction improvement and with legal restrictions that cannot be overridden by monetary gains.
Procedural safeguards are part of institutional performance. A person facing a consequential adverse decision may need to correct facts, understand the grounds, present evidence, and obtain independent reconsideration. An explanation designed solely for technical specialists does not necessarily help a person establish why a decision is wrong. A useful case record includes input provenance, the relevant rule, the classification or calculation, material uncertainty, and any human judgment exercised.
Human involvement has economic and legal implications. Adding a reviewer to every case can be expensive and delay straightforward decisions. Delegating exceptional cases to appropriately trained officials can reduce routine burden, but a reviewer must have sufficient information, authority, and time to depart from the system output. Measuring only the number of reviews says little about their quality. Evaluation should examine correction rates, disagreement, delays, and the outcomes of contested cases.
Accountability also extends to suppliers and maintenance. The institution should know who controls the model version, rule representation, training data, and access privileges. Contractual arrangements should preserve auditability, correction, portability, and continuity. A system that performs well at procurement but becomes unmaintainable after a legal amendment may create high long-term institutional costs.
These issues are not external to economic analysis. They shape feasible institutional choices and the real resource costs of achieving legally defined objectives.
Validation, robustness, and reproducible research
A computational legal-economic study requires separate validation of legal representation, data, numerical implementation, inference, and policy interpretation. A test that confirms code runs cannot establish that the governing rule is correct. A benchmark that confirms predictive accuracy cannot establish causal validity. A calculation that confirms a net benefit cannot establish the legal availability of the intervention.
Legal validation begins with a traceable mapping from each material rule or interpretation to its authority, jurisdiction, and applicable period. Boundary cases are especially important: exactly at a threshold, immediately before and after a deadline, overlapping conditions, missing facts, and conflicting exceptions. A review should distinguish a defect in implementation from a disagreement about interpretation. When interpretation remains contested, alternative implementations can expose its consequences.
Data validation includes checks for duplicate units, coding errors, missingness, sampling coverage, temporal leakage, and inconsistent units. Comparisons with known totals can expose transformation problems but cannot establish all dimensions of quality. A researcher should record what data were excluded and why. An analysis of cases with complete records may answer a different question from one about the entire population.
Numerical validation includes unit tests, integration tests, checks against hand-computed examples, and sensitivity to parameters and random seeds. A simulation should retain its specification and sufficient configuration information to reproduce the reported runs. Where exact reproduction is impossible because data are restricted, the record should identify the restriction and allow qualified review through appropriate means.
Inferential validation examines whether the design supports the stated claim. Prediction requires an evaluation set not used for training, plausible baselines, performance measures related to use, and attention to change over time. Causal research requires a defensible identification argument and sensitivity to violations. Structural modeling requires plausible mechanisms and parameters, and a candid account of alternative specifications.
Decision validation concerns how outputs change institutional outcomes. A better risk score may not improve decisions when officials lack capacity to use it, when action thresholds are inappropriate, or when individuals respond strategically. Pilot evaluations should define endpoints that include errors, burdens, and distributional effects. Deployment monitoring should consider changing law and data, as well as changes in institutional behavior induced by the system itself.
Reproducibility is therefore a documented chain from source to conclusion. A practical package contains legal source versions, data definitions, assumptions, code or pseudocode, test cases, output tables, and a record of limitations. Independent reviewers should be able to identify which assumption or evidence would have to change to alter the conclusion. This is the foundation of credible computational legal-economic research.
Comparative synthesis and research agenda
The examples studied here differ substantially. Rules as Code addresses the translation and authoritative maintenance of legal instructions. Microsimulation studies mechanical incidence under encoded policies. Causal econometrics estimates effects under identification assumptions. Judicial prediction studies institutional behavior. Market simulations investigate strategic interactions. Competition doctrine supplies legal predicates. These areas share computational techniques, but their standards of evidence and their institutional implications differ.
A common practical mistake is to treat a successful result in one task as success in another. A perfectly calculated tax amount may reflect the wrong statutory version. A calibrated model may predict administrative decisions rather than rightful outcomes. A simulated market may show a mechanism capable of increasing prices without establishing the prevalence of that mechanism in practice. A measured aggregate surplus may omit procedural burdens and distributional effects.
The authorial synthesis of this dossier is that computational economic analysis becomes institutionally useful when its conclusion remains traceable across the legal rule, the represented mechanism, the evidence, and the contemplated decision. This is an analytical conclusion from the comparisons, not a newly named doctrine. It has a practical consequence: the relevant validation question changes with the task. Legal fidelity, predictive performance, causal identification, numerical robustness, distributional adequacy, and legal authority each require appropriate evidence.
A second consequence concerns counterfactuals. Laws are interventions in institutions that react to them. Calculating the immediate effect of a rule change is often necessary but may be insufficient to estimate its eventual effect. The analyst should distinguish first-order entitlement calculations, behavioral adaptation, market interaction, administrative feedback, and longer-term institutional change. Each added layer introduces assumptions; it should be included where it matters for the question and supported accordingly.
A third consequence concerns comparison across jurisdictions. The portability of a software engine is different from portability of rules, data, or findings. Common coding conventions may facilitate comparison, as the EUROMOD example shows, but jurisdiction-specific legal concepts and data definitions remain consequential. A comparative study should preserve those differences rather than mistake uniform representation for substantive equivalence.
Research opportunities follow directly. One is the construction of versioned legal datasets with explicit authority and applicability. Another is evaluation of the full institutional consequences of automated decisions, including appeal and correction. A third is integration of statutory microsimulation with credible behavioral estimates where policy decisions require both. A fourth is the study of competition and institutional responses using complementary simulation, field evidence, and legal analysis. These directions require collaboration between legal scholars, economists, domain experts, software engineers, and affected institutions.
The present dossier does not exhaust these programs or reproduce the cited empirical studies. Its declared scope is the conceptual and methodological foundations of computational law and economics, illustrated through selected published studies and transparent synthetic calculations. The limits of source access and the absence of independent empirical estimation define the level of claims advanced. Further detailed sectoral or current-law analysis should be directed to the specific question and jurisdiction.
Conclusion
Computational law and economics provides a means of examining legal institutions as structured systems that allocate rights, resources, incentives, risks, and decision authority. Its methods make institutional assumptions visible, permit controlled comparisons of alternatives, reveal distributional interactions, and offer ways to study behavior and strategic adaptation. Its applications range from executable eligibility rules to empirical evaluation, judicial prediction, and algorithmic-market analysis.
The principal findings are substantive. First, a computational representation of law must preserve authority, applicability, exceptions, temporal context, and the status of uncertain facts. Second, the economic effects of a legal rule require an account of behavior, information, transaction costs, and institutional capacity. Third, prediction and causal inference answer different questions, and neither automatically justifies an individual legal decision. Fourth, regulatory and distributional analysis should distinguish direct arithmetic effects from behavioral responses and incorporate the costs of errors, administration, and correction. Fifth, algorithmic changes in market and administrative behavior require both empirical evidence and jurisdiction-specific legal analysis.
The discipline's promise lies in the combination of explicit representation and institutional reasoning. An inspectable calculation can reveal interactions that prose obscures; a simulation can test the consequences of assumptions; causal evidence can inform the choice of intervention; a legal analysis can identify the permissible decision. Combining these forms of inquiry makes conclusions more useful precisely when their different evidentiary functions are preserved.
The task of computational law and economics is ultimately to improve the understanding of institutions and the quality of decisions about them. Computational capability expands the set of questions that can be investigated. Scientific rigor requires that the answers remain commensurate with their evidence, the governing law, and the real institutional consequences.
References
Angrist, Joshua D., Guido W. Imbens, and Donald B. Rubin. (1996). Identification of Causal Effects Using Instrumental Variables. Journal of the American Statistical Association, 91(434), 444–455. DOI: 10.1080/01621459.1996.10476902. Source
Assad, Stephanie, Robert Clark, Daniel Ershov, and Lei Xu. (2024). Algorithmic Pricing and Competition: Empirical Evidence from the German Retail Gasoline Market. Journal of Political Economy, 132(3), 723–771. DOI: 10.1086/726906. Source
Athey, Susan, and Guido W. Imbens. (2019). Machine Learning Methods That Economists Should Know About. Annual Review of Economics, 11, 685–725. DOI: 10.1146/annurev-economics-080217-053433. Source
Calvano, Emilio, Giacomo Calzolari, Vincenzo Denicolò, and Sergio Pastorello. (2020). Artificial Intelligence, Algorithmic Pricing, and Collusion. American Economic Review, 110(10), 3267–3297. DOI: 10.1257/aer.20190623. Source
Coase, Ronald H. (1992). The Institutional Structure of Production. American Economic Review, 82(4), 713–719. Nobel lecture delivered December 9, 1991. Source
Epstein, Joshua M. (2008). Why Model? Journal of Artificial Societies and Social Simulation, 11(4), 12. Source
European Commission, Directorate-General for Competition. (n.d.). Competition Law Treaty Articles: Articles 101–106 TFEU. Official treaty reproduction, accessed November 24, 2026. Source
European Commission, Joint Research Centre. (n.d.). What Is EUROMOD? Official model documentation, accessed November 24, 2026. Source
European Parliament and Council of the European Union. (2016, April 27). Regulation (EU) 2016/679 (General Data Protection Regulation). Official Journal L 119, 4 May 2016, 1–88, Article 22. Source
European Parliament and Council of the European Union. (2024, June 13). Regulation (EU) 2024/1689 (Artificial Intelligence Act). Official Journal L, 2024/1689, 12 July 2024, recital 61. Source
Frankenreiter, Jens, and Michael A. Livermore. (2020). Computational Methods in Legal Analysis. Annual Review of Law and Social Science, 16, 39–57. Source
Katz, Daniel Martin, Michael J. Bommarito II, and Josh Blackman. (2017). A General Approach for Predicting the Behavior of the Supreme Court of the United States. PLOS ONE, 12(4), e0174698. DOI: 10.1371/journal.pone.0174698. Source
Kleinberg, Jon, Himabindu Lakkaraju, Jure Leskovec, Jens Ludwig, and Sendhil Mullainathan. (2018). Human Decisions and Machine Predictions. Quarterly Journal of Economics, 133(1), 237–293. DOI: 10.1093/qje/qjx032. Source
Kleinberg, Jon, Sendhil Mullainathan, and Manish Raghavan. (2017). Inherent Trade-Offs in the Fair Determination of Risk Scores. In 8th Innovations in Theoretical Computer Science Conference, LIPIcs 67, 43:1–43:23. DOI: 10.4230/LIPIcs.ITCS.2017.43. Source
Mohun, James, and Alex Roberts. (2020). Cracking the Code: Rulemaking for Humans and Machines. OECD Working Papers on Public Governance, No. 42. Paris: OECD Publishing. DOI: 10.1787/3afe6ba5-en. Source
OECD. (2017). Algorithms and Collusion: Competition Policy in the Digital Age. OECD Roundtables on Competition Policy Papers, No. 206. Paris: OECD Publishing. DOI: 10.1787/258dcb14-en. Source
OECD. (2020). Regulatory Impact Assessment. OECD Best Practice Principles for Regulatory Policy. Paris: OECD Publishing. DOI: 10.1787/7a9638cb-en. Source
Office of Management and Budget. (2003, September 17). Circular A-4: Regulatory Analysis. Executive Office of the President, United States. Source
OpenFisca. (n.d.). Tax and Benefit System. OpenFisca documentation, accessed November 24, 2026. Source
Sergot, Marek J., Fariba Sadri, Robert A. Kowalski, Frank Kriwaczek, Peter Hammond, and H. T. Cory. (1986). The British Nationality Act as a Logic Program. Communications of the ACM, 29(5), 370–386. DOI: 10.1145/5689.5920. Source