library(handwriter) library(magick) # knitr::opts_chunk$set(fig.pos = "H", out.extra = "")
The analyzed questioned document(s) are listed in Table 1.
qd_paths <- list.files(file.path(params$main_dir, "data", "questioned_docs")) knitr::kable( data.frame("File" = basename(qd_paths)), booktabs = TRUE, caption = "Questioned document(s)" )
The estimated writer profile(s) for each questioned document are displayed in Figure 1. The handwriter R package estimates the writer profile from a document with the following steps:
The cluster fill counts are an estimate of the writer's profile.
handwriter::plot_cluster_fill_counts(params$analysis, facet = TRUE)
Three known writing samples were collected from each person of interest. The scanned PNG files of the known writing samples are listed in Table 2.
known_docs <- list.files(file.path(params$main_dir, "data", "model_docs"), pattern = ".png", full.names = TRUE) knitr::kable( data.frame("File" = basename(known_docs)), booktabs = TRUE, caption = 'Known writing samples from persons of interest.' )
Each known writing sample was processed with the handwriter package with the same steps as the questioned document:
Next, handwriter fit a statistical model, called a Bayesian hierarchical model, to the cluster fill counts of all known writing samples to estimate the true writer profile of each person of interest. The estimated writer profiles of the persons of interest are displayed in Figure 2.
handwriter::plot_credible_intervals(params$model, facet=TRUE)
The handwriter package used the statistical model and the estimated writer profile(s) from a questioned document(s) to calculate the posterior probability that each person wrote the questioned document(s). Table 3 shows the posterior probabilities of writership for each questioned document and each person of interest. Each row in the table corresponds to a person of interest and each column corresponds to a questioned document. The posterior probability in each column sums to 100%.
pp <- make_posteriors_df(analysis = params$analysis) knitr::kable( pp, booktabs = TRUE, caption = 'The posterior probability that each person of interest wrote each questioned document.' )
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.