Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← Denovo AI for Business Growth · Lesson 7 of 14

Module Sx

📖 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.
7
Module 6: Building Your First Simple AI

🛠️ Module 6: Building Your First Simple AI

🌟 Module Introduction

Welcome back, young builder! In Module 5, we learned about De Novo AI – artificial intelligence built from scratch for a specific business. That was the “what” and the “why.” Now, in Module 6, we are going to learn the “how.”

Have you ever built a model with Lego bricks? You start with a pile of bricks, you follow a plan, and you create something amazing. Building a simple AI is very similar. You start with data (your bricks), you use an algorithm (your plan), and you create a smart program (your model).

In this module, we will build our very first simple AI together – using only our brains, paper, and maybe a simple spreadsheet. We will not write complicated computer code (we will save that for later). Instead, we will learn the ideas behind how AI is built. By the end, you will have built a working AI that can make predictions – just like the ones used by real businesses!

Remember, this is for beginners. We will take it step by step, and we will have lots of fun along the way. Let’s begin!


🎯 Learning Objectives

By the end of this module, you will be able to:

  • Explain the difference between data, algorithm, and model.
  • Describe what a decision tree is and how it works.
  • Build a simple decision tree using real data.
  • Understand what “training” and “testing” mean in AI.
  • Use a simple AI to make predictions about everyday problems.
  • Identify the parts of an AI project: problem, data, algorithm, training, testing, and deployment.
  • Explain why we need to test our AI before we trust it.
  • Work with a team to build an AI for a school problem.

📖 Warm‑up Story: Tunde’s Smart Football Coach

Tunde was the captain of his school football team in Ibadan. Every week, he had to choose which players would start the match. But Tunde noticed something: some players played better on sunny days, while others played better when it was raining. Some players were faster in the morning, others were better in the afternoon.

Tunde thought, “I wish I had a smart assistant to help me pick the best team for each match.”

He remembered his older sister, who was studying AI. She told him, “You can build a simple AI to help you! Just write down the conditions – like weather, time, and player performance – and make a decision tree.”

Tunde was excited. He took a big piece of paper and drew a tree. At the top, he asked: “Is it sunny?” If yes, he went to one branch. If no, he went to another. He kept adding branches for “time of day,” “opponent strength,” and “player fitness.”

After a few weeks, Tunde’s decision tree was working so well that his team won three matches in a row! His friends called him “Coach AI.” Tunde had built his very first AI – a decision tree – without even using a computer. He learned that AI is not magic; it is just smart thinking put into a clear plan.

Now, you are going to do the same thing. Let’s build your first AI!


📚 Main Lessons

Lesson 1: What is a Simple AI?

Definition: A simple AI is a computer program that follows clear rules to make decisions or predictions.

Why it is important: Simple AI is the foundation for all advanced AI. If you understand simple AI, you can understand any AI.

Simple explanation: A simple AI is like a flow chart that answers questions one by one until it reaches a conclusion.

Real‑life example: A coffee machine that decides how much water to use based on the cup size you choose.

School example: A system that recommends which book to read based on your favourite subject.

Home example: A thermostat that turns on the heater if the temperature drops below 20°C.

Nigerian example: A simple AI that tells a farmer whether to plant yams or cassava based on the soil type.

   Simple AI = Questions + Answers + Decisions
   Like a "choose your own adventure" book!

Mini summary: A simple AI uses rules to make decisions.


Lesson 2: Data – The Fuel for Our AI

Definition: Data is the information we feed into our AI so it can learn.

Why it is important: Without data, our AI is like a car without petrol – it cannot go anywhere.

Simple explanation: Data are the examples we show the AI. For example, if we want the AI to know what a cat looks like, we show it many pictures of cats.

Real‑life example: A weather app uses data from satellites and sensors to predict rain.

School example: Your teacher uses your test scores (data) to know which topics you understand.

Home example: You keep a list of your family’s favourite meals – that is data!

