## License Information

Use of this function requires a license for Whitebox Workflows for Python Professional (WbW-Pro). Please visit www.whiteboxgeo.com to purchase a license.

## Description

This tool performs a binary classification accuracy assessment, using the Phi coefficient. The Phi coefficient is a measure of association for two binary variables. Introduced by Karl Pearson, this measure is similar to the Pearson correlation coefficient in its interpretation and is related to the chi-squared statistic for a 2×2 contingency table. The user must specify the names of two input images (`input1` and `input2`), containing categorical data.

## Function Signature

`def phi_coefficient(self, raster1: Raster, raster2: Raster, output_html_file: str) -> None: ...`

## Project Links

WbW Homepage User Manual Support WbW