That’s exactly what an experiment is.
https://dictionary.cambridge.org/us/dictionary/english/exper...