Nigerian example: A market woman records how many yams she sells each day – that is her data.

   Types of data:
   +----------+------------------+
   | Numbers  |  15, 20, 3, 100 |
   +----------+------------------+
   | Words    |  "sunny", "rain" |
   +----------+------------------+
   | Pictures |  photos of goods |
   +----------+------------------+

Mini summary: Data is the information we give to our AI.


Lesson 3: Algorithm – The Recipe

Definition: An algorithm is a set of step-by-step instructions for solving a problem.

Why it is important: The algorithm tells the AI exactly what to do with the data.

Simple explanation: An algorithm is like a recipe for baking a cake. It tells you the ingredients (data) and the steps (what to do).

Real‑life example: The algorithm for making jollof rice: cook tomatoes, add spices, add rice, simmer.

School example: The steps you follow to solve a long division problem.

Home example: The steps to brush your teeth: put toothpaste on brush, brush, rinse, smile!

Nigerian example: The traditional method for making ogi (pap) – soak, grind, sieve, cook.

   Algorithm for finding the largest number:
   1. Start with the first number as the largest.
   2. Compare with the next number.
   3. If next is larger, replace largest.
   4. Repeat until all numbers are checked.
   5. Output the largest.

Mini summary: An algorithm is a step-by-step recipe for solving a problem.


Lesson 4: Model – The Final Product

Definition: A model is the result after we apply the algorithm to the data. The model can then make predictions.

Why it is important: The model is what we actually use. It is the finished AI.

Simple explanation: If the algorithm is the recipe and data are the ingredients, the model is the final cake you can eat!

Real‑life example: After training a face-recognition AI, the model can recognise your face.

School example: After training a spelling AI, the model can check your spelling.

Home example: After training a plant-watering AI, the model tells you when to water.

Nigerian example: A model that predicts when to harvest cassava based on rainfall data.

   DATA  +  ALGORITHM  =  MODEL (your AI!)
   (ingredients) (recipe)  (finished product)

Mini summary: The model is the final AI that can make predictions.


Lesson 5: Decision Trees – The Easiest AI

Definition: A decision tree is an AI that uses a series of questions (like a tree) to reach a conclusion.

Why it is important: Decision trees are easy to understand, draw, and explain. They are the perfect starting point.

Simple explanation: A decision tree is like a game of 20 questions. You ask yes/no questions until you guess the answer.

Real‑life example: A doctor uses a decision tree to decide if a patient has a cold or the flu based on symptoms.

School example: A decision tree to decide which extracurricular activity to join: "Do you like sports? Yes -> Football, No -> Music."

Home example: A decision tree to decide what to eat: "Are you hungry? Yes -> Is it morning? Yes -> Breakfast."

Nigerian example: A decision tree for a farmer: "Is it rainy season? Yes -> Plant yams, No -> Plant cassava."

   Decision Tree Diagram:
        Is it sunny?
        /        \
      Yes        No
      /            \
   Play football  Stay inside

Mini summary: Decision trees ask questions to reach an answer.


Lesson 6: Building a Decision Tree – Step by Step

Definition: To build a decision tree, we choose the most important question to ask at the top, then add more questions below.

Why it is important: This is how we create our very first AI.

Simple explanation: We look at our data and find the question that splits the data into the clearest groups.

Real‑life example: A store builds a decision tree to decide which products to discount: "Is it a holiday? Yes -> Discount, No -> Keep price."

School example: A decision tree to decide what to study: "Is math test tomorrow? Yes -> Study math, No -> Study reading."

Home example: A decision tree to decide when to do homework: "Is it after dinner? Yes -> Do homework, No -> Play."

Nigerian example: A farmer builds a decision tree: "Is it raining today? Yes -> No irrigation, No -> Irrigate."

   Steps to build a decision tree:
   1. Look at your data.
   2. Pick the most helpful question.
   3. Put that question at the top.
   4. Add branches for "Yes" and "No".
   5. For each branch, add more questions.
   6. Stop when you have a clear answer.

Mini summary: Building a decision tree is like creating a flowchart of questions.


