Intro to Data Visualization
  • Introduction
  • Getting started
    • Introduction to Pandas
    • Accessing Files on Colab
    • Reviewing Data
      • Understanding type(data) in Pandas
    • Data Types
      • Categorical Data
      • Numeric Data
      • Temporal Data
      • Geographic Data
    • How to Check Data Type
    • Slicing and Subsetting DataFrames
    • Aggregating Data
  • Visualization Types
    • Exploratory Process
    • Explanatory Process
  • data exploration
    • Exploration Overview
    • Exploration with Plotly
      • Exploring Distributions
      • Exploring Relationships
      • Exploring with Regression Plots
      • Exploring Correlations
      • Exploring Categories
      • Exploring Time Series
      • Exploring Stocks with Candlestick
      • Exploring with Facets
      • Exploring with Subplots
    • Exploring with AI
  • Data Explanation
    • Data Explanation with Plotly
      • Using Text
      • Using Annotations
      • Using Color
      • Using Shape
      • Accessibility
      • Using Animations
    • Use Cases
  • Exercises and examples
    • Stock Market
      • Loading Yahoo! Finance Data
      • Use Cases for YF
      • Exploring YF Data
      • Understanding Boeing Data Over Time
      • Polishing the visualization
      • Analyzing with AI
      • Comparisons
    • The Gapminder Dataset
      • Loading the Gapminder Data
      • Use Cases
      • Exploring the Data
      • Exporting a Static Image
Powered by GitBook
On this page
  1. data exploration

Exploring with AI

PreviousExploring with SubplotsNextData Explanation with Plotly

Last updated 3 months ago

Large language models (LLMs) like ChatGPT offer several different features to support exploratory (and explanatory) data visualization.

First, LLMs can analyze visualizations, providing a powerful way to bridge the gap between raw data and actionable insights. LLMs can assist you in interpreting visualizations, explaining key trends, finding patterns, and identifying anomalies. For instance, ChatGPT can identify the overall direction of a time series chart, highlight outliers, or explain relationships between variables shown in a scatter plot. These features are particularly helpful as you get started in data analysis or if you want a quick summary of the visualization. By describing visual patterns in plain language, LLMs enhance accessibility and make data more understandable for diverse audiences.

Second, LLMs can suggest new visualizations. For example, ChatGPT can suggest appropriate chart types based on the data and analysis goals, such as recommending a scatter plot for examining relationships or a bar chart for comparing categories. As you learn more about data visualization, LLMs can act as a resource and a check.

Third, ChatGPT can also assist with coding, providing example scripts in visualization libraries like Plotly, Matplotlib, or Seaborn to generate specific charts in Python. Relatedly, LLMs can suggest advanced visualization techniques such as using subplots, animations, or annotations to enhance interactivity and storytelling. This capability makes tools like ChatGPT valuable not only for analyzing visualizations but also for empowering users to craft compelling and effective visual narratives.

Starting with ChatGPT

Go to ChatGPT (chatgpt.com). If you prefer to use another LLM, that is fine as long as it has multi-modal capabilities. Multi-modal means that the LLM can process images as well as text. We will prompt ChatGPT with both text and the created image to analyze the visualization.

ChatGPT Prompt:

Here is what ChatGPT said about the above visualization using the following prompt:

What are the key takeaways for this visualization?

ChatGPT Response:

The key takeaways from this visualization of Boeing's stock price for 2024 are:

  1. Overall Trend: The stock price generally declined throughout most of 2024, starting above $240 and dropping below $150 at its lowest point.

  2. Early Decline: There was a sharp drop in the stock price early in the year, indicating a significant event or market reaction during that period.

  3. Mid-Year Stability: The price shows some level of stabilization or smaller fluctuations between May and July 2024, hovering around the $180 range.

  4. Late-Year Recovery: Towards the end of the year, the stock price rebounded, rising from below $150 to approximately $180.

  5. Volatility: The line chart shows considerable volatility throughout the year, with frequent ups and downs, indicating an uncertain market environment for Boeing.

This chart is useful for identifying general trends and periods of volatility but does not provide context for specific events affecting the stock price.

Initial Reflection: What are the ways to improve the analysis from ChatGPT?

Initial Reflection: If you are unhappy with the results, you can try a slightly different prompt such as What are the important patterns in this chart? You should try 2-3 different prompts and compare the results until you feel satisifed.

Boeing Stock Price: 2024