In the present study, we investigate the relation between temperature (
$T^{\prime}$) and streamwise velocity (
$u^{\prime}$) fluctuations by assessing the state-of-the-art Reynolds analogy models. These analyses are conducted on three levels: in the statistical sense, in spectral space and via the distribution characteristics of temperature fluctuations. It is observed that the model proposed by Huang et al. (HSRA) (1995 J. Fluid Mech. 305, 185–218), is the only model that works well for both channel flows and turbulent boundary layers in the statistical sense. In spectral space, the intensities of
$T^{\prime}$ at small scales are discovered to be larger than the predictions of these models, whereas those at scales corresponding to the energy-containing eddies and the large-scale motions are approximately equal to and smaller than the predictions of the HSRA, respectively. The success of the HSRA arises from this combined effect. In compressible turbulent boundary layers, the relationship between the intensities of positive temperature and negative velocity fluctuations is found to be well described by a model proposed by Gaviglio (1987 Intl J. Heat Mass Transfer, 30, 911–926), whereas that between negative temperature and positive velocity fluctuations is accurately depicted by the HSRA. The streamwise length scale, rather than the spanwise length scale, is found to be more suitable for characterising the scale characteristics of the
$u^{\prime}-T^{\prime}$ relation in spectral space. Combining these observations and a newly proposed modified generalised Reynolds analogy (Cheng & Fu 2024 J. Fluid Mech. 999, A20), models regarding the relations in spectral space for both compressible channel flows and turbulent boundary layers are developed, and a strategy for generating more reliable temperature fluctuations as the inlet boundary condition for simulations of compressible boundary layers is also suggested.