The ease of dehydration can be determined by seeing the stability of carbocation as intermediate.
(IV) is most stable due to resonance followed by(III) which is allylic carbocation. Next is(II) as it is a secondary carbocation and least stable is (I) as it is a primary carbocation.
Alternatively, ease of dehydration can be determined from the stability of the product formed.