A substitution matrix gives for every pair of amino acids as a log-odds score:
where is the frequency with which and are found aligned in trusted alignments of related proteins, the frequency with which they would be paired by chance, and a scale chosen to make the entries convenient integers. A positive score means the pair occurs more often in homologues than by chance; the identity scores are largest for rare amino acids (tryptophan , cysteine in BLOSUM62) and smallest for common ones (leucine , alanine ), and conservative substitutions (isoleucine–valine ) score positive while radical ones (tryptophan–glycine ) score negative. The PAM matrices (Dayhoff, 1978) were derived from closely related proteins and extrapolated to greater distances by matrix multiplication; the BLOSUM matrices (Henikoff and Henikoff, 1992) were counted directly in blocks of aligned sequences clustered at a given identity — BLOSUM62 from blocks at — and are the default because they were measured, not extrapolated, at the distance where they are used.