Lesson 7: Training – Teaching Your AI

Definition: Training is when we give the AI lots of data with the correct answers so it can learn the rules.

Why it is important: Training is how the AI gets smart. Without training, it knows nothing.

Simple explanation: Training is like showing a child flashcards. You show a picture of a dog and say "dog." The child learns to recognise dogs.

Real‑life example: A chatbot is trained with thousands of customer questions and their correct answers.

School example: You train a spelling AI by giving it words and their correct spelling.

Home example: You train a chore AI by telling it which chores you have done and when.

Nigerian example: A bank trains its fraud AI by giving it examples of real fraud and legitimate transactions.

   Training loop:
   Give example -> AI predicts -> Check if correct -> If wrong, adjust AI -> Repeat
   (Like a teacher correcting a student)

Mini summary: Training = showing the AI examples so it can learn.


Lesson 8: Testing – Checking If Your AI Works

Definition: Testing is when we use new data that the AI has not seen before to see if it makes correct predictions.

Why it is important: Testing tells us if our AI is really smart or if it just memorised the training data.

Simple explanation: Testing is like a quiz. You study (train) and then you take a test (test) with new questions.

Real‑life example: A weather app is tested with historical weather data. If it predicts yesterday’s weather correctly, it is good.

School example: You test your decision tree with new student data to see if it recommends the right books.

Home example: You test your chore AI by giving it a new week of chores and see if it schedules them well.

Nigerian example: A logistics company tests its delivery route AI with new addresses to see if it finds the fastest routes.

   Train on 80% of data, Test on 20% of data.
   If test accuracy is high, AI is good.
   If low, we need to improve.

Mini summary: Testing = checking if our AI works with new data.


Lesson 9: Improving Your AI

Definition: Improving means making changes to your AI to make it more accurate.

Why it is important: Even good AIs can get better. Improvement never stops.

Simple explanation: If your AI makes mistakes, you find out why and fix it.

Real‑life example: A music app asks you to like or dislike songs to improve its recommendations.

School example: You add more questions to your decision tree to cover more cases.

Home example: You add more data (more meals) to your meal planner AI to make it more accurate.

Nigerian example: A farmer adds more data (soil moisture) to his planting AI to get better predictions.

   Ways to improve:
   - Add more data
   - Add more questions
   - Use better algorithms
   - Fix data errors

Mini summary: Always improve your AI with more data and better questions.


Lesson 10: Deploying Your AI – Putting It to Work

Definition: Deployment means using your AI in the real world to solve the problem you designed it for.

Why it is important: An AI is only useful if it is used.

Simple explanation: After you build and test your AI, you let it help you. It is like making a sandwich – you only eat it after you have made it!

Real‑life example: A store uses its price-prediction AI to set prices for the next month.

School example: Your school uses your book-recommendation AI to help students find books.

Home example: You use your chore AI to plan your week.

Nigerian example: A farm uses its planting AI to decide what to plant in the next season.

   Deployment steps:
   1. Finalise the AI.
   2. Show it to users.
   3. Monitor its predictions.
   4. Keep improving.

Mini summary: Deployment = using your AI in the real world.


🔑 Key Vocabulary

WordSimple Definition
DataInformation like numbers, words, or pictures.
AlgorithmA step-by-step recipe for solving a problem.
ModelThe final AI after training – it can make predictions.
Decision TreeAn AI that uses a series of yes/no questions.
TrainingTeaching the AI by giving it examples.
TestingChecking the AI with new data to see if it works.
DeploymentUsing the AI in real life.
AccuracyHow often the AI gives correct answers.
PredictionWhat the AI guesses or decides.
ImprovementMaking the AI better over time.

🧠 Important Concepts

  • Data + Algorithm = Model. This is the golden formula of AI.
  • Decision trees are simple and powerful. They are a great first AI.
  • Training needs lots of examples. The more, the better.
  • Testing is essential. Never trust an AI without testing it.
  • AI is a cycle: Problem → Data → Algorithm → Training → Testing → Deployment → Improvement.
  • AI is not perfect. It can make mistakes – we must always check it.

