How to know the right price of a stock

How do analysts determine the fair value of a stock?