Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← AI in Banking Specialist · Lesson 3 of 12

Module Two

📖 Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
3
Module 2 · AI in Banking Specialist

📘 Module 2 · Data & Machine Learning

Hello, future AI expert! 🧠 In Module 1, we learned what AI is and how banks use it. Now we will go deeper: How does AI actually learn? We will talk about data (information) and machine learning (the way AI learns). Don’t worry – we will use simple words, fun stories, and lots of pictures. Let’s dive in!

🎯 Learning Objectives

After this module, you will be able to:

  • Explain what data is and why AI needs it.
  • Describe machine learning in simple words.
  • Give examples of data in banking.
  • Understand how AI finds patterns.
  • Know the difference between training and testing.

📖 Warm-up Story · The Smart Fruit Sorter

At a big fruit market in Ibadan, there was a young girl named Chidi. She helped her mother sort mangoes. There were green mangoes, yellow mangoes, and some with spots. Chidi could sort them in seconds because she had seen so many mangoes since she was little.

One day, a man brought a machine that could sort fruit. But it didn't know anything! Chidi showed it many mangoes: “This is green, this is yellow, this has spots.” The machine looked and learned. Soon it could sort by itself. That machine used data (the pictures of mangoes) and machine learning (it learned from examples).

In banking, AI learns the same way – from lots of examples (data). The more examples, the smarter it gets!

📚 Main Lessons

Lesson 1: What is Data?

Definition: Data is information. It can be numbers, words, pictures, or sounds.

Why important? AI needs data to learn – like a student needs books to study.

Simple explanation: Data is like ingredients for a cake. Without ingredients, you can’t bake.

Real-life example: Your name, age, and school are data about you.

School example: Your grades (math: 90, English: 85) are data.

Home example: The list of groceries your mum writes is data.

Nigerian example: When you buy airtime, the amount and phone number are data.

  Data types:
  ----------
  Numbers: 100, 200, 3.5
  Words: "Hello", "Bank"
  Pictures: a photo of a naira note
  Sounds: your voice saying "transfer"
      

📌 Mini summary: Data = information. AI eats data!

Lesson 2: What is Machine Learning?

Definition: Machine Learning (ML) is a way for computers to learn from data without being told every step.

Why important? ML makes AI smart. It finds patterns that humans might miss.

Simple explanation: Instead of giving a computer a rule, you give it examples, and it figures out the rule itself.

Real-life example: Your email app learns to mark spam because you mark some emails as spam.

School example: A teacher shows you many addition problems. You learn the pattern without memorising every sum.

Home example: Your TV learns which channels you like and suggests them.

Nigerian example: A banking app learns your spending habits and suggests a budget.

  Machine Learning flow:
  --------------------
  Data in → ML finds patterns → Makes predictions
      

📌 Mini summary: Machine Learning = learn from examples.

Lesson 3: Training – Teaching AI

Definition: Training is when we give AI many examples so it can learn.

Why important? Without training, AI knows nothing.

Simple explanation: Like teaching a baby to say “mum” – you repeat it many times.

Real-life example: You show an AI 10,000 pictures of cats and dogs. It learns to tell them apart.

School example: Your teacher gives you many math problems to practice.

Home example: You learn to tie your shoes after many tries.

Nigerian example: A bank trains its AI with thousands of past transactions to detect fraud.

  Training process:
  ----------------
  Examples → AI looks → AI finds patterns → AI becomes smart
      

📌 Mini summary: Training = teaching AI with examples.

Lesson 4: Testing – Checking AI

Definition: Testing is when we give AI new examples it has never seen to check if it learned well.

Why important? We need to know if AI is smart or not.

Simple explanation: After studying, you take a test. That’s testing.

Real-life example: After training on old exams, AI takes a new exam.

School example: You learn spellings all week, then on Friday your teacher gives a spelling test.

Home example: You learn a new game, then you play a match to test your skill.

Nigerian example: A bank tests its AI with recent transactions it hasn't seen before to see if it catches fraud.

  Training data → AI learns → Test data → Check accuracy
      

📌 Mini summary: Testing = check if AI really learned.

Lesson 5: Patterns – What AI Looks For

Definition: A pattern is something that repeats or is similar.

Why important? AI finds patterns to make predictions.

Simple explanation: If every time it rains, you carry an umbrella, that’s a pattern.

Real-life example: AI sees that people who buy bread often buy butter too – that’s a pattern.

School example: You notice that math class is always after break – that’s a pattern.

Home example: Your dad comes home at 6 pm every day – that’s a pattern.

