Statistics for Engineering a protein for peptide detection and allosteric activation