Caratheodory class functions f(z) are described having the property th
at the selfadjoint part of f(A) is positive definite for every contrac
tion A whose spectral radius is less than 1. Analogous results are obt
ained for bounded analytic functions in the unit disc, and for the Nev
anlinna class. Applications to Markov chains are indicated.