Nigerian example: AI sees that fraud often happens at night – it learns that pattern.

  Pattern example:
  ---------------
  If amount > 500,000 and location = foreign → might be fraud
      

📌 Mini summary: Patterns = repeated things AI notices.

Lesson 6: Features – The Clues

Definition: Features are the important pieces of data that AI uses to make decisions.

Why important? Features help AI focus on what matters.

Simple explanation: If you want to guess someone’s age, you look at their hair, height, voice – those are features.

Real-life example: For a loan, AI looks at income, job, and past loans – these are features.

School example: To know if a student will pass, you look at attendance, homework, and test scores.

Home example: To decide if you can have a pet, your parents look at space, time, and money.

Nigerian example: AI uses features like BVN, transaction history, and phone number to verify identity.

  Features for loan:
  -----------------
  - Income amount
  - Number of dependents
  - Previous loans repaid
      

📌 Mini summary: Features = clues AI uses.

Lesson 7: Labels – The Answer

Definition: A label is the correct answer that we give AI during training.

Why important? Labels tell AI if it’s right or wrong.

Simple explanation: When you learn animals, your teacher says “that’s a dog” – that’s a label.

Real-life example: In training, we give AI a transaction and say “this is fraud” – that’s the label.

School example: In a spelling test, the correct spelling is the label.

Home example: Your mum says “this is salt” – that’s a label.

Nigerian example: A bank labels past transactions as “fraud” or “not fraud” to train AI.

  Training with labels:
  --------------------
  Transaction 1 → label: NOT fraud
  Transaction 2 → label: FRAUD
  Transaction 3 → label: NOT fraud
      

📌 Mini summary: Labels = correct answers AI learns from.

Lesson 8: Supervised Learning – With a Teacher

Definition: Supervised learning is when we give AI the correct answers (labels) during training.

Why important? It’s the most common way AI learns.

Simple explanation: Like a teacher showing you a math problem and the correct answer.

Real-life example: Showing AI pictures of cats (with label “cat”) and dogs (label “dog”).

School example: Your teacher gives you a question and the answer – you learn from that.

Home example: Your parents teach you the names of fruits with labels.

Nigerian example: A bank trains AI to read cheques by showing it cheques with the correct amounts labelled.

  Supervised Learning:
  -------------------
  Input (data) + Label (answer) → AI learns → can predict labels for new data
      

📌 Mini summary: Supervised = learning with a teacher (labels).

Lesson 9: Unsupervised Learning – No Teacher

Definition: Unsupervised learning is when AI looks at data and finds patterns without any labels.

Why important? It helps find hidden groups or patterns.

Simple explanation: Like sorting toys into groups without anyone telling you how – you just notice similarities.

Real-life example: AI groups customers by spending habits – without anyone telling it which group is which.

School example: You organise your books by colour without a teacher telling you.

Home example: You notice that your brother and sister like different cartoons – that’s grouping.

Nigerian example: A bank uses unsupervised learning to find groups of customers who save money differently.

  Unsupervised Learning:
  ---------------------
  Data in (no labels) → AI finds groups → "these customers are similar"
      

📌 Mini summary: Unsupervised = learning without labels.

Lesson 10: Accuracy – How Smart is AI?

Definition: Accuracy is the percentage of correct predictions AI makes.

Why important? We want AI to be correct most of the time.

Simple explanation: If AI answers 9 out of 10 questions correctly, its accuracy is 90%.

Real-life example: If an AI fraud detector catches 95 frauds out of 100, accuracy is 95%.

School example: If you get 8 out of 10 in a test, your accuracy is 80%.

Home example: If your mum guesses the weather correctly 7 days out of 10, accuracy 70%.

Nigerian example: A bank measures how often its AI correctly flags fraud – they want high accuracy.

  Accuracy formula:
  -----------------
  (Correct predictions / Total predictions) × 100
      

📌 Mini summary: Accuracy = how often AI is right.

Lesson 11: Overfitting – When AI Learns Too Much

Definition: Overfitting is when AI learns the training data perfectly but fails on new data.

Why important? We want AI to work well on new examples, not just the ones it saw.

Simple explanation: Like memorising a poem without understanding it – you can’t answer questions about it.

Real-life example: An AI that recognises only your handwriting but not anyone else’s.

School example: You memorise the answers to practice questions but fail the real exam with different questions.

Home example: You learn to make only one type of cake and can’t bake any other.

Nigerian example: If a bank’s AI is trained only on Lagos transactions, it might fail in Kano.

  Overfitting:
  -----------
  AI: "I know every training example!" → fails on new data
      

