Learn R Programming

comparison: A package for computing likelihood ratios for univariate and multivariate evidence.

This package is for computing the weight of the evidence, i.e. the likelihood ratio (LR) for trace evidence which has been quantified with some instrument. For example a forensic scientist might be have determined the refractive indices of fragments of glass taken from a crime scene and fragments of glass recovered from the clothing of the suspected breaker. This package evaluates the probability (density) of the evidence, $E$, (the RI values from the two samples) under the hypothesis $H_p$ that they originated from the same source, and alternatively under the hypothesis $H_d$ that they originated from another source. The $LR$ is the ratio of these two quantities, i.e. $$LR = \frac{p(E|H_p)}{p(E|H_d)}.$$ A $LR$ which is greater than one indicates that the evidence supports $H_p$, and a $LR$ which is less than one indicates that the evidence supports $H_d$.

The computation can use either univariate or multivariate observations of a physical object. For example trace element measurements, and a similar set of uni/multivariate observations from another object, and calculates a likelihood ratio for the propositions that the first item came from the same source as the second given some population data.

Acknowledgements

In a package of functions such as these which have undergone a long development over a number of years, it is inevitable that a number of people, besides those directly cited, have helped to correct and add to the code. These people are (in alphabetical order): Ivo Alberink (NFI), Anabel Bolck(NFI), Sonja Menges (BKA), Geoff Morrison (Aston), Tereza Neocleous (Glasgow), Anders Nordgaard (SKL), Brad Patterson (George Mason), Phil Rose (ANU), Agnieszka Rzepecka (Jagiellonian), Marjan Sjerps (NFI) and Hanjing Zhang (Edinburgh).

References

Aitken, C.G.G. & Lucy, D. (2004) Evaluation of trace evidence in the form of multivariate data. Applied Statistics: 53(1):109-122.

Copy Link

Version

Install

install.packages('comparison')

Monthly Downloads

197

Version

1.0.8

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

James Curran

Last Published

August 25th, 2023

Functions in comparison (1.0.8)

glass

Glass composition data for seven elements from 200 glass items.
two.level.normal.LR

Likelihood ratio calculation - normal
plot.ece

An S3 plot method for objects of class ece
calcLR

Calculate the likelihood ratio
print.compitem

S3 method for class compitem
two.level.density.LR

Calculate the likelihood ratio using multivariate KDEs
two.level.components

Compute integrated means and covariances
two.level.comparison.items

Create a compitem object.
logistic.apply.calibration

Calculate the calibrated LRs with the model precomputed
two.level.lindley.LR

Likelihood ratio calculation using Lindley's approach
logistic.calibrate.get.model

Compute and returns the logistic regression for a dataset
calc.ece

Empirical cross-entropy (ECE) calculation
calibrate.set

Calculate the calibrated set of idea LRs
makeCompVar

Compute integrated means and covariances
comparison-package

comparison: Multivariate Likelihood Ratio Calculation and Evaluation
makeCompItem

Create a compitem object.
logistic.calibrate.set

Calculate the calibrated set of LRs with the logistic regression