The way this sort of research works is by modeling weather under different conditions and determining that certain weather patterns are statistically more likely under conditions consistent with global warming. This isn't just "it is hot for a week so that must be global warming". It is "the air patterns that are required for this sort of thing to happen are highly associated with higher average global temperatures". The causality is going in the other direction.