It is commendable that you want ot learn this for yourself, however, there are many resources and without knowing your difficulties or context it is not possible to make a good suggestion.
If you are learning from scratch - then any introductory probability and statistics text will do the trick. You are looking for "hypothesis testing".