Nested Sampling Method In Statistics