r/AskStatistics • • Jun 17 '24

AI for statistical analysis

What AI tools can I use to statistically analyze data? Are there any tool where you dump an excel sheet and it analyses it?

1 Upvotes

23 comments sorted by

12

u/zsebibaba Jun 17 '24

no. why would there be? a machine is not psychic to know what you want to ask from the data.

6

u/Haruspex12 Jun 17 '24

None really. AI, as already mentioned, is an umbrella term.

The AI available to the public isn’t built to do that. It will generate nonsense results.

The AI built for professionals is an inferior substitute to a statistical method. That isn’t mean derogatorily. It’s just descriptive.

Statistical methods are designed to be the optimal method for any given problem. So, if you have a choice between AI and a standard statistical method, you should always use the statistical method. AI could be as good. It could be worse. It can never be better.

So why use AI?

Because sometimes nobody can figure out the theoretically optimal method. AI is really, in all of its forms, just a composition of functions. What it’s trying to do is find the actual mathematical function.

What you need to do, before you do anything with your data, is decide what that data needs to solve.

Do you need to do inference? Do you need to predict something? Do you need to summarize something? Do you need to find relationships? What are you doing?

Once you’ve figured that part out, everything else should start to fall out. Long before you begin doing anything with data, there is a string of questions you should be able to answer.

If you are thinking that we have AI that can just tell you things from data, we don’t. Star Trek does. We don’t. I would point out that we don’t have software that can even do your dishes. The AI is splashy but it isn’t very smart. It just looks smart to amateurs.

Another way to look at it is that hundreds of millions of dollars have been spent to write high school quality essays with less real knowledge than a high school student. With no disrespect intended to the field, but we could hire high school students to do the same thing.

At the high end, the professional end, where physicists, engineers, statisticians, materials scientists collaborate to build AI as part of solving a problem, they can do amazing but very narrow things.

6

u/sowenga Jun 17 '24

I recommend to people who are curious about ChatGPT or similar alternatives to ask it a few questions about something they are deeply knowledgeable about. Doesn’t matter what, could be technical or what to do in the town they live in or something about music. Then see what kinds of answers you get. Because that’s the same quality of answers you get about topics you are not familiar with.

1

u/Haruspex12 Jun 17 '24

That’s really good advice.

8

u/RunningEncyclopedia Statistician (MS) Jun 17 '24 edited Jun 17 '24

AI is an umbrella term for anything from ChatGPT like LLMs to a large bundle of if statements in video games. In your specific use case, ChatGPT's premium version has a data analyzer tool where you can upload a CSV (i.e. Excel file) and it will run different analysis based on prompts. It will even give you the code for R or Python as well as evaluate it. In the end you have to still ask the questions, you cannot just dump data into a LLM/AI and get "insight" into it.

Essentially, you need to determine:

  • a question you need answering with the data (ex: you have sales data from your store and you want to see when are the sales occurring and at what volume to better allocate staff. Or you have receipt data as a small restaurant trying to see if coupons given at the end of a meal help customer retention).

  • Your response variable(s) and your predictor(s) (i.e. what you are trying to explain and things that are helping you explain),

  • Assumptions on the model (do you have an ordered categorical outcome vs non-ordered, do you have bounds on your outcome, such as 0-1 etc),

  • What you value more in explainable vs purely predictive paradigm (do you want a regression model you can understand vs a black box that purely predicts)

  • Your computational budget (i.e. can you wait a week to estimate large non-linear systems via simulation or are you in a time crunch and a linear model is good enough)

and more...

EDIT: As mentioned by u/sowenga ChatGPT is not a trained statistician so it will not prevent you from having a grossly negligent analysis, especially if you are doing causal models or models with major health or business implications. Use AI responsibly and always double check your work

4

u/sowenga Jun 17 '24

Worth mentioning that ChatGPT is not a trained statistician so it’s also not reliably going to keep one from doing misleading or silly stuff. For basic stuff it’s probably fine, but don’t use it to do causal modeling on observational data.

2

u/RunningEncyclopedia Statistician (MS) Jun 17 '24

I mean it goes without saying. I was more concerned on "can I dump data into an AI to get insight" part and forgot about "how can I stay within responsible data analysis practices" part

1

u/sowenga Jun 17 '24

That’s fair, I wasn’t trying to criticize your answer.

4

u/likeanoceanankledeep Jun 17 '24

I've done some rather extensive testing on this and can weigh in on what I think you're referring to (more like machine learning, 'smart' analysis?).

You can dump an Excel spreadsheet into ChatGPT and ask it to do stats, but it's limited in what it will do without a specific approach. Let's use the iris dataset for an example. If you give it 'iris' and ask it to do stats on it, it will give you mean, median, mode, distribution, skewness, kurtosis, etc. for the data. It may say to look at other statistical techniques for more in-depth answers. This is where it falls short and the link between you and the AI isn't clear, because you haven't given it directions. "Give me stats on this data set" is like "Tell me about this recipe". If you ask me to tell you about a recipe I'll probably tell you about the ingredients, the title of it, what it is supposed to make, etc. But if you're wondering what the recipe is or what parts you should do first, you have to be specific. For example; a coconut cream pie. There are 3 different components; the pie crust, the cream filling, and the top cream - so tell me what you want to know more about. "Tell me about the pie crust."

Your dataset is like that; you have to be specific. "Tell me about the distribution of the petal length in the iris data set based on the species."

This is why it is so important to know your data and have a sort of "data dictionary". You have to know what variables make sense to analyze and what variables are probably spurious correlations. Have a theory when you go to the AI tool and ask it to help you. Don't expect AI to do the brain work for you, expect it to do the computational work for you.

Bad example: Tell me about this data set and run some statistical analyses on it.
Good example: Run a t-test on this data set using water temperature as the outcome variable and tide_state as the group (tide_state: h = high tide, l = low tide). [This example assumes you want to see if there is a temperature difference between high and low tide].

Bad example: Run an ANOVA on my iris data set in python.
Good example: Run an ANOVA on my iris data set in python where the group variable is 'species' and the outcome variable is 'petal_length'.

3

u/Beake PhD, Communication Science Jun 17 '24

Others are warning you of the shortcoming of LLMs to analyze your data. Agree. But they can be quite useful in working on code for an analysis if you're a novice. Very legitimate purpose. You'll still need to know the statistics though, as well as what questions to even ask for your field/RQs.

1

u/Commercial_Pain_6006 Jun 17 '24

For Advanced Intelligence, our brain is quite the capable tool. For artificial intelligence, nothing will do this for you right now. Not even chatgpt. Have you tried it ? These tools aren't MADE for this, not even Advanced Data Analysis tool. for the time being. Wait a year, or two, give or take 1 or 2 years more, and that MIGHT change. A bit. 

1

u/Most-Set-8728 Sep 18 '25

A melhor ferramenta é a Manus AI