Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

HTTPS

Secure .gov websites use HTTPS
A lock (LockA locked padlock) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

    • Environmental Topics
    • Air
    • Bed Bugs
    • Cancer
    • Chemicals, Toxics, and Pesticide
    • Emergency Response
    • Environmental Information by Location
    • Health
    • Land, Waste, and Cleanup
    • Lead
    • Mold
    • Radon
    • Research
    • Science Topics
    • Water Topics
    • A-Z Topic Index
    • Laws & Regulations
    • By Business Sector
    • By Topic
    • Compliance
    • Enforcement
    • Laws and Executive Orders
    • Regulations
    • Report a Violation
    • Environmental Violations
    • Fraud, Waste or Abuse
    • About EPA
    • Our Mission and What We Do
    • Headquarters Offices
    • Regional Offices
    • Labs and Research Centers
    • Planning, Budget, and Results
    • Organization Chart
    • EPA History

Breadcrumb

  1. Home
  2. Causal Analysis/Diagnosis Decision Information System (CADDIS)

Computing Inferences: Maximum Likelihood Inferences

  • Introduction
  • Using Taxon-Environment Relationships
  • Estimating Taxon-Environment Relationships
  • Computing Inferences
  • R Scripts
Helpful Links
On This Page
  • Multivariate Models
  • Identifying the Maximum Likelihood Point 
Topics In Computing Inferences
  • Overview 
  • Weighted Average Inferences
  • Maximum Likelihood Inferences
  • Categorical Tolerance Data
Other Pages And Websites
  • Download Files and Set Up R
  • Estimate Taxon-Environment Relationships Using taxon.env():  R Script
  • Using Existing Taxon-Environment Relationships

PECBO Appendix Site Map

Maximum Likelihood Inferences

Maximum likelihood (ML) inferences use taxon-environment relationships of taxa that are present and taxa that are absent from a site to estimate the most likely environmental conditions. The simplest ML inference would use information from a single taxon.

In Figure 16, the relationship between the probability of capturing the genus Heterlimnius and stream temperature is shown. However, the vertical axis has been re-labeled to reflect the new question we are using the taxon-environment relationship to answer: what is the most likely temperature at the site, given that Heterlimnius is observed? In this case, the most likely temperature would be approximately 8° C, where the likelihood is maximized.

Likelihood curve associated with Heterlimnius being present.
Figure 16. Likelihood curve associated with Heterlimnius being present.

What if Heterlimnius is absent from the site?

We can easily obtain the likelihood curve for an absent species by substracting the taxon-environment curve from 1 (shown in Figure 17). A stream temperature of 8° C is the least likely possibility, whereas temperatures above ~20° Care all equally likely.

Likelihood curve associated with Heterlimnius being absent.
Figure 17. Likelihood curve associated with Heterlimnius being absent.

Additional taxa can be incorporated into the inference by multiplying the likelihood curves associated with each taxon. In Figure 18, the ML inference that results from both Heterlimnius and Malenka being present at a site is shown. The red line shows the product of likelihood curves for Heterlimnius and Malenka, rescaled such that its maximum value is 1. In this case, the ML inferred temperature is approximately 11° C.

Figure 17.
Figure 18. Likelihood curve given by Heterlimnius and Malenka being present. Heterlimnius shown as a solid line and Malenka shown a dashed line. Composite likelihood curve shown as a red line.
Incorporating absences in multi-taxa inferences is straightforward. When Heterlimnius is absent and Malenka is present, ML inferred temperature is approximately 16° C (Figure 19).
Likelihood curve given by Heterlimnius being absent and Malenka being present.
Figure 19. Likelihood curve given by Heterlimnius being absent and Malenka being present. Heterlimnius shown as a solid line and Malenka shown as a dashed line. Composite likelihood curve shown as a red line.

ML inference also offers the opportunity to quantify confidence limits on the inference, by examining the shape of the final likelihood curve.


Multivariate Models

The same approach can be used to compute inferences for multivariate taxon-environment relationships. The likelihood function for a given taxon would be a function of as many variables as used to define the taxon-environment relationship. The simultaneous effects of stream temperature and bedded fine sediment (SED) on taxon occurrences were modeled in the western U.S. These taxon-environment relationships were then used to infer temperature and SED from biological observations in Oregon. The comparison between inferences and measurements are shown in Figure 20.

