Statistical approaches to the study of protein folding and energetics