Artikel 58
code-und-llm

Data Analysis for Beginners: Understanding and Using Data with AI

Sebastian Rydz9. März 202610 min Lesezeit

Data is the new gold, they say. But what good is gold if you cannot process it? This is exactly where AI comes into play. Artificial intelligence makes data analysis accessible to everyone, not just statisticians and programmers. In this article, I will show you how to use AI tools to understand, analyze, and transform data into valuable insights.

In the previous article about Setting Up AI Assistants, you learned how to configure specialized helpers for different tasks. Now we will use these skills for a particularly exciting area: working with data.

Why Data Analysis Matters for Everyone

Data surrounds you everywhere: in your sales figures, website statistics, social media metrics, customer surveys, financial data, or personal health data. Those who understand this data make better decisions. Those who ignore it operate blindly.

The problem until now has been that data analysis required expertise in statistics, programming, or specialized tools like advanced Excel. Many people have valuable data but cannot evaluate it. This is now changing fundamentally.

With AI tools, you can:

  • Query data in natural language: "Which month had the highest revenue?" instead of complicated formulas
  • Automatically recognize patterns: AI finds connections you might miss
  • Create visualizations with a single sentence: "Create a bar chart of sales by quarter"
  • Perform complex analyses without code: Regressions, correlations, and forecasts via prompt
  • Summarize results clearly: AI explains what the numbers mean

You do not need programming skills or a statistics degree. You just need the ability to ask the right questions. And that is exactly what you will learn in this article.

Understanding Data: The Basics of Data Analysis

Before you begin analyzing, you need to understand what you are looking at. Data comes in different forms, and each form requires a different approach.

Structured data: This is data in tabular form with clear columns and rows. Examples: Excel spreadsheets, CSV files, database exports. This data is easiest to analyze because it is already organized.

Unstructured data: Texts, emails, social media posts, images, or videos. This data contains valuable information but is not organized in a uniform format. AI is particularly good at processing unstructured data.

Semi-structured data: JSON files, XML documents, or log files. They have some structure but do not fit into a simple table.

For getting started, we will focus on structured data because it is the most accessible. The fundamental questions in any data analysis are:

  1. What do I have? What data is available, how many data points, which variables?
  2. What is missing? Are there gaps, missing values, or inconsistent entries?
  3. What is normal? What do the averages and typical distributions look like?
  4. What stands out? Are there outliers, unusual patterns, or trends?
  5. What does it mean? What conclusions do the data support?

These five questions form the framework of every good data analysis. And AI can help you with each and every one of them.

Data Analysis with AI: The Best Tools and Methods

There are various ways to use AI for data analysis. I will introduce you to the most important ones and explain when to use which approach.

ChatGPT with Code Interpreter (Advanced Data Analysis):

ChatGPT's Code Interpreter is probably the easiest entry point into AI-powered data analysis. You upload a file (CSV, Excel, JSON) and ask questions in natural language. ChatGPT automatically writes Python code, executes it, and presents the results to you.

Example workflow: You upload an Excel file with sales data and write: "Analyze this data. Give me an overview of the most important metrics, create visualizations of the trends, and identify the top products by revenue." ChatGPT handles everything automatically.

Claude with files:

Claude can also process and analyze files. Claude is particularly strong at interpreting results and explaining complex relationships in understandable language. You can upload CSV files and ask Claude to analyze them.

Google Gemini with Google Sheets:

If you work with Google Sheets, Gemini offers seamless integration. You can ask questions about your data directly in Sheets and get answers, formulas, and visualizations.

Specialized AI analysis tools:

Tools like Julius AI, Rows, or Obviously AI were specifically developed for data analysis. They often provide a more intuitive interface for non-technical users and guide you through the analysis process. If you regularly analyze data, these specialized solutions are worth exploring.

When to use which tool?

For quick, one-time analyses, ChatGPT with Code Interpreter is ideal. For deep content analyses with a lot of context, Claude is particularly well suited. For regular analyses with large datasets, specialized tools like Julius AI are the better choice. And if you already work in the Google ecosystem, Gemini with Sheets is the natural starting point.

