According to the kinetic theory of gases, the average kinetic energy per molecule of an ideal gas depends only on the temperature and is given by:
\[
KE_{\text{avg}} = \frac{3}{2} k_B T
\]
Since the temperature is the same for both hydrogen and nitrogen gases, their average kinetic energies per molecule are equal, leading to the ratio \( 1:1 \).