There are multiple ways to do this analysis, and not all of them come from evaluating them as investments. Stocks represent an ownership stake in the firm, and you can use any method you want to give a number to what the firm's "value" is. This could be by reading financial statements, comparing it to other existing companies, seeing how much their operating cash flow is and so on.