📌 Mini summary: Overfitting = too focused on training data.

Lesson 12: Underfitting – When AI Doesn't Learn Enough

Definition: Underfitting is when AI doesn’t learn the patterns well enough and makes many mistakes.

Why important? We need AI to learn enough to be useful.

Simple explanation: Like studying only a little for a big exam and failing.

Real-life example: An AI that can’t tell cats from dogs because it was given too few examples.

School example: You only learn the first page of a 10-page chapter – you fail the test.

Home example: You try to cook jollof rice once and it doesn’t taste good – you need more practice.

Nigerian example: A bank’s AI misses many frauds because it was trained on very few fraud examples.

  Underfitting:
  -------------
  AI: "I didn't get enough data" → poor predictions
      

📌 Mini summary: Underfitting = not enough learning.

Lesson 13: Bias – Unfairness in AI

Definition: Bias happens when AI makes unfair decisions because the data was not balanced.

Why important? We want AI to treat everyone fairly.

Simple explanation: If you only see red cars, you might think all cars are red – that’s bias.

Real-life example: An AI that gives loans mostly to one group because the data had more examples of that group.

School example: If your teacher only asks boys questions, that’s bias.

Home example: If you think all dogs are big because you only saw big dogs – that’s bias.

Nigerian example: A bank must ensure its AI doesn't favour certain regions or ages unfairly.

  Bias:
  -----
  Data not balanced → AI learns unfair patterns → unfair decisions
      

📌 Mini summary: Bias = unfairness from unbalanced data.

Lesson 14: Data Quality – Clean Data is Good Data

Definition: Data quality means the data is correct, complete, and not messy.

Why important? If data is dirty (wrong or missing), AI learns wrong things.

Simple explanation: If you use a broken ruler, you measure wrong – bad data gives bad AI.

Real-life example: If a bank has missing customer addresses, AI can’t send alerts.

School example: If your attendance record is wrong, you might get marked absent.

Home example: If you write the wrong phone number, you miss calls.

Nigerian example: Banks clean their data before training AI – they remove duplicates and fix errors.

  Data quality:
  -------------
  Good data → Good AI
  Bad data → Bad AI
      

📌 Mini summary: Clean data = good AI.

Lesson 15: Putting It All Together

Definition: Data + ML + Training + Testing = Smart AI.

Why important? All pieces work together to make AI useful.

Simple explanation: Like baking a cake – you need ingredients (data), a recipe (ML), and practice (training).

Real-life example: A bank collects transaction data, uses ML to find patterns, trains the AI, and tests it – now it can detect fraud.

School example: You study, practice, and take tests to learn.

Home example: You learn to ride a bike – you practice many times.

Nigerian example: Nigerian banks combine all these steps to build AI that helps customers 24/7.

  AI building steps:
  -----------------
  1. Collect data
  2. Clean data
  3. Choose ML method
  4. Train AI
  5. Test AI
  6. Deploy AI
      

📌 Mini summary: All steps together make a working AI.

🔑 Key Vocabulary

  • Data: Information (numbers, words, pictures).
  • Machine Learning: A way for computers to learn from data.
  • Training: Teaching AI with examples.
  • Testing: Checking if AI learned well.
  • Pattern: Something that repeats.
  • Features: Important clues AI uses.
  • Labels: Correct answers given to AI.
  • Supervised Learning: Learning with labels.
  • Unsupervised Learning: Learning without labels.
  • Accuracy: How often AI is correct.
  • Overfitting: Learning training data too well.
  • Underfitting: Not learning enough.
  • Bias: Unfairness from unbalanced data.
  • Data Quality: Data that is correct and clean.

🧠 Important Concepts

  • AI learns from data: Without data, AI is empty.
  • More data = better AI: Generally, more examples help.
  • Training and testing are separate: Never test with training data.
  • Bias can be fixed: Use balanced data and check for fairness.

👣 Step-by-step: Build a simple AI

  1. Collect data (e.g., 1000 transactions).
  2. Clean the data (remove errors).
  3. Split data: 80% for training, 20% for testing.
  4. Train AI with the training data.
  5. Test AI with the test data.
  6. Check accuracy. If low, go back and improve.
  7. Deploy the AI for real use.
  Data → Clean → Split → Train → Test → Deploy
      

🌍 Real-life Examples

  • Netflix: AI learns what you like to suggest movies.
  • Google Translate: AI learns from millions of translations.
  • Banking: AI learns from your spending to detect fraud.