👣 Step‑by‑Step Explanation: Building a Decision Tree AI

Let’s build an AI to decide if a student should play outside or study inside.

  1. Define the problem: Should I play outside or study inside?
  2. Collect data: We gather examples: (Weather: Sunny, Day: Saturday) → Play; (Weather: Rainy, Day: Monday) → Study; etc.
  3. Choose the first question: “Is it sunny?”
  4. Draw branches: If yes → “Is it a weekend?” If no → “Is it raining?”
  5. Add more questions: For each branch, add more questions until we have a clear answer.
  6. Test the tree: Use new data (e.g., Weather: Cloudy, Day: Sunday) and see if the tree gives a good answer.
  7. Improve: If the tree makes mistakes, add more questions or fix existing ones.
  8. Deploy: Use the tree to make decisions every day!
   Decision Tree Example:
   Is it sunny?
   /          \
  Yes          No
  /              \
Is it weekend?  Is it raining?
 /    \          /    \
Yes   No        Yes    No
 |     |         |      |
Play  Study    Study   Play

🌍 Real‑life Examples

  • Hospitals: Use decision trees to decide if a patient needs surgery.
  • Banks: Use simple AI to decide if someone can get a loan.
  • Supermarkets: Use AI to decide how much stock to order.
  • Schools: Use AI to recommend courses to students.
  • Logistics: Use AI to find the best delivery routes.

🇳🇬 Nigerian Examples

  • Jumia: Uses AI to recommend products to customers.
  • Flutterwave: Uses AI to detect fraudulent transactions.
  • Paystack: Uses AI to improve payment success rates.
  • FarmBase: A startup that uses AI to help farmers make better decisions.
  • GoMyWay: Uses AI to match travellers with available car seats.

😊 Fun Examples for Children

  • An AI that decides what game to play based on how many friends are around.
  • An AI that chooses the best movie to watch based on your mood.
  • An AI that decides which friend to call for a game.
  • An AI that recommends the best snack based on the time of day.
  • An AI that predicts which classmate will win a race.

🏠 Everyday Examples

  • Choosing what to wear: "Is it cold? Yes → wear a sweater, No → wear a t-shirt."
  • Deciding what to cook: "Do we have rice? Yes → make jollof, No → make pasta."
  • When to leave for school: "Is it past 7:30? Yes → leave now, No → wait."
  • Which route to take: "Is the main road busy? Yes → take the side road, No → take the main road."
  • What to buy: "Is the item on sale? Yes → buy it, No → wait for a sale."

👩‍🏫 Teacher Notes

  • Use physical cards to simulate decision trees – students can sort cards by questions.
  • Encourage students to bring their own data (e.g., favourite snacks, class attendance).
  • Emphasise that building AI is a creative process – there is no single right answer.
  • Show videos or pictures of simple AI applications to keep students engaged.
  • Use group work to foster collaboration and discussion.

👪 Parent Tips

  • Ask your child to build a decision tree for daily family decisions (e.g., what to eat).
  • Play “20 questions” with them to mimic decision tree logic.
  • Point out simple AI in your home: smart devices, online recommendations.
  • Encourage them to collect data (e.g., daily temperature) and make predictions.
  • Discuss the importance of testing – even in school work, we test our knowledge.

🤯 Interesting Facts

  • Decision trees are used by doctors to diagnose diseases.
  • The first decision tree algorithm was invented in the 1960s.
  • Decision trees are so simple that you can draw them on a napkin.
  • They are one of the most used AI methods in business.
  • AI can build decision trees automatically from data – but we are learning to build them manually!

💡 Did You Know?

  • Did you know that Netflix uses AI to recommend movies – and it saves them billions of dollars?
  • Did you know that AI can predict football match outcomes better than some experts?
  • Did you know that you can build a decision tree with only a piece of paper?
  • Did you know that the Nigerian government is investing in AI for agriculture?
  • Did you know that AI is used to sort trash into recycling and waste?

