A hypothesis is an educated explanation of an observation or phenomenon. The scientific method is a set of steps to follow when setting up a scientific experiment. Forming a hypothesis is one of the steps in the scientific method. A hypothesis should always be testable and logical. For example, you observe that you have more squirrels in your yard when the bird feeder in your yard is full of bird seed than when the feeder is empty. Your hypothesis could be:
If there is bird seed in the bird feeder then there will be more squirrels in the yard
The hypothesis is logical based on your observations and is also testable. You could set up an experiment and record data to confirm if your hypothesis is correct or incorrect.