How is a stock price determined?

For example, if a stock goes from $10 to $20 in 1 month, how is that determined? Is it because a companies net profit increases or income increases?
8 answers 8