Raid/Rally/Return difficulty

How is monster difficulty level determined for Raid/Rally/Return events? I’m assuming it’s based off of hero level or maybe renown, but how? Are monsters generally 3 levels above you? 5 levels? 10 levels? There must be some formula.

Raids used to be average party level, but as far as I can tell it’s all based on renown now.