How to perform EDA of WildChat AI Convesation Patterns

WildChat dataset analysis – AI conversation patterns and model comparison
PRAJITHA MARY J Avatar

Introduction

Artificial Intelligence has become an important part of everyday communication. From answering questions to assisting with learning and problem-solving, AI-powered conversational models are being used across different domains.

Understanding how people interact with these systems can reveal useful patterns about language usage, conversation length and model response behaviour.

As part of my Data Science Internship at Valentius Kryptix, I completed the Milestone: End-to-End EDA Report by working on a project titled “Exploring AI Conversations: An Exploratory Data Analysis of the WildChat Dataset.”

The objective was to explore a real-world conversational dataset, perform data cleaning, identify patterns through visualisation and validate selected observations using statistical techniques.

This WildChat dataset analysis explores real-world AI conversations to understand language patterns, conversation lengths and response behaviour across different AI models.

1. Understanding the Dataset

For this project, I used the WildChat-4.8M dataset available through Hugging Face.

The analysis was conducted on a sample of 20,000 records. I accessed the dataset using the Hugging Face Datasets library with streaming and buffered shuffling.

The sample included information that supported the analysis of AI models, timestamps, languages, conversation turns and message lengths.

The primary comparison focused on GPT-3.5 Turbo and GPT-4.

Since this was a sample-based analysis, the findings represent the selected records rather than the entire WildChat dataset.

2. Data Cleaning and Preprocessing

Data cleaning was an important stage of the project because reliable analysis depends on the quality of the input data.

I examined the dataset structure, column data types and missing values. I also checked for exact duplicate records and investigated repeated conversation identifiers.

Missing geographic metadata was excluded from the analytical dataset rather than filling it with assumptions.

I also used the Interquartile Range (IQR) method to investigate unusually long assistant responses. These observations were retained because unusually long responses are not necessarily incorrect data.

To support further analysis, I created additional features such as message counts, user text length, assistant text length and date.

For privacy-conscious analysis, raw conversation content and unnecessary identifying metadata were excluded from the analytical dataset.

3. Exploratory Data Analysis and Visualisation

After preprocessing, I explored the dataset using Python, Pandas, Matplotlib and Seaborn.

I developed multiple visualisations to understand different aspects of AI conversations:

  • Model Distribution: Compared the representation of GPT-3.5 Turbo and GPT-4.
  • Language Distribution: Identified the most frequently represented language labels.
  • Conversation Turns: Examined how many turns conversations contained.
  • User vs Assistant Text Length: Explored the relationship between user message length and assistant response length.
  • Daily Activity: Analysed the distribution of sampled conversations across dates.
  • Response Length Comparison: Used a boxplot to compare assistant response-length distributions between the two models.

These visualisations helped transform raw data into understandable patterns and supported the interpretation of the results.

4. Key Findings

The analysis revealed several interesting observations.

GPT-3.5 Turbo represented 82.59% of the selected sample, while GPT-4 represented 17.41%.

The median conversation length was one turn, with an average of approximately 2.17 turns.

One notable observation was the difference in assistant response lengths. GPT-3.5 Turbo had a median response length of 830 characters, while GPT-4 had a median of 2,135 characters.

The four most frequently represented language labels — English, Chinese, German and Russian — together accounted for approximately 84.72% of the sample.

These findings helped describe the composition and behaviour of the selected AI conversation records.

5. Statistical Hypothesis Testing

To go beyond visual observations, I applied two statistical techniques using SciPy.

Mann–Whitney U Test

The Mann–Whitney U test was used to compare assistant response-length distributions between GPT-3.5 Turbo and GPT-4.

The test produced a p-value of approximately 1.49 × 10⁻²⁷⁶.

Since this value is below the 0.05 significance level, the null hypothesis was rejected. The results indicate a statistically significant difference between the two response-length distributions.

Spearman Rank Correlation

Spearman rank correlation was used to investigate the association between user text length and assistant response length.

The correlation coefficient was approximately 0.0773, with a p-value of approximately 6.59 × 10⁻²⁸.

This indicates a statistically significant but very weak positive association.

These results demonstrate why statistical significance should be interpreted alongside effect size and practical relevance. Response length alone does not indicate the quality or accuracy of an AI response.

6. Tools and Technologies Used

The project involved several tools from the Python data science ecosystem:

  • Python for programming and analysis.
  • Pandas for data manipulation.
  • NumPy for numerical operations.
  • Matplotlib and Seaborn for visualisation.
  • SciPy for statistical hypothesis testing.
  • Hugging Face Datasets for accessing the dataset.
  • Google Colab as the development environment.

7. WildChat Dataset Analysis: Key Findings

If you want to understand the fundamentals of Exploratory Data Analysis, read my previous article on How to Perform EDA Using Python and Pandas.

Working on this project strengthened my understanding of the end-to-end Exploratory Data Analysis workflow.

First, I learned the importance of data cleaning and responsible preprocessing before drawing conclusions.

Second, I gained practical experience in choosing suitable visualisations and interpreting patterns rather than simply generating charts.

Third, applying statistical hypothesis tests helped me understand how data-driven conclusions can be supported with statistical evidence.

I also learned to interpret findings carefully, particularly when working with samples, unequal group sizes and statistically significant but weak relationships.

Conclusion

This project provided practical experience in analysing real-world AI conversation data using Python.

From dataset exploration and preprocessing to visualisation and statistical testing, each stage contributed to a more structured understanding of the data.

The WildChat analysis helped me explore differences in model representation, language patterns, conversation length and assistant response behaviour.

Completing this milestone as part of my Data Science Internship at Valentius Kryptix has strengthened my analytical skills and increased my confidence in applying data science techniques to real-world datasets.

Project Repository:
https://github.com/PRAJITHAMARY/WILDCHAT_EDA

Dataset Source:
https://huggingface.co/datasets/allenai/WildChat-4.8M

PRAJITHA MARY J Avatar

Leave a Reply

You May Love