🧷 Remember This

  • Data + Algorithm = Model – the formula for AI.
  • Decision trees are a great way to start.
  • Training = teaching with examples.
  • Testing = checking with new data.
  • Improvement = always make your AI better.
  • Deployment = using your AI to help people.

⚠️ Common Mistakes

  • Using too little data: AI needs many examples to learn well.
  • Not testing: Never use an AI without testing it first.
  • Overcomplicating: Start simple. A small decision tree is better than a huge messy one.
  • Ignoring data quality: Bad data leads to bad predictions.
  • Forgetting to improve: AI needs regular updates with new data.

✅ Best Practices

  • Start with a clear problem statement.
  • Collect clean, relevant data.
  • Design a simple decision tree first.
  • Test with separate data that the AI has not seen.
  • Improve based on test results.
  • Document your AI so others can understand it.
  • Deploy it and monitor its performance.

📊 Illustrations and Tables

Figure 1: AI Building Formula

   DATA  +  ALGORITHM  =  MODEL
   (ingredients) (recipe)  (finished AI)

Figure 2: Decision Tree Example – Weather and Activity

   Is it sunny?
   /          \
  Yes          No
  /              \
Is it weekend?  Is it raining?
 /    \          /    \
Yes   No        Yes    No
 |     |         |      |
Play  Study    Study   Play

Figure 3: Training vs Testing Data Split

   +-------------------+
   |   All Data        |
   +--------+----------+
   | 80%    | 20%      |
   | Train  | Test     |
   +--------+----------+

Table 1: Comparison – Decision Tree vs Other AI

FeatureDecision TreeNeural Network (complex)
UnderstandabilityVery easyHard
Data neededSmall amountHuge amount
Training timeFastSlow
AccuracyGoodVery good
Best forSimple problemsComplex problems

📝 End‑of‑Module Summary

Well done! You have completed Module 6: Building Your First Simple AI. Let’s review what we have learned:

  • AI is made from Data + Algorithm = Model.
  • Data is the information we give to the AI.
  • Algorithm is the recipe that tells the AI what to do.
  • Model is the final AI that can make predictions.
  • Decision trees are the simplest form of AI – they use a series of questions.
  • Training is teaching the AI with examples.
  • Testing is checking the AI with new data.
  • Improvement is making the AI better over time.
  • Deployment is using the AI in real life.
  • We saw many examples – from fun ones like playing outside to real business examples in Nigeria.
  • We learned that building an AI is a cycle – we can always improve it.

You now have the basic skills to build your own simple AI. Remember, even the most advanced AI systems started with simple decision trees. You are on your way!


❓ Frequently Asked Questions (FAQs)

  1. Q: What is the easiest AI to build?
    A: A decision tree is the easiest.
  2. Q: Do I need a computer to build an AI?
    A: No, you can build a decision tree on paper!
  3. Q: How much data do I need?
    A: The more, the better. But even 10 examples can work for a simple tree.
  4. Q: Can my AI make mistakes?
    A: Yes, all AIs make mistakes sometimes.
  5. Q: How do I know if my AI is good?
    A: You test it with data it has not seen before.
  6. Q: Can I improve my AI?
    A: Yes! Add more data or more questions to make it more accurate.
  7. Q: Is a decision tree a real AI?
    A: Yes, it is one of the most common types of AI.
  8. Q: Can I build an AI for my school?
    A: Yes! For example, a book recommendation AI for the library.
  9. Q: Do I need to know maths to build an AI?
    A: For a simple tree, you only need to know how to compare things.
  10. Q: What comes after a decision tree?
    A: You can learn about other algorithms like linear regression and neural networks.

