Skip to main content
QUICK REVIEW

[Paper Review] Is GPT-4 a Good Data Analyst?

Liying Cheng, Xingxuan Li|arXiv (Cornell University)|May 24, 2023
Machine Learning and Data ClassificationComputer Science5 citations
TL;DR

This paper investigates whether GPT-4 can function as a competent data analyst by evaluating its end-to-end performance on real-world data analysis tasks involving database querying, data visualization, and insight generation. Using a custom framework and human evaluation, GPT-4 achieves performance comparable to senior human data analysts, outperforming junior and intern-level analysts, though hallucination and assumption rigor remain concerns before full replacement can be considered.

ABSTRACT

As large language models (LLMs) have demonstrated their powerful capabilities in plenty of domains and tasks, including context understanding, code generation, language generation, data storytelling, etc., many data analysts may raise concerns if their jobs will be replaced by artificial intelligence (AI). This controversial topic has drawn great attention in public. However, we are still at a stage of divergent opinions without any definitive conclusion. Motivated by this, we raise the research question of "is GPT-4 a good data analyst?" in this work and aim to answer it by conducting head-to-head comparative studies. In detail, we regard GPT-4 as a data analyst to perform end-to-end data analysis with databases from a wide range of domains. We propose a framework to tackle the problems by carefully designing the prompts for GPT-4 to conduct experiments. We also design several task-specific evaluation metrics to systematically compare the performance between several professional human data analysts and GPT-4. Experimental results show that GPT-4 can achieve comparable performance to humans. We also provide in-depth discussions about our results to shed light on further studies before reaching the conclusion that GPT-4 can replace data analysts.

Motivation & Objective

  • To investigate whether GPT-4 can serve as a capable data analyst in real-world, end-to-end data analysis tasks.
  • To compare GPT-4’s performance against human data analysts of varying experience levels—junior, intern, and senior—using task-specific metrics.
  • To design and validate a framework for prompting GPT-4 to perform data extraction, visualization, and analytical insight generation in a structured, automated pipeline.
  • To assess the practical viability of GPT-4 as a data analyst by analyzing cost, time, and reliability in comparison to human labor.
  • To identify limitations such as hallucination and overconfidence in assumptions, and to guide future research before concluding on GPT-4’s potential to replace human analysts.

Proposed method

  • A custom framework is proposed to guide GPT-4 through end-to-end data analysis: input includes a business question and database schema, with optional external knowledge retrieval via Google.
  • The system prompts GPT-4 to identify relevant tables, generate SQL queries, extract data, produce visualizations (e.g., charts), and deliver analytical insights.
  • Evaluation includes both automatic metrics (e.g., for data correctness and visualization quality) and human evaluation by professional data analysts on insight relevance and depth.
  • A modified version of the NvBench dataset is used, extended with data analysis tasks to create a benchmark for LLM-based data analysis.
  • An optional module integrates online information retrieval to enhance context-awareness for questions requiring domain-specific background knowledge.
  • Performance is compared across GPT-4, junior, intern, and senior human data analysts using quantitative and qualitative metrics.

Experimental results

Research questions

  • RQ1Can GPT-4 perform end-to-end data analysis tasks—data extraction, visualization, and insight generation—on real databases with performance comparable to human analysts?
  • RQ2How does GPT-4’s performance compare to data analysts of varying experience levels (junior, intern, senior) in terms of accuracy, insight quality, and completeness?
  • RQ3To what extent does external knowledge retrieval improve GPT-4’s ability to generate contextually accurate and insightful analyses?
  • RQ4What are the key limitations of GPT-4 in data analysis, particularly regarding hallucination and assumption validation, that prevent full replacement of human analysts?
  • RQ5How do cost and time efficiency of GPT-4 compare to hiring human data analysts in real-world scenarios?

Key findings

  • GPT-4 outperforms intern and junior-level human data analysts in both task performance and insight quality, as measured by human evaluators.
  • GPT-4 achieves performance comparable to senior human data analysts on general and practical data analysis questions, particularly in insight formulation and data interpretation.
  • GPT-4 demonstrates significant cost and time advantages over human analysts, completing end-to-end tasks faster and at lower expense.
  • Despite strong performance, GPT-4 exhibits hallucination issues, including incorrect data interpretations and fabricated insights, which remain a critical limitation.
  • GPT-4 often makes unsupported assumptions or provides speculative claims without sufficient validation, indicating a need for improved reasoning rigor before full deployment.
  • The integration of external knowledge via online retrieval improves GPT-4’s contextual awareness and analytical depth in certain cases, though this feature is not systematically evaluated across all tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.