This is called induction, and the classic example of this type of reasoning involves checking the colour of as many swans as you can find, then extrapolating a rule to say “all swans are white”.
Inductive reasoning is a branch of logic. In a valid inductive argument, the conclusion (consequent) is believed to be true on the basis of its antecedents. For example, when all swans are observed to ...