🇳🇬 Nigerian Examples

  • OPay: Uses machine learning to detect fraudulent transactions.
  • Interswitch: Uses AI to analyse payment patterns.
  • Flutterwave: Uses ML to prevent fraud in online payments.

🎈 Fun Examples (kids)

  • AI is like a robot that learns to recognise your toys.
  • AI is like a game that learns which levels you like.
  • AI is like a friend who learns your favourite jokes.

🏠 Everyday Examples

  • Your phone’s keyboard learns the words you type.
  • Spotify suggests songs you might like.
  • Your bank app predicts your monthly spending.

👩‍🏫 Teacher Notes

  • Use the fruit sorter story to explain data and learning.
  • Emphasise that data is everywhere.
  • Show simple examples of patterns (e.g., traffic lights).

👪 Parent Tips

  • Talk about how apps learn your preferences.
  • Explain that AI learns from what you do.
  • Encourage questions about how things work.

💡 Interesting Facts

  • AI can analyse millions of data points in seconds.
  • Machine learning was invented in the 1950s.
  • Banks store huge amounts of data – more than libraries!

❓ Did You Know?

  • Every second, banks process thousands of transactions – all that data can teach AI.
  • AI models can be wrong if the data is not clean.
  • Some Nigerian fintech companies have AI labs to test new ideas.

🧾 Remember This

  • AI = Data + Machine Learning.
  • Training = teaching, Testing = checking.
  • Good data = good AI.
  • AI learns patterns, not magic.

⚠️ Common Mistakes

  • Mistake: AI can learn without data. Truth: AI needs lots of data.
  • Mistake: More data always means better AI. Truth: Data must be clean and relevant.
  • Mistake: Testing with training data. Truth: Always test with new data.

✅ Best Practices

  • Always split data into training and testing sets.
  • Clean data to remove errors and duplicates.
  • Check for bias in data.
  • Update AI with new data regularly.

🖼️ ASCII Illustrations

  Data flow in banking AI:
  -----------------------
  Transactions → Data warehouse → AI model → Decision
      (raw data)    (clean data)   (ML)    (fraud/not)

  Machine learning process:
  ------------------------
  Data → Features → ML Algorithm → Model → Predictions
      

📊 Comparison Tables

Supervised LearningUnsupervised Learning
Has labels (correct answers)No labels
Teacher guides the learningAI finds patterns alone
Used for classification (e.g., fraud vs not)Used for grouping (e.g., customer segments)

Training vs Testing:

TrainingTesting
AI sees the data and labelsAI sees new data without labels
AI learns patternsAI makes predictions
We check if AI is learningWe check if AI is smart

📌 End-of-Module Summary

  • Data is information – AI needs it to learn.
  • Machine learning is how AI learns from data.
  • Training is teaching, testing is checking.
  • AI finds patterns using features and labels.
  • We learned about supervised and unsupervised learning.
  • Good data quality and balanced data are very important.
  • We must watch out for overfitting, underfitting, and bias.

❓ Frequently Asked Questions

  1. What is data? Information like numbers, words, or pictures.
  2. What is machine learning? Computers learning from data.
  3. Why does AI need data? To learn and make decisions.
  4. What is training? Giving AI examples to learn.
  5. What is testing? Checking if AI learned correctly.
  6. What are features? Important clues AI uses.
  7. What are labels? Correct answers given to AI.
  8. What is overfitting? When AI learns training data too well.
  9. What is bias? Unfairness from unbalanced data.
  10. Can AI be wrong? Yes, if data is bad or it didn't learn well.

📝 Review Questions

  1. What is data?
  2. What does machine learning do?
  3. Why do we train AI?
  4. What is the difference between training and testing?
  5. Give an example of a feature.
  6. What is a label?
  7. What is supervised learning?
  8. What is unsupervised learning?
  9. What is accuracy?
  10. What is overfitting?
  11. What is underfitting?
  12. What is bias in AI?
  13. Why is data quality important?
  14. How does AI find patterns?
  15. Name one Nigerian example of AI in banking.

✍️ Fill-in-the-Blank

  1. AI needs ________ to learn.
  2. ________ is when AI learns from data with labels.
  3. We use ________ data to check if AI is smart.
  4. ________ is when AI learns the training data too perfectly.
  5. ________ means data is correct and clean.

Answers: 1. data, 2. Supervised learning, 3. testing, 4. Overfitting, 5. Data quality

