Without a doubt, one of the market's most volatile sectors is the mining industry. The recent downturn in the price of precious metals has sent shares of mining companies spiraling downwards. However, for contrarians this has presented some great opportunities, particularly in the case of Alamos Gold (AGI 0.46%) and Lundin Mining (LUNMF 0.54%). That said, recent declines have also created a number of so-called "value traps," and I feel that IAMGOLD (IAG -2.96%) is an example of this.

Every company is different
Every mining company is different: Some have survived the recent downturn in the sector better than others. In particular, miners with a combination of low costs and high-quality assets are likely to be able to ride out the tough times easier and benefit more from the good times.

Alamos gold has two main projects, one in Mexico (Mulatos) and two others in Turkey (Agi Dagi, Kiralzi). Full-year 2013 results have not been finalized, but the company forecasts that its cash cost per ounce of gold produced will be in the region of $500 to $520 for the year and the all-in-sustaining-cost, or AISC, will be in the range of $780 to $825 for the same period.

Unfortunately, for 2014 the company expects costs to rise. Alamos' management have predicted that the cash cost per ounce of gold mined will be in the region of $700 to $740 during 2014, and the AISC will be in the range $960 to $1,000 for the same period. This rise in costs is due, in part to a projected fall in output and grade of ore mined as the company transitions to underground mining at two of its mines. However, the company is also developing two more low-cost mines, which should push down the cost of production from the end of 2014 onwards.

So Alamos' current production is low-cost, and after a slight rise, production costs are expected to remain low in the future.

Other things to consider
It's not just current production that you should consider in a mining company; you also need to take a look at plans for future growth and how the company plans to accomplish them. Now strictly speaking, Lundin Mining is not a gold miner, but the company has some impressive plans for growth, and this makes the company highly attractive to both investors and predatory peers.

For example, Lundin mainly produces copper, zinc, lead and nickel and over the next three years until 2016, the company plans to increase output of each metal by 23%, 19%, 20%, and 280% respectively. To do this Lundin will spend $460 million during 2014, which it can easily afford. The company generated $100 million in cash from operations during the first nine months of 2013 and has a net debt-to-equity ratio of only 2% as reported at the end of the fiscal third quarter.

Now, personally, I'm not a big fan of far-out analysts' earnings forecasts but current predictions suggest that thanks to this expansion plan Lundin is set to more than double net income over the next 2 to 3 years.

But while Lundin and Alamos look like great picks, investors need to be aware of 'dogs with fleas' in the mining sector and IAMGOLD may turn out to be one of these dogs.

A value trap
Back in December of last year, I flagged IAMGOLD, warning investors that the company's dividend payout did not look sustainable. A day later, the company cancelled its dividend for "the foreseeable future."

This was followed by further bad news in the form of the company's 2013 production guidance and outlook for 2014, both of which were dismal. The company revealed that AISC for 2013 would be at the high end of estimates of approximately $1,235 per ounce, and guidance for 2014 was not much different with the AISC of production per ounce expected to be in the region of $1,150 to $1,250.

Further, IAMGOLD's capital spending budget for 2014 is expected to be in the region of $400 million, but management has stated that they believe gold output for full-year 2014 will be in the region of 830,000 to 900,000 ounces, only a marginal increase on 2013's projected output. So it's questionable whether the company is overspending. Certainly, with cash, cash equivalents and gold bullion (market value) of approximately $380 million in the bank as of December 31, 2013 and razor-thin margins on gold produced, IAMGOLD needs to be careful what it spends. Still, the company has deferred three of its mine developments indefinitely.

Foolish summary
So in summary, there are some great deals to be had in the mining sector at present. However, investors need to be more vigilant and scrupulous than ever when evaluating investments in this environment. Both Lundin and Alamos look like great plays due to their plans for growth, cost of production, and strong balance sheets. On the other hand, I feel that IAMGOLD should be avoided.