Comparisons between inferred and measured temperature and sediment in OR.
Figure 20. Comparisons between inferred and measured temperature (degrees C, left plot) and sediment (percent sand/fines, right plot) in OR. EMAP-West data used to develop taxon-environment relationships. 1:1 relationship shown as dashed line.

Identifying the Maximum Likelihood Point

As illustrated in the examples above, computing a ML inference requires that one find the point along the likelihood curve where its value is maximized (for a single variable taxon-environment relationship), or find the point within a multi-dimensional surface where likelihood is maximized (for multivariate taxon-environment relationships). In general, no analytical solution exists for this problem, and an iterative, numerical approach must be used to identify the maximum point. The function mlsolve provided in the R library bio.infer solves the maximum likelihood problem, given biological observations and a set of regression coefficients that describe taxon-environment relationships.

At the present time, the script for ML inference only works with parametric regressions. The ML solution to non-parametric taxon-environment relationships is considerably more difficult.

To use mlsolve with locally-derived taxon-environment relationships, you must use the script taxon.env (see the R Scripts tab) to analyze your local data and properly format the resulting models.

Alternatively, you can use maximum likelihood methods to infer environmental conditions using existing taxon-environment relationships from bio.infer (see the Using Existing Taxon-Environment Relationships tab).

Causal Analysis/Diagnosis Decision Information System (CADDIS)

  • CADDIS Home
    • About CADDIS
    • Frequent Questions
    • Publications
    • Recent Additions
    • Related Links
    • CADDIS Glossary
  • Volume 1: Stressor Identification
    • About Causal Assessment
    • Getting Started
    • Step 1. Define the Case
    • Step 2. List Candidate Causes
    • Step 3. Evaluate Data from the Case
    • Step 4. Evaluate Data from Elsewhere
    • Step 5. Identify Probable Causes
  • Volume 2: Sources, Stressors and Responses
    • About Sources
      • Urbanization
    • About Stressors
  • Volume 3: Examples and Applications
    • Analytical Examples
    • Worksheet Examples
    • State Examples
    • Case Studies
    • Galleries
  • Volume 4: Data Analysis
    • Selecting an Analysis Approach
    • Getting Started
    • Basic Principles & Issues
    • Exploratory Data Analysis
    • Basic Analyses
    • Advanced Analyses
    • PECBO Appendix
    • Download Software
    • Data Analysis Topics (A -Z)
  • Volume 5: Causal Databases
    • Learn about CADLink
Contact Us about CADDIS
Contact Us to ask a question, provide feedback, or report a problem.
Last updated on February 7, 2025
  • Assistance
  • Spanish
  • Arabic
  • Chinese (simplified)
  • Chinese (traditional)
  • French
  • Haitian Creole
  • Korean
  • Portuguese
  • Russian
  • Tagalog
  • Vietnamese
United States Environmental Protection Agency

Discover.

  • Accessibility Statement
  • Budget & Performance
  • Contracting
  • EPA www Web Snapshot
  • Grants
  • No FEAR Act Data
  • Plain Writing
  • Privacy
  • Privacy and Security Notice

Connect.

  • Data
  • Inspector General
  • Jobs
  • Newsroom
  • Regulations.gov
  • Subscribe
  • USA.gov
  • White House

Ask.

  • Contact EPA
  • EPA Disclaimers
  • Hotlines
  • FOIA Requests
  • Frequent Questions
  • Site Feedback

Follow.

Environmental Protection Agency logo
www.epa.gov Feedback Survey

Welcome! Please share your feedback on how we can make www.epa.gov work better for you.

A red asterisk (*) indicates a required field.

Success

Thank you. Your feedback has been received.

Error

alert message

Required Questions - page 1 of 2
question_55203_answer_01
*

400 characters allowed
Would you like to take two more minutes to answer more questions to help us improve our services?
Yes, keep going →
← Back
Optional questions - page 2 of 2
How would you describe yourself?
400 characters allowed
400 characters allowed
400 characters allowed
U.S. flag

An official form of the United States government. Provided by Touchpoints
OMB Approval #1090-0008 · Expiration Date 11/30/2027