Deterence is a hypothetical result and often such studies are untrue.
Because there have been no would-be criminals who have confessed that they decided not to murder because of the death penalty, it is hard to realistically analyze the effect of Capital Punishment as a effective way to prevent future murderers.