🤔 Review Questions

  1. What are the three ingredients of an AI (Data + ? + ?)
  2. What is a decision tree?
  3. Why do we need data for AI?
  4. What is the difference between training and testing?
  5. What does “deployment” mean?
  6. Give an example of a decision tree at home.
  7. Give an example of a Nigerian business using AI.
  8. How can we improve an AI?
  9. What is an algorithm?
  10. Why is testing important?
  11. Can you build an AI without a computer?
  12. What is the first step in building a decision tree?
  13. What does the “model” do?
  14. What happens if you give an AI bad data?
  15. What is the most important thing about AI?

✍️ Fill‑in‑the‑Blank

  1. Data + __________ = Model.
  2. A __________ is a series of yes/no questions.
  3. __________ is teaching the AI with examples.
  4. We use new data for __________.
  5. __________ means using the AI in real life.
  6. An __________ is a step-by-step recipe.
  7. __________ are the information we give to the AI.
  8. A decision tree is a type of __________ AI.
  9. We should always __________ our AI before trusting it.
  10. AI can make __________, so we must check it.

✅❌ True or False

  1. You need a computer to build any AI. (False)
  2. A decision tree is a type of AI. (True)
  3. Data is not important for AI. (False)
  4. Training and testing are the same thing. (False)
  5. You can improve an AI. (True)
  6. An algorithm is a type of food. (False)
  7. AI can be used in Nigerian agriculture. (True)
  8. Testing helps us know if our AI works. (True)
  9. A model is the final AI. (True)
  10. AI always gives perfect answers. (False)

🔘 Multiple Choice Questions

  1. What does Data + Algorithm = ?
    A) Model
    B) Computer
    C) Robot
    Answer: A
  2. What is a decision tree?
    A) A type of plant
    B) A series of yes/no questions
    C) A computer virus
    Answer: B
  3. Why do we train an AI?
    A) To make it tired
    B) To teach it with examples
    C) To delete it
    Answer: B
  4. What is testing?
    A) Checking the AI with new data
    B) Eating the data
    C) Sleeping on it
    Answer: A
  5. What is an algorithm?
    A) A set of rules
    B) A type of fruit
    C) A song
    Answer: A
  6. Which is a Nigerian example of AI?
    A) Jumia
    B) Amazon
    C) Alibaba
    Answer: A
  7. Can you build a decision tree on paper?
    A) Yes
    B) No
    C) Only on a computer
    Answer: A
  8. What is deployment?
    A) Using the AI
    B) Throwing the AI away
    C) Hiding the AI
    Answer: A
  9. What should you do if your AI makes mistakes?
    A) Ignore it
    B) Improve it
    C) Delete it
    Answer: B
  10. What is the first step in building a decision tree?
    A) Define the problem
    B) Test the AI
    C) Deploy the AI
    Answer: A
  11. What is data?
    A) Information
    B) A computer program
    C) A type of machine
    Answer: A
  12. Which is NOT a type of data?
    A) Numbers
    B) Words
    C) Happiness
    Answer: C
  13. What does the model do?
    A) It makes predictions
    B) It collects data
    C) It sleeps
    Answer: A
  14. Why is testing important?
    A) To see if AI works
    B) To break the AI
    C) To confuse the AI
    Answer: A
  15. What is the best way to improve an AI?
    A) Add more data
    B) Ignore mistakes
    C) Use less data
    Answer: A

🔗 Matching Exercises

Match the term on the left with its description on the right.

TermDescription
1. DataA. The final AI that makes predictions
2. AlgorithmB. Teaching the AI with examples
3. ModelC. Information given to the AI
4. TrainingD. A step-by-step recipe
5. TestingE. Checking the AI with new data

Answers: 1‑C, 2‑D, 3‑A, 4‑B, 5‑E


📝 Short Answer Questions

  1. What is a decision tree in your own words?
  2. Why do we need to test an AI?
  3. Give one example of how a Nigerian business uses AI.
  4. What is the difference between training and testing?
  5. How can you improve a decision tree?

🎭 Scenario‑based Exercises

Scenario 1: Your school wants to know if students will pass or fail an exam based on their homework completion and attendance.

  • What data would you collect?
  • Draw a simple decision tree with two questions.

