Time Series Analysis and Forecasting for Energy Consumption