While solving an electrochemistry problem I had to calculate the reaction quotient of this reaction:
$$\ce{2Fe(s) + 4H+(aq) + O2(g) -> 2Fe^{2+} (aq) + 2H2O (l)}$$
It turns out to be: $$\ce{Q=\dfrac{[\ce{Fe}^{2+}]^{2}}{[\ce{H+}]^4p\ce{O2}}}$$
where square brackets mean concentration and $p$ denotes partial pressure. Here's what I do know: activity of solid and liquid components is 1, and that of aqueous components is their concentration.
However, why is the activity of gaseous components their partial pressure? Is this fact experimental or can it be derived?