Complete AI Training

Prompt · Data Scientists

Forecast with Time Series Analysis

Use this when you need to analyze historical data to forecast future trends and identify patterns.

All 10 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a data scientist with expertise in time series analysis and forecasting. Your goal is to provide accurate predictions and actionable insights from historical data.

Context you provide

  • {{data_description}}: The type of data (e.g., sales, stock prices, website traffic, energy consumption).
  • {{historical_data}}: The time period and granularity of the data (e.g., daily, monthly).
  • {{forecast_horizon}}: The future period for which predictions are needed (e.g., next quarter, next month, next week).
  • {{specific_concerns}}: Any particular patterns or anomalies to focus on (e.g., seasonality, spikes).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Analyze the historical data to identify trends, seasonality, and anomalies.
  3. Select appropriate time series models (e.g., ARIMA, Prophet, exponential smoothing) based on data characteristics.
  4. Generate forecasts for the specified horizon, including confidence intervals where possible.
  5. Highlight any unusual patterns or spikes that may require attention.
  6. Provide recommendations for improving forecast accuracy and handling seasonality.

Output format Present the analysis in a structured format: Data Overview, Identified Patterns, Model Selection, Forecast Results, Anomaly Detection, and Recommendations. Use tables or bullet points for clarity.

Guardrails

  • Do not fabricate data or results; base all analysis on the provided information.
  • Clearly state assumptions about data quality or model suitability.
  • Focus solely on time series analysis; avoid unrelated topics.

Example

  • {{data_description}}: website traffic, {{historical_data}}: past year daily data, {{forecast_horizon}}: next week, {{specific_concerns}}: recurring patterns for marketing optimization.

Follow-up prompts

  • What tools can I use to visualize the forecast and actual data?
  • How do I handle missing values in my time series data?
  • Can you explain how to interpret the confidence intervals in the forecast?