Logical fallacy

Texas sharpshooter fallacy

The speaker looks through data for an impressive cluster or pattern, chooses categories or boundaries after seeing it, and then presents the finding as if those criteria had been set in advance.

A target painted after the fact around a preexisting cluster of holes

Examples

After seeing the scattered holes, I drew a target around the tightest cluster and announced I had aimed there.
The target was chosen after seeing the results. The cluster cannot show accuracy against a target specified in advance.
I tried fifty time windows and drew a circle around the one that favored my plan, treating it as the window I meant to test all along.