How are UX metrics mathematically statistically calculated?

I am new here on StackExchange. I am curious, since I working on something very UX-related. And I know that there do exist different metrics for measuring the outcome of UX. However, how are these mathematically calculated? E.g. are there any equations/formulas that one can use and apply in practice?