✅ True or False

  1. AI can learn without data. (False)
  2. Training and testing should use the same data. (False)
  3. Labels are correct answers for AI. (True)
  4. Overfitting is good for AI. (False)
  5. Bias can make AI unfair. (True)

🔘 Multiple Choice

  1. What does AI need to learn?
    A) Water
    B) Data
    C) Music
    Answer: B
  2. What is machine learning?
    A) A type of music
    B) Learning from data
    C) A food
    Answer: B
  3. What is training?
    A) Giving AI examples
    B) Giving AI a test
    C) Giving AI water
    Answer: A
  4. What is testing?
    A) Giving AI new data to check
    B) Giving AI old data
    C) Giving AI food
    Answer: A
  5. What is a feature?
    A) A clue
    B) A label
    C) A test
    Answer: A
  6. What is a label?
    A) The correct answer
    B) A pattern
    C) A feature
    Answer: A
  7. What is supervised learning?
    A) Learning with labels
    B) Learning without labels
    C) Learning without data
    Answer: A
  8. What is unsupervised learning?
    A) Learning with labels
    B) Learning without labels
    C) Learning without data
    Answer: B
  9. What is overfitting?
    A) Learning too well on training data
    B) Not learning enough
    C) Learning from test data
    Answer: A
  10. What is underfitting?
    A) Learning too well
    B) Not learning enough
    C) Learning from test data
    Answer: B
  11. What is bias?
    A) Fairness
    B) Unfairness
    C) Accuracy
    Answer: B
  12. Why is data quality important?
    A) It makes AI fast
    B) It makes AI correct
    C) It makes AI fun
    Answer: B
  13. Which is a Nigerian bank using AI?
    A) GTBank
    B) Bank of England
    C) Federal Reserve
    Answer: A
  14. What is accuracy?
    A) How fast AI is
    B) How often AI is correct
    C) How much data AI has
    Answer: B
  15. Can AI be wrong?
    A) Never
    B) Sometimes
    C) Always
    Answer: B

🔗 Matching Exercise

TermMatch
DataInformation
Machine LearningLearn from examples
TrainingTeaching AI
TestingChecking AI
FeaturesClues
LabelsCorrect answers

✏️ Short Answer

  1. What is data? Give three examples.
  2. Explain training and testing in your own words.
  3. Why is bias bad in AI?

🎭 Scenario-based

Scenario: A bank wants to build an AI to detect if a customer will pay back a loan. They have 5,000 past loan records. What steps should they follow? What features would they use?

Answer: Collect data, clean it, split into training/test, train AI, test, deploy. Features: income, employment, previous loans.

👥 Group Activity

In groups of 4, discuss: “What kind of data would a bank collect every day? List 10 types of data.” Share with the class.

🧑‍🎓 Individual Activity

Think of a pattern you notice in your day (e.g., what time you eat). Write it down and explain how you learned that pattern.

🗣️ Classroom Discussion

  • Do you think AI can be fair? Why?
  • What would happen if an AI was trained on only one type of data?
  • How can we make sure AI is not biased?

🛠️ Mini Project

Design a simple AI for a bank that suggests a budget. What data would you use? What features? Write a short plan (5 steps).

📋 Practical Assignment

Ask your parents about their bank transactions. What data does the bank collect about them? Write a list of 5 data types.

🏆 Challenge Exercise

Imagine you have 100 examples of fruits (size, colour, weight). How would you train an AI to classify them? Write the steps.

✅ Quiz Answers

Fill-in-the-blank: 1. data, 2. Supervised learning, 3. testing, 4. Overfitting, 5. Data quality.

True/False: 1F, 2F, 3T, 4F, 5T.

MCQ answers: 1B, 2B, 3A, 4A, 5A, 6A, 7A, 8B, 9A, 10B, 11B, 12B, 13A, 14B, 15B.

🎯 Key Takeaways

  • Data is the fuel for AI.
  • Machine learning is how AI learns.
  • Training = teaching, Testing = checking.
  • Patterns, features, and labels are key.
  • Watch out for overfitting, underfitting, and bias.
  • Clean data leads to better AI.

🔜 Preparation for Module 3

In Module 3, we will learn about Building AI Models. We will see how to choose the right ML algorithm and how to evaluate models. Get ready to become an AI builder!

✨ End of Module 2 · You now understand data & machine learning! ✨

🏆 Get Certified

🔒

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (₦2,000 or 20,000 coins), and get a verified certificate with your name on it.

🎓 Sign Up to Get Certified
🛠️ Practice Tools
Hands-on simulators & labs - subscription required.
→
🎯 Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
→