Identifying Trends and Recognizing Patterns

One of the most valuable skills in data analysis is identifying trends and patterns. Here I will show you how to use AI for this purpose effectively.

Time series analysis:

If your data has a time component (for example monthly sales, daily website visitors, or weekly expenses), you can analyze trends over time. Simply tell the AI: "Analyze the trend of sales figures over the last 12 months. Are there seasonal patterns? Is the trend increasing or decreasing?"

AI can not only recognize the obvious trend but also find subtle patterns. Perhaps your sales always rise on the third Wednesday of the month, or there is a connection between weather and website traffic that you have never noticed.

Correlation analysis:

Correlations show you whether two variables are related. Ask the AI: "Check whether there is a correlation between advertising spending and revenue. Create a scatter plot and calculate the correlation coefficient." The AI not only explains the result but also what it means in practice.

Important to remember: Correlation does not mean causation. Just because two things rise at the same time does not mean one causes the other. AI can point out this distinction to you when you ask.

Segmentation:

AI can divide your data into meaningful groups. Example: "Segment my customers by purchasing behavior. What groups exist, and how do they differ?" This often produces surprising insights, for example that a small customer group is responsible for the majority of your revenue.

Anomaly detection:

Outliers in your data can be errors or important signals. Ask the AI: "Identify outliers in the data and explain possible causes." A sudden spike in returns might indicate a quality problem. An unusually high sales day might reflect a marketing campaign.

Forecasts:

Based on historical data, AI can make predictions. "Based on the sales data from the last 24 months: How will sales develop in the next 6 months?" Keep in mind: Forecasts are estimates, not guarantees. The more data you have and the more stable the patterns are, the more accurate the predictions become.

Creating Visualizations: From Numbers to Pictures

A picture is worth a thousand numbers. Visualizations make data tangible and help you communicate insights. With AI, you create professional charts and graphics without needing design skills.

The most important chart types and when to use them:

Line charts: Ideal for trends over time. Use them for sales developments, growth curves, or any type of time series. Prompt: "Create a line chart of monthly revenue with a trend line."

Bar charts: Perfect for comparisons between categories. Use them to compare products, regions, or time periods. Prompt: "Create a horizontal bar chart of the top 10 products by revenue."

Pie charts: Show proportions of a whole. Use them sparingly and only with a few categories (maximum 5 to 7). Prompt: "Show the revenue distribution by product category as a pie chart."

Scatter plots: Show the relationship between two variables. Ideal for correlation analyses. Prompt: "Create a scatter plot with advertising spend on the X-axis and revenue on the Y-axis."

Heatmaps: Show intensities in a matrix. Use them for correlation matrices or time-based patterns. Prompt: "Create a heatmap of sales by day of the week and time of day."

Box plots: Show the distribution of data. Ideal for displaying medians, quartiles, and outliers. Prompt: "Create box plots of order values by customer group."

Tips for better visualizations:

  • Always choose the chart type that best supports your message
  • Keep visualizations simple: less is more
  • Label axes and data points clearly and unambiguously
  • Use colors strategically to direct attention
  • Add a meaningful title that summarizes the key message
  • Ask the AI to explain the visualization: "What does this chart show?"

From Data to Insights: The Analysis Pyramid

Data alone is worthless. Only when you transform it into insights and actions does value emerge. The analysis pyramid helps you follow this path systematically.

Level 1: Collect and clean data

Before you analyze, make sure your data is clean. Upload it to the AI and say: "Check this data for missing values, duplicates, and inconsistencies. Create a quality report." The AI finds problems you would miss manually and suggests solutions.

Typical problems include: missing values in important columns, different spellings (for example "Germany" vs. "DE" vs. "DEU"), duplicates from multiple imports, obvious errors (negative quantities, dates in the future), and inconsistent formats (date as text vs. date value).

Level 2: Exploratory analysis

Get an overview. Tell the AI: "Create an exploratory analysis of this data. Show me the key metrics (mean, median, standard deviation), the distributions of variables, and initial observations." This phase is like reading the headlines before reading the entire article.

Level 3: Targeted analysis

