Mental Accounting: This is when someone takes a big risk in one area, and then tries to compensate by not taking any risk in other areas, Dalbar says. You end up with “lumpy” results because you have not balanced the types of risk you’re taking in your portfolio.

Fear of Regret: Regret is an incredibly painful thing, and because we fear it, Dalbar says investors treat errors of commission more seriously than errors of omission. For example, you buy a stock and it falls in price. Its fundamentals and balance sheet also deteriorate, to the point that it’s no longer a good stock to own. Cash out and take the loss, and you’ll have to deal with feeling regret over buying the stock in the first place — an error of commission. So instead you hang onto the stock, hoping that it will bounce back. Not selling is an error of omission that likely is worse, but many investors do just that because they fear dealing with the finality and regret of locking in the loss.

Confirmation Bias: Studies show that people are more likely to look for facts and data that support their initial thesis than they are to find evidence to refute it. If you have a good feeling about a stock, you’re likely to focus on information that supports that feeling.

What To Do: These biases tend to cause the most trouble when markets get turbulent. And when the market gets rocky, mistakes are easy to make. How do you avoid falling into these traps? The best way I know of is by having an investment policy statement, including your trading rules for dealing with market downturns, before the market starts to get too rocky. The more you prepare for turbulent times, the less likely you are to panic when trouble begins.

When times get tough and the market starts falling, having a plan in place with exit strategies and trading rules will help you focus on the long-term and not get swayed by stress or emotion. Emotion and behavior biases can also take over when you’re dealing with an undiversified portfolio. If you have too much of your money invested in just a few positions, losses can add up quickly. It’s far better to have your money spread out over many different types of investments. That way, if something you own gets really trashed, chances are that other things in your portfolio will come to the rescue.