00:00I learned how to do data analysis with AI for you
00:01I guess we can call it vibe analyzing
00:04But really, I took 11 courses on this topic
00:07What can I say? I used to be a data scientist at Meta
00:09I love data
00:10I use data every single day
00:12I'm going to save you the time and money that I spent buying these courses and give you the CliffNotes version of what I learned
00:17As per usual, there'll be little quizzes throughout this video, so pay attention
00:20All right, let's go
00:22A portion of this video is sponsored by LTX-2
00:24The outline of today's video is: first, I'm going to cover when it is useful to use AI for data analysis, then we'll talk about the DIG framework for how to approach analysis
00:32But of course, to make it all concrete, we need some..
00:36Examples
00:40So, I'll then be showing you lots of examples, and finally, I'll [music] explain how to take this even further and build your data analysis into dashboards or even AI applications
00:44[music] I do want to make a note that many of the courses and examples are focused on using ChatGPT as the tool for data analysis, but that's not the only option
00:49You don't have to use ChatGPT
00:52In fact, you can switch it off at Gemini and Claude would work the same way
00:56In some cases, they might even work better
00:57So, don't feel like you need to be committed to a single tool, and I'll actually call out if I think a different tool would work even better
01:03Okay, let's start with when we should consider using AI for data
01:06Analysis
01:08Well, from the course ChatGPT Advanced Data Analysis, Dr
01:11Jules White, the instructor from Vanderbilt University, has an acronym for this called ACHIEVE
01:17He explains that there are five different areas where AI is useful in data analysis: aiding human coordination, cutting out tedious tasks, helping to provide a safety net for humans, inspiring better productivity and problem solving, and enabling great ideas to scale faster—ACHIEVE
01:33 Aiding human coordination refers to helping people work better with each other because people actually tend to be quite messy, you know, and there's a lot of miscommunication
01:41There's a lot of back and forth between people
01:44So, there's a lot of room for… There is an improvement here that AI can help with
01:49Say, for example, you're in a meeting with a bunch of people, and you have this meeting transcript
01:55You can actually put it into AI and say, "ChatGPT, read the following meeting transcript and provide me with a summary of the key points of discussion." This is just an example
02:01I'm sure you can think of many other scenarios where there is a lot of data that can be analyzed to provide more clarity for humans
02:06 The second part of the framework is to cut out tedious tasks
02:09Just as that suggests, it's best to let AI handle things that are very repetitive and boring for people
02:15For example, say you're hosting a workshop and you ask people to sign up for the workshop
02:19And provide different types of information, like what their name is, what their occupation is, which department they're in, and what their interests are
02:26Instead of having to go through this and manually analyze it, you can tell the AI that this is the list of people who registered for my workshop on prompt engineering and ChatGPT
02:32Describe the data in this file
02:36By the way, asking AI to describe data is best practice, which we'll cover a little bit later
02:40But yes, so the AI will be like, okay, this file contains this type of information
02:44It's a CSV file, and it contains, for example, timestamp, name, email, department
02:47This is a university workshop, and they are using ChatGPT and their tools already
02:53The role that they hold, etc
02:55You might notice that people are filling in their department names in a lot of different variations
02:58So, you can actually ask the AI, since there seems to be a lot of overlap between departments with alternate spellings
03:03Can you list out all the departments and then do some intelligent grouping of them? Then, you can ask it to create a bar chart showing the total number of registrations per department
03:09This is the kind of data cleaning and visualization that is pretty mundane, and AI is able to do this much more quickly
03:16The third part of the framework is to help provide a safety net for humans
03:20You see, people often say that AI has a lot of hallucinations, and that is true
03:26AI does hallucinate, but people… People make a lot of mistakes, like some really, really dumb mistakes
03:33I make dumb mistakes like, literally, constantly
03:35I wrote my name wrong on a form yesterday, for example
03:36So, that is why having AI as a backup is actually a really great idea
03:41Say, for example, you're on a business trip and you need to request reimbursement
03:44You need to generate some invoice thingy and then make sure you have all the fields covered
03:49If you're anything like me, I am not very detail-oriented
03:52I probably will make a really dumb mistake
03:54So, as a safety net, you can actually upload this invoice into the AI along with the business expense policy and ask it to read each page of the attached business expense policy and see if the The attached receipt complies with the requirements
04:00There are so many other examples of this
04:06Every time you need to submit an insurance claim, you need to read some sort of document, like a travel policy or whatever
04:12Yeah, so many examples of this
04:14 The next part of the framework for when to use AI for data analysis is the IEV, which stands for Inspire Better Problem Solving and Creativity
04:21This is another important point
04:23People often feel like AI will make people less creative and will take over creative tasks, but that is not the case
04:29It's all about asking the right questions
04:31 For example, if you have a PowerPoint presentation that is really important, you can upload those slides into AI and ask it to assist with them
04:37Quickly summarize it and then ask it to act as a skeptic of everything I say in this presentation and find flaws, my assumptions, assertions, and other key points, and then generate 10 hard questions for me
04:46This is a way for you to actually force yourself to think about the questions that you could potentially be asked and come up with better ways and better solutions for answering them
04:56People are actually very rigid creatures
04:57We tend to think in a very specific way, and it's very hard for us to actually expand past that
05:04So, using AI as a tool to help us expand our creativity is actually really, really helpful
05:08And finally, the last part of the framework for when you should be using AI for data analysis is the E, which is..
05:14Enable great ideas to scale faster
05:16Let's go back to that workshop example
05:18You're hosting a workshop on prompt engineering, and you have people coming from all kinds of different backgrounds, all interested in various topics and at different skill levels
05:27After you give the AI the signup form and analyze all the data about your participants, you want to create a cheat sheet for each of them that is most relevant to their needs
05:35What you can actually do is ask the AI to map each attendee to their specific domain of interest, and then generate a column called 'Ideas' that includes the corresponding idea or prompt to include in their cheat sheet
05:48This way, your CSV file for each attendee also contains a very..
05:49A specific prompt idea that is tailored for that attendee
05:52And then, after the workshop, you can actually send them an email with their specific little cheat sheet
05:59I'm sure you can see, prior to AI, this would have been so hard to do if you had more than just like 10 attendees, to be able to come up with a custom cheat sheet for each person
06:07So, whenever you're thinking about whether you should use AI to do a certain analysis, you can think back to this acronym
06:12Of course, I haven't yet covered exactly how it is that you should approach these analyses, which is what I'm going to be covering next
06:18But first, let's do a little quiz
06:19Please put your answers in the comments
06:23This portion of the video is sponsored by LTX-2, the new..
06:26AI video engine for creative workflows, and this one honestly blew me away
06:30What stood out to me isn't just the quality; it's how LTX-2 can finally tell a story
06:34And if you can't guess by my career choice, storytelling is what I live for
06:39Most AI video models just give you short looping clips, a few seconds that look great but don't really say much
06:45LTX-2, though, can generate up to 15 seconds of continuous video with synchronized audio, which means full monologues, dialogues, or even short scenes with music and natural sounds
06:59 [music] It's smooth, coherent, and feels cinematic—the kind of storytelling range that's missing from AI video tools
07:10As someone who's been..
07:12Creating content for over 5 years now, this one really impresses me
07:14You can build short narratives, generate B-roll and snippets, or even cinematic transitions, all with a single prompt
07:20You can now try out LTX-2 to create your own AI videos
07:22The link is in the description
07:25Thank you so much, LTX-2, for sponsoring this portion of the video
07:27Now, back to the video
07:29From the course, ChatGPT Plus Excel, master data, make decisions, and tell stories
07:32There is a nice little acronym for how you should be approaching data analysis using AI called DIG, which stands for description, introspection, and goal setting
07:41By the way, if you do have a little bit of background in data, like data science
07:46For data analysis, it's basically the same as EDA, exploratory data analysis, but specifically for using AI
07:51The first step of DIG, which is describe, is a way for you and the AI to explore the data together
07:57[music] This step is very important because it helps both you and the AI gain familiarity with the data and also to notice if there are any issues with that data
08:04This will help a lot with hallucinations and other issues [music] down the road
08:08So, very similar to normal EDA processes, after you upload, like, a spreadsheet or whatever data it is that [music] you give to the AI—let's just say a spreadsheet in this case—you would ask the AI to list out the columns in the attached spreadsheet and show me a sample of the
08:22Data in each column
08:24For example, if your spreadsheet contains data about different roles and different salaries, the AI would be able to output and say, "Here are the columns for your spreadsheet along with a sample of the data for each column." So, the column names could be like Salary ID, Job ID, Max Salary, Median Salary, Min Salary, Pay Period, Currency, and Compensation Type
08:43You can already notice that under Max Salary and Min Salary, you have NaN, which indicates not available
08:47This is important to note because hallucinations tend to happen when you have missing data or incorrectly formatted data
08:52So, if you see something like this, the first thing you should do is check the data quality
08:58What you want to do is to confirm whether it is just that DAI [music] is not parsing your data correctly
09:01So you actually want to go in and see whether it is actually not available or if there is a parsing problem
09:06And if there is a parsing problem, you want to then tell the AI, hey, you are parsing this incorrectly
09:11This is actually how you should be parsing it
09:13Or maybe the data is just not available
09:14Then you just want to make a note of this for the future
09:17We will get back to that
09:19[music] But first, you actually want to do a few more random samples
09:21Just ask your AI to take a couple more random samples of the data for each column
09:24Make sure you understand the format and type of information in each column
09:28What we're basically doing is..
09:29Here is verifying that the data is being parsed correctly and that the AI has a correct understanding of each of these columns
09:34You can even ask it, "What do you think each of these columns represents?" and it might tell you that Salary ID appears to be a unique identifier for each entry
09:42Job ID is likely a unique identifier for jobs or positions
09:46Max Salary, Min Salary, and Med Salary—note that not all entries have complete salary data, etc., etc
09:49So, this is a way for you to validate that the AI understands what's happening, and also that you understand what's happening
09:55The best way to think about this is that your AI is a very competent but still very junior developer, data scientist, or data analyst
09:59So, you need to make sure it understands what the data is
10:03That it's actually receiving
10:04Otherwise, any analysis that you do on top of this could potentially be wrong
10:07So, after you do this, you want to move on to the next step of the DIG framework, which is introspection
10:11This is when you want the AI to start looking at the data that it finished describing, [music] and think about the patterns and relationships that exist in the data
10:19This is also another great way to catch any misconceptions that the AI may have
10:22Notices we're just being very skeptical all the time
10:24Very important
10:26You can just ask, "Tell me some interesting questions that could be answered with this data set, and why they would be interesting." And it might come up with some questions like, "Is there a relationship..." Between compensation types, for example, base salary and variability in salary ranges
10:36What’s interesting is that understanding whether certain compensation types like bonuses or equity are more likely associated with higher salary ranges can help employees and employers make more informed decisions about how they structure pay packages
10:47Here's a question that came up, which could be a red flag: Are there any noticeable patterns in salary data for different currencies if additional currencies exist? So, when you see this, you want to think to yourself, oh, like, are there actually other currencies that exist? And you might want to double-check yourself to see if..
11:03Actually, the data is not in USD
11:04In this case, there are actually no other currencies
11:06So, that's when you want to tell the AI that all currencies are actually listed in USD, so it knows that information going forward
11:13If you catch your AI asking questions like these, or if you catch your AI asking questions that cannot be answered by the data set, you should ask it to generate more questions that can be answered from the data set
11:25In this way, you're really helping the AI and yourself to ensure that you really understand what's happening in the data set
11:28It's also actually quite a good exercise because sometimes AI will come up with different insights and analyses that you might not have thought of
11:34I thought of doing
11:36I know this might seem a little tedious, and you just want to skip to making graphs and charts and doing analysis, right? But do not skip these steps, okay? Trust me
11:41Because that's the thing with data — it's one of those things where if you mess up, it will propagate throughout your entire analysis
11:48So, it is really worth the effort to actually make sure that everything is understood correctly
11:51And this is actually the same with humans too
11:55It's not like an AI problem
12:00Even when I was a data scientist, I spent a significant amount of time doing exploratory data analysis, making sure that I understood exactly what was happening in the data and clarifying all that information as..
12:04Well, because I knew if I just rushed into things, I would probably end up making a mistake and be very embarrassed when someone catches my mistake or, worst case, get fired because I made a really dumb mistake and, you know, lost the company a lot of money or something like that
12:17Anyway, so after you do this, the third step of the [music] framework is goal setting
12:20It's very important that your AI understands what it is that you're trying to achieve
12:23If you just tell it to analyze this data, your AI is going to be like, "What? What the heck? What does that even mean? What am I supposed to analyze? What's the result?" So, it's the same
12:31You have to be very clear about what the goal actually [music] is
12:33So, you could tell the AI, "My goal is to answer a couple of these questions, the questions that you know it generated previously, and turn them into a really exciting, interesting report to post on LinkedIn." This really helps provide context because then your AI is able to do this analysis and then generate things like LinkedIn ideas about how you can put it together in the form of a LinkedIn post
12:54This is going to be very different if you were actually analyzing this data in order to, you know, do something very serious like generate a report for your boss
13:00This is also just part of good prompt engineering practices
13:03So, if you do feel like you want to brush up your prompt skills..
13:07Engineering a little bit to be able to be more clear about what it is that you want, I do recommend that you check out a video that I have over here, which covers the foundations of how to do good prompt engineering
13:14So, check it out over here
13:16Anyway, whenever you have a data set that you want AI to help you analyze, it would be really helpful for you to go through this DIG framework
13:20It is a really great foundation, and you can build on top of this as well
13:25[music] Now, all the stuff that we talked about earlier is pretty standard for if you're doing any type of data analysis using Excel, Python, SQL, or whatever
13:31It's just more convenient doing it in a conversational fashion with AI
13:36But there are certain things
13:37that you can do with AI which would be extremely difficult for you to do using traditional tools
13:40For example, if you're job hunting right now and you have access to this dataset, you might be thinking, "Oh, I'm looking for a job that pays between $50,000 and $80,000, on the East Coast, and specifically works with wood." I don't know, something like that, right? So, in this data, there is no specific section indicating whether the job involves working with wood or not, or the materials you're working with
13:59It also doesn't specify if it's on the East Coast or West Coast
14:06It's just the location, like Chicago, right? But because of generative AI's capabilities, you're able to..
14:11Like filter through this data in a way that's far more intelligent to be able to find the rules that you could potentially be interested in
14:19[music] This would be so hard to do if you didn't have GenAI
14:23And later on in the video, I have a lot more examples which I'll show you, like GenAI-specific really cool data analysis things that you can do
14:28There's also one more thing that I thought was really cool in this module of the course, which is the idea of traceability and replication
14:35I thought this was super clever because a major issue that people face when doing traditional data analysis is that they would come up with some sort of solution, and then it would be stuck in a Jupyter notebook or whatever, and it..
14:46It would actually be very difficult for other people to reproduce that analysis
14:49[music] But with AI, you can actually ask AI to come up with a traceability document that allows other people to perform the same analysis to validate the results
14:56You [music] can ask, "Let's create a traceability document to make sure that others can, one, know what data was used; two, how the analysis was performed; and three, threats to validity." We want a guide for someone else to be able to replicate and understand the limitations of the analysis
15:11You can, you can save this traceability information as a readme.md
15:13Uh, don't worry if you don't know what that is—it's just very common for software engineers to store it this way, but… You can kind of store it like a Word document; whatever doesn't actually matter
15:23And then, for each analysis and visualization, you can ask it to write a single Python script that performs the full analysis to produce the visualization and the results
15:31I think it's a really, really clever idea and a smart thing to do if you're doing any type of data analysis using AI
15:37 All right, time for our next little quiz
15:39Please answer the questions on screen in the comments
15:42Yay! Okay, we can move on to some examples
15:45I'm really excited for this section
15:47The first example is super simple but actually really helpful
15:50It's pretty much like any small document—you can just directly upload it, dig into it, and then..
15:56It can proceed to analyze that information and transform it in whatever way you need
16:00For example, if you have structured data like a CSV file containing all the different types of inventory over the past few months, you can ask it to filter for different types of inventory
16:08You can ask what the trends in the inventory are over time, whether certain items are becoming more popular or less popular, and maybe you want to remove those that are overstocked
16:18You can even ask it to develop a predictive model to determine which inventories you should be stocking for the next few months, helping you optimize the amount of inventory you maintain
16:26You don't have to have too much data, and you also don't want too little
16:30You can create visualizations, both static and dynamic
16:35For example, you might want to make a bar chart that ranks all the different types of inventory you have
16:37You might also want to create a time series graph showing inventory changes over time
16:38Additionally, you can build dashboards, including interactive dashboards
16:40For this specific one, the cloud-based models as of the time of filming are much better than previous models for creating interactive dashboards
16:47They also usually generate code more accurately for analysis and tend to hallucinate less
16:53However, this is based on the time of filming, and I don't know if this will change in the future
16:59In the future, but just FYI, AI data analysis with different media formats is also a really cool application
17:03For example, you can have a video and ask it to extract 10 frames from this video, evenly spaced out every 1 second
17:08Then you can ask it to resize these images to 300 pixels wide, convert them to grayscale, and increase contrast by 30%
17:14You can also ask it to create animated GIFs by combining the images, flipping to the next image at 1-second intervals
17:24Additionally, you can ask it to turn the images into PowerPoint presentations, and catalog all of the images into a CSV file with the filename and the original video file name from which each image was extracted
17:32Operations applied to it
17:35So really, really cool that you can manipulate multimedia using AI
17:38Prior to AI, this would have been so difficult to do
17:41Another example of data analysis using AI is by automating tasks with zip files
17:46Zip files are very, very convenient and amazing because not only can you put a lot of different files into a single zip file, but you can also maintain the folder hierarchy within the zip files
17:56This means that you can zip together many different files and ask the AI to analyze them all simultaneously
18:04For example, you can have multiple Excel files that you're instructing it to combine, search, and perform various operations on
18:09Then, afterwards, you can decompress everything and build it all back
18:10Together and then send it back to you
18:12Also, Grave, if you need help organizing different files, you can ask the AI: one, I want you to help figure out what is in them by opening and reading each one to create a summary; two, I want you to propose a folder structure that would better organize the files; three, I want you to propose better naming for each file using just A to Z and 0 to 9, keeping the extensions; and four, when you have all of this done, show me your proposed folder structure and names
18:33Then it will do that, and finally, once you're happy with it, you can ask it to zip everything up again and send it back to you
18:38Voila, everything is well organized and beautifully arranged
18:40And the final example I’m going to
18:41To show from the course is a little bit more advanced, but so cool
18:44This is when you can actually turn conversations into software programs
18:49Let me explain
18:53So, say for example, you have a sequence of analyses that you did, right? Like, for example, you have some sort of movie, and then you ask it to get ten frames from this movie spaced one second apart
18:57I don't know, maybe you maximized it, did some photo manipulations on it, and then combined them together, generated some descriptions for it, and then put them all into a CSV file
19:08You can then ask the AI to turn this process into a Python program that I can download and run on my computer, providing the path to the documents as a command line argument
19:15Arguments
19:23Zip up the program for me to download, and then it can literally go and actually write a script that performs all of these different steps, and then put them all together in an executable program
19:27That is so cool
19:31You can literally do this for any sequence of analyses that you do
19:35You can just automate it like that
19:37At least for me, that blows my mind
19:40That is so cool
19:43[music] All right
19:46All right
19:49I could literally go on forever, but I'm going to stop for this section for now, and I'm going to put the next little quiz onto the screen
19:51Please answer these questions and put them in the comments
19:53Okay
19:55So, I wanted to include this final section because I wanted to make sure that you understand that just doing For data analysis using AI, you don't need to stop there
20:02There's actually so much more that you can do on top of that
20:12From the examples we've already seen, we [music] can take this data analysis and then use it to generate emails, create social media posts, produce reports, PowerPoint slides, and even build software programs and dashboards
20:14But that's not all
20:18You can even build full applications based on these analyses
20:20And no, you don't actually need to know how to code
20:24You can just use no-code platforms
20:26Say you've analyzed a lot of traffic data
20:28You can actually make this into an application that analyzes real-time traffic data and then, I don't know, gives alerts to people
20:32Reports based upon traffic incidents
20:34You can have applications that are able to take videos and blur out people's faces or different identifications within the video
20:42Here's an example of an investment research AI agent that people who join our AI Agents Bootcamp will build, which has an entire database with information about investments and has this interface where the user can ask it specific questions, and it will analyze that data to generate certain types of responses, conversations, and reports
21:02Yeah, there is so much you can do
21:04Data truly is power, and being able to analyze and harness that power by using AI just opens up so many possibilities
21:09All right, [music], I'm going to stop here
21:14You do want to dive into how to actually build out these applications, agents, and things like that
21:17I'll link a few videos in the description that go into a lot more detail about how to do this
21:22But for this video, I'm going [music] to end it for now
21:25I really hope this was a very helpful video for you, and that you have lots of ideas for how to analyze your data now using [music] AI
21:27Vibe Data Analysis
21:30As promised, here is the final little assessment
21:32Please answer the questions on screen and put them into the comments
21:37Thank you so much for watching until the end of this video, and I will see you in the next video or live stream.