Sectoral analysis

What is the importance of sectoral analysis to select the stocks and how to do the best sectoral analysis