Investing in stocks does not have to be the same as gambling. However, there are certainly some similarities: for example, in both activities you have to make a choice that involves risk. Also, both gamblers and investors apply risk analysis. Reducing risk as much as possible to maximize profits plays a role in both activities.