@Thomas,
I found the equations it took some time as I do not have the old notebooks index as well as I should but this was long before computers allow fast indexing.
The main law is call Maxwell's speed distribution law and it give the good old bell curve and is fairly long for me to post it here. You can google it however at whim.
The short version give the RMS value of gas speed and is as follow Vrms=(3RT/M)^1/2 and as you can see when you increase the temperate or more important when you decrease the mass of the gas you increase the speed of the gas overall and a higher percent of the total gas will be going fast enough to leak out to space.
So once more solar wind break gas molecules up and therefore allow a far greater leaking of gas into space then if the solar wind was block from hitting the upper air.