Research cycle (observation, theory, hypothesis, prediction, test)
How does one get from an observation to a test? An observation leads to a theory, from it follows a hypothesis, from that a prediction which is tested with data. The result is again an observation, and the circle starts over.
Example: After short nights people seem slower (observation). Theory: lack of sleep lengthens reaction time. Prediction: someone who sleeps 4 hours has the higher mean reaction time than someone who sleeps 8 hours.
Caution: The prediction must stand before the measurement and name a direction. Whoever formulates it only after the result is HARKing.