Dealing with Uncertainties: A Guide to Error Analysis