Scenario 2: A local restaurant wants to know if they should open for lunch on a particular day. They have data on weather, day of the week, and public holidays.

  • What are the possible questions for a decision tree?
  • How would you test the tree?

👥 Group Activity

“Build a Decision Tree for Your School”

In groups of 3-4, think about a problem at your school that a simple AI could solve. For example:

  • Which books to recommend to students.
  • What time to start a sports practice.
  • Which classroom to use for a special event.

Design a decision tree with at least 3 questions. Draw it on a large paper and present it to the class. Explain why you chose each question.


🧑 Individual Activity

Think about a decision you make at home every day (e.g., what to eat for breakfast, which TV show to watch).

  1. Write down the problem.
  2. List the factors (questions) that influence your decision.
  3. Draw a decision tree with at least 3 questions.
  4. Test your tree with 3 different scenarios.
  5. Write a short paragraph on whether your tree makes good decisions.

🗣️ Classroom Discussion Questions

  1. Do you think decision trees are good for solving complex problems? Why or why not?
  2. What are the advantages of using a simple AI like a decision tree?
  3. Can AI ever replace human decision-making? Why or why not?
  4. How can we make sure our AI is fair to everyone?
  5. What problem in your community would you like to solve with a decision tree?

🛠️ Mini Project

“Build a Decision Tree AI for a Shop”

Imagine you own a small shop that sells drinks. You want to predict how many bottles of a new drink to order.

  1. Define the problem.
  2. Collect at least 10 data points (e.g., day of week, weather, if there is a holiday).
  3. Design a decision tree with at least 3 questions.
  4. Draw the tree clearly.
  5. Test it with 5 new data points.
  6. Write a short report on how your AI can help the shop.

📋 Practical Assignment

Use a spreadsheet or a piece of paper to collect data on something you do every day (e.g., what time you wake up, how much water you drink).

  1. Collect data for 7 days.
  2. Use the data to build a simple decision tree that predicts whether you will be on time for school.
  3. Test it with data from day 8 (new data).
  4. Explain the results and how you could improve it.

🏆 Challenge Exercise

“AI for a Farm”

You are the manager of a large farm in Kaduna. You need to decide which crop to plant each season: maize, cassava, or sorghum. You have data on rainfall, temperature, and soil type.

  1. List at least 5 questions for your decision tree.
  2. Draw a complete decision tree.
  3. Explain how you would train and test your tree.
  4. What would you do if the tree makes a wrong prediction?

🔐 Quiz Answers

Fill‑in‑the‑Blank Answers:

  1. Algorithm
  2. Decision tree
  3. Training
  4. Testing
  5. Deployment
  6. Algorithm
  7. Data
  8. Simple
  9. Test
  10. Mistakes

True or False Answers:

  1. False
  2. True
  3. False
  4. False
  5. True
  6. False
  7. True
  8. True
  9. True
  10. False

Multiple Choice Answers: 1A, 2B, 3B, 4A, 5A, 6A, 7A, 8A, 9B, 10A, 11A, 12C, 13A, 14A, 15A


🎁 Key Takeaways

  • ✅ AI is built from Data + Algorithm = Model.
  • ✅ Decision trees are the simplest AI – they ask yes/no questions.
  • ✅ Training = teaching with examples.
  • ✅ Testing = checking with new data.
  • ✅ Always test your AI before using it.
  • ✅ You can improve an AI by adding more data or more questions.
  • ✅ AI can solve real problems – from choosing what to eat to helping a farm.
  • ✅ Anyone can build a simple AI – you just need a problem and some data!

🔜 Preparation for Module 7

In Module 7, we will learn about “AI in Action – Real Business Cases.” We will explore how real companies – from small shops to big corporations – use AI to grow their businesses. We will look at exciting case studies, including some from Nigeria, and we will see exactly how AI is changing the world of work.

To prepare, think about a business you know (maybe your parents’ shop, a market stall, or a local store). Try to imagine how a simple AI could help them. Bring your ideas to class!

See you in Module 7! 🚀


🏆 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.
→