Techniques for Analyzing and Predicting Trends and Patterns