liveBook · Manning

What you will learn in Starting Data Analytics with Generative AI and Python

by Artur Guja, Marlena Siwiak, and Marian Siwiak
Foreword by Sue Tripathi

Chapter by chapter

Chapter 1: Introduction to the use of generative AI in data analytics

1.1 Inherent limitations of generative AI models · 1.2 The role of generative AIs in data analytics · 1.2.1 Generative AI in the data analytics flow · 1.2.2 The complementarity of language models and other data analytics tools · 1.2.3 Limits of generative AIs’ ability to automate and streamline data analytics processes · 1.3 Getting started with generative AIs for data analytics · 1.3.1 Web interface · 1.3.2 Beware of tokens · 1.3.3 Accessing and using the API · 1.3.4 Third-party integrations of generative AI models · 1.3.5 Running LLMs locally · 1.3.6 Best practices and tips for successful generative AI implementation · 1.4 Summary

What you learn in chapter 1 →

Chapter 2: Using generative AI to ensure sufficient data quality

2.1 On a whimsy of fortune · 2.2 A note on best practices · 2.3 Getting started · 2.4 Quality assessment structure · 2.4.1 Data cleaning steps · 2.4.2 Exploratory data analysis elements · 2.5 Data cleaning · 2.5.1 Removing duplicates · 2.5.2 Handling missing values · 2.5.3 Correcting data entry errors · 2.5.4 Data validation · 2.6 Exploratory data analysis · 2.6.1 Reviewing score distribution · 2.6.2 Time series exploration · 2.6.3 Mysterious variable investigation · 2.6.4 Harmonizing data · 2.7 Summary

What you learn in chapter 2 →

Chapter 3: Descriptive analysis and statistical inference supported by generative AI

3.1 Research questions · 3.2 Analysis design · 3.3 Descriptive data analysis · 3.3.1 Popularity of product categories · 3.3.2 Performance of products in their categories and regions · 3.3.3 Review scores distribution · 3.3.4 Order status · 3.4 Inferential analysis · 3.4.1 Before you begin · 3.4.2 Relationship between product attributes and shipping costs · 3.4.3 Relationship between product, transaction, shipping attributes, and the review score · 3.4.4 Differences in sales performance and customer satisfaction between sellers · 3.5 Summary

What you learn in chapter 3 →

Chapter 4: Using generative AI for result interpretations

4.1 Problem definition · 4.2 Popularity of product categories · 4.3 Performance of products in their categories and regions · 4.4 Review scores distribution analysis · 4.5 Order status · 4.6 Relationship between product attributes and the shipping costs · 4.7 Relationship between product, transaction, shipping attributes, and the review score · 4.8 Differences in sales performance and customer satisfaction between sellers · 4.9 Summary

What you learn in chapter 4 →

Chapter 5: Basic text mining using generative AI

5.1 Text mining in the era of generative AI · 5.1.1 Generative AI is a game changer · 5.1.2 Beware of AI intimidation · 5.1.3 Unpacking the constraints · 5.2 Preparing for analysis · 5.2.1 Data quality · 5.2.2 Customer feedback preparation example · 5.3 Frequency analysis · 5.3.1 What can we learn from frequency analysis of customer reviews? · 5.3.2 Direct frequency analysis with generative AI · 5.3.3 Uploading a data file to ChatGPT for frequency analysis · 5.3.4 Extracting the most common words · 5.3.5 Extracting the most common phrases · 5.3.6 Understanding the output · 5.4 Co-occurrence analysis · 5.4.1 What can we learn from co-occurrence analysis? · 5.4.2 Co-occurrence analysis in practice · 5.4.3 Understanding the output · 5.5 Keyword search · 5.5.1 What can we learn from keyword search? · 5.5.2 Generating keywords with generative AI · 5.5.3 Generating keywords in practice · 5.5.4 Searching for keywords · 5.5.5 Improving keyword search · 5.5.6 Comparing generative AIs: Code snippets for positive review searches · 5.5.7 Seeking analytical inspiration · 5.6 Dictionary-based methods · 5.6.1 What can we learn from dictionary-based methods? · 5.6.2 Finding resources · 5.6.3 Interpreting resources · 5.6.4 Adapting the code to chosen resources · 5.6.5 Improving dictionary-based search · 5.7 Summary

What you learn in chapter 5 →

Chapter 6: Advanced text mining with generative AI

6.1 Review analysis · 6.2 Sentiment analysis · 6.2.1 What can you learn from sentiment analysis? · 6.2.2 Direct sentiment analysis with generative AIs · 6.2.3 Sentiment analysis with generative AI’s API · 6.2.4 Sentiment analysis with machine learning · 6.2.5 Sentiment analysis with a suboptimal model · 6.2.6 Sentiment analysis on translated inputs · 6.2.7 Sentiment analysis with multilingual models · 6.2.8 Sentiment analysis with zero-shot learning models · 6.2.9 Comparing results of advanced sentiment analysis · 6.3 Text summarization · 6.3.1 How can you benefit from text summarization? · 6.3.2 How can generative AI help in text summarization? · 6.3.3 Summarizing text with ChatGPT · 6.3.4 Summarizing text with dedicated libraries · 6.3.5 Topic modeling · 6.4 Summary

What you learn in chapter 6 →

Chapter 7: Scaling and performance optimization

7.1 Performance measurement · 7.1.1 Execution time · 7.1.2 Throughput · 7.1.3 Resource utilization · 7.2 Improving code performance · 7.2.1 Optimizing code · 7.2.2 Scaling code · 7.3 Cloud-based deployment · 7.3.1 What is cloud computing? · 7.3.2 Moving your code to the cloud · 7.4 Code conversion · 7.5 Summary

What you learn in chapter 7 →

Chapter 8: Risk, mitigation, and tradeoffs

8.1 The risks of GenAI, in context · 8.2 General best practices · 8.2.1 AI use policy · 8.2.2 Encouraging transparency and accountability · 8.2.3 Educating stakeholders · 8.2.4 Validating model outputs with expert knowledge · 8.3 AI delusion and hallucination risks · 8.4 Mitigating misinterpretation and miscommunication risks · 8.4.1 Ensuring contextual understanding · 8.4.2 Tailoring model prompts and iterative query refinement · 8.4.3 Implementing post-processing techniques · 8.4.4 Implementing best practices for clearly communicating results · 8.4.5 Establishing a feedback loop · 8.5 Model bias and fairness risks · 8.5.1 Recognizing and identifying bias in model outputs · 8.5.2 Applying bias detection and mitigation techniques · 8.5.3 Encouraging diversity and ethical use of generative AIs · 8.5.4 Continuously monitoring and updating models · 8.6 Privacy and security risks · 8.6.1 Identifying sensitive data · 8.6.2 Data anonymization and pseudonymization · 8.6.3 Social engineering and phishing · 8.6.4 Compliance with data protection regulations · 8.6.5 Regular security audits and assessments · 8.6.6 Employee training and awareness · 8.7 Legal and compliance risks · 8.7.1 Understanding applicable regulations · 8.7.2 Intellectual property and licensing · 8.7.3 Transparency and explainability · 8.7.4 Establishing a compliance framework · 8.7.5 Regularly reviewing and updating compliance practices · 8.8 Emergent risks · 8.8.1 Rogue models · 8.8.2 Vulnerable crown jewels · 8.8.3 Unknown unknowns · 8.9 Summary

What you learn in chapter 8 →

Concepts explained in this book

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.