Based on the insights from exploration, you now ask specific questions. "Why did sales drop in March?" or "Which customer group has the highest repeat purchase rate?" This is where it gets interesting because you move from description to explanation.

Level 4: Action recommendations

The goal of every analysis: deriving concrete actions. Tell the AI: "Based on the results: What three concrete measures do you recommend to increase revenue next quarter?" AI can give surprisingly good action recommendations because it recognizes patterns in the data that you might overlook.

Level 5: Monitoring and iteration

Data analysis is not a one-time event. Set up regular check-ins: "Compare current data with the previous month. Are there significant changes?" This way you stay on top of your data and identify problems early.

Practical Prompts for Data Analysis

Here are proven prompts that you can directly incorporate into your data analysis. Adapt them to your specific situation.

For the initial overview:

"I have a CSV file with [description]. Please analyze the data and create a comprehensive overview: How many data points are there? What columns are present? Are there missing values? What are the key metrics? Show the distributions of numerical variables."

For trend analysis:

"Analyze the temporal progression of [variable]. Is there an upward or downward trend? Are seasonal patterns recognizable? Create a line chart with a trend line and highlight notable data points."

For comparisons:

"Compare [Group A] with [Group B] regarding [criteria]. Are there statistically significant differences? Create visualizations that clearly show the differences."

For forecasts:

"Based on the historical data: Create a forecast for the next [time period]. Which model is best suited? How large is the uncertainty of the prediction? Show a confidence interval."

For action recommendations:

"You are a data analyst working for [context/industry]. Analyze the data and derive three to five concrete, actionable recommendations. Support each recommendation with data."

Remember: The more specific your prompt, the better the result. Always mention the context, the goal, and the desired format.

Exercise: Analyze Your First Dataset with AI

Time for practice! In this exercise, you will analyze a dataset with AI support and gain real insights from it.

Step 1: Prepare a dataset

Choose a dataset that is relevant to you. This can be your own data (sales figures, website statistics, expenses) or a public dataset for practice. You can find free datasets on Kaggle, Google Dataset Search, or the UCI Machine Learning Repository. Export the data as a CSV or Excel file.

Step 2: Upload data and get an overview

Upload the file to ChatGPT (with Code Interpreter) or Claude. Use the Prompt Generator at optiprompt.io to create a structured analysis prompt. Start with: "Analyze this dataset and give me a comprehensive overview: size, structure, missing values, basic statistics."

Step 3: Ask targeted questions

Based on the overview, ask at least three targeted questions. For example: Which variable has the greatest influence on [target metric]? Are there temporal trends? Which segments differ significantly?

Step 4: Create visualizations

Ask the AI for at least three different visualizations that support your findings. Choose chart types deliberately based on what you learned in this article.

Step 5: Summarize insights

Ask the AI: "Summarize the key findings in 5 bullet points and derive 3 concrete action recommendations." Critically review the results: Do the conclusions align with your intuition? Are there alternative explanations?

Bonus task: Create a short analysis report (one page) that you could present to a colleague or supervisor. Use the AI to structure the report and incorporate the visualizations.

Summary and Outlook

Data analysis is no longer rocket science. With AI tools, you can understand, analyze, and transform data into insights, even without programming skills or a statistics degree. You have learned which tools are available, how to recognize trends, create visualizations, and move from data to concrete action recommendations.

The most important insight: It is not about mastering the technology perfectly. It is about asking the right questions. AI handles the technical implementation. You provide the domain knowledge and the critical evaluation of results. This combination of human curiosity and machine computing power is incredibly powerful.

In the next article, we will explore Solving Technical Problems with AI. You will learn how to analyze error messages, fix software issues, and master technical instructions with AI support. Because AI is not just an analysis tool but also a brilliant technical helper. Until then: experiment with your own data and discover what lies within!

Autor

Sebastian Rydz

Das OptiPrompt Team teilt Wissen und Best Practices rund um KI und Prompt Engineering, um dir zu helfen, bessere Ergebnisse mit KI-Modellen zu erzielen.

Bereit, deine Prompts zu optimieren?

Erstelle mit OptiPrompt professionelle Prompts in Sekunden – kostenlos starten.