{"id":3765,"date":"2026-11-11T11:38:59","date_gmt":"2026-11-11T08:38:59","guid":{"rendered":"https:\/\/niteducation.com\/resources\/?p=3765"},"modified":"2026-11-11T11:39:01","modified_gmt":"2026-11-11T08:39:01","slug":"ai-vs-machine-learning-vs-data-science","status":"publish","type":"post","link":"https:\/\/niteducation.com\/resources\/ai-vs-machine-learning-vs-data-science\/","title":{"rendered":"AI vs Machine Learning vs Data Science: Explained"},"content":{"rendered":"\n<div class=\"nit-article nit-article--pathway-guide nit-article--software\" itemscope=\"\" itemtype=\"https:\/\/schema.org\/BlogPosting\"><div aria-labelledby=\"nit-article-title\" class=\"nit-pg-hero\"><div>\n<p class=\"nit-pg-kicker\">ICT learning guide <span>Three connected fields<\/span><\/p>\n<p class=\"nit-hero__title\" id=\"nit-article-title\" itemprop=\"headline\">AI vs Machine Learning vs Data Science: What&#8217;s the Difference?<\/p>\n<p class=\"nit-pg-hero__line\">Understand <i>\u00b7<\/i> Compare <i>\u00b7<\/i> Practise<\/p>\n<p class=\"nit-pg-hero__summary\" itemprop=\"description\">Learn the difference through one school ICT help-desk example, a working spreadsheet exercise and a small Python classifier that makes mistakes you can investigate.<\/p>\n<div class=\"nit-pg-hero__actions\"><a class=\"nit-pg-button nit-pg-button--gold\" href=\"#quick-answer\">Get the quick answer<\/a><a class=\"nit-pg-button nit-pg-button--outline\" href=\"#school-ict-example\">Try the examples<\/a><\/div>\n<\/div><div aria-label=\"AI, Machine Learning and Data Science are related but distinct fields\" class=\"nit-pg-hero__art\"><p>Understand the relationship<\/p><div aria-hidden=\"true\" class=\"nit-pg-signpost\"><span class=\"nit-pg-signpost__top\">AI<\/span><span class=\"nit-pg-signpost__centre\">ML<\/span><span class=\"nit-pg-signpost__bottom\">DATA<\/span><\/div><strong>Different purposes. Useful overlap.<\/strong><\/div><div aria-label=\"Article summary\" class=\"nit-pg-hero__meta\"><p><span>Topic<\/span>AI \u00b7 ML \u00b7 Data Science<\/p><p><span>Level<\/span>Beginner<\/p><p><span>Includes<\/span>Excel + Python exercises<\/p><p><span>Updated<\/span>10 November 2026<\/p><\/div><\/div><div class=\"nit-article__body\"><section aria-labelledby=\"quick-answer-title\" class=\"nit-quick-answer\" id=\"quick-answer\"><div class=\"nit-quick-answer__head\"><span aria-hidden=\"true\" class=\"nit-quick-answer__mark\">\u2713<\/span><div><p class=\"nit-quick-answer__label\">Quick answer<\/p><p class=\"nit-quick-answer__kicker\" id=\"quick-answer-title\">What is the difference?<\/p><\/div><\/div><div class=\"nit-quick-answer__body\"><p class=\"nit-quick-answer__text\"><strong>Artificial Intelligence (AI)<\/strong> creates systems that perform tasks associated with intelligence. <strong>Machine Learning (ML)<\/strong> is a branch of AI that learns patterns from data or feedback. <strong>Data Science<\/strong> analyses information to answer questions and guide decisions; it can use ML but does not have to. <a href=\"#ref-1\">[1]<\/a> <a href=\"#ref-2\">[2]<\/a><\/p><ul class=\"nit-quick-answer__signals\"><li>Compare the three<\/li><li>Work through a school example<\/li><li>Try Excel and Python<\/li><\/ul><\/div><\/section><section aria-labelledby=\"comparison-title\" class=\"nit-section-panel\" id=\"comparison\"><h2 id=\"comparison-title\">AI vs ML vs Data Science: Quick comparison<\/h2><div aria-label=\"Scroll horizontally to compare all table columns\" class=\"nit-pg-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-pg-table\">\n<thead>\n<tr>\n<th scope=\"col\">Feature<\/th>\n<th scope=\"col\">Artificial Intelligence<\/th>\n<th scope=\"col\">Machine Learning<\/th>\n<th scope=\"col\">Data Science<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">Purpose<\/th>\n<td>Perform tasks that require intelligent behaviour<\/td>\n<td>Learn useful patterns from examples or feedback<\/td>\n<td>Investigate data and produce evidence-based findings<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Output<\/th>\n<td>An intelligent feature or application<\/td>\n<td>A trained predictive or classification model<\/td>\n<td>An analysis, chart, report, explanation or model<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Training data<\/th>\n<td>Sometimes; not all AI uses ML<\/td>\n<td>Learns from data or interaction<\/td>\n<td>Sometimes; basic analysis needs no model training<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Example<\/th>\n<td>Help a learner troubleshoot a computer problem<\/td>\n<td>Categorise new help-desk messages<\/td>\n<td>Find the most common help-desk problems<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Methods<\/th>\n<td>Search, logical reasoning, rules, ML and more<\/td>\n<td>Classification, regression, clustering, reinforcement learning<\/td>\n<td>Cleaning, descriptive statistics, SQL, visualisation, modelling<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Quality check<\/th>\n<td>Is the system useful, safe and accurate for its task?<\/td>\n<td>Does it perform well on genuinely new cases?<\/td>\n<td>Are the data and conclusions trustworthy?<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div><p class=\"nit-pg-table-note\">On a small screen, swipe horizontally to read the full table.<\/p><p>The labels describe <em>fields and methods<\/em>, not three mutually exclusive products. A trained ML classifier is <strong>already an example of AI<\/strong>; putting it inside an assistant does not magically make it AI for the first time.<\/p><\/section><section aria-labelledby=\"artificial-intelligence-title\" class=\"nit-section-panel\" id=\"artificial-intelligence\"><h2 id=\"artificial-intelligence-title\">What is Artificial Intelligence?<\/h2><p>AI concerns the design of systems that perform tasks we associate with intelligence. A language assistant may interpret a question and produce an explanation. A chess program may search possible moves. An image system may recognise an object. These are different approaches to intelligent behaviour. <a aria-label=\"Reference 1\" href=\"#ref-1\">[1]<\/a><\/p><p>Some AI systems use rules or search rather than a model trained on examples. But do not call every automated task AI. A computer that sends an email at 4 p.m. every Friday simply follows a schedule; no intelligent capability is established by that action alone.<\/p><p><strong>AI example:<\/strong> A school&#8217;s ICT assistant interprets a learner&#8217;s description of a problem, asks a suitable follow-up question and offers safe troubleshooting guidance. It may combine ML, written procedures and ordinary software rules.<\/p><\/section><section aria-labelledby=\"machine-learning-title\" class=\"nit-section-panel\" id=\"machine-learning\"><h2 id=\"machine-learning-title\">What is Machine Learning?<\/h2><p>In ML, a training process uses examples or feedback to build a model that can make predictions, classify information or identify patterns. Unlike a handwritten list of rules for every situation, the model learns relationships from the training process. <a aria-label=\"Reference 1\" href=\"#ref-1\">[1]<\/a> <a aria-label=\"Reference 3\" href=\"#ref-3\">[3]<\/a><\/p><p>A common beginner example is spam filtering. The model studies messages labelled <strong>spam<\/strong> or <strong>not spam<\/strong> and then estimates a category for new messages. It can be wrong, especially when a new message differs from the examples it has seen.<\/p><p>Three ways of learning are useful to recognise:<\/p><ul>\n<li><strong>Supervised learning:<\/strong> Learn from examples with known answers, such as labelled help-desk requests.<\/li>\n<li><strong>Unsupervised learning:<\/strong> Find patterns or groups without supplied answer labels, such as customers who have similar buying habits.<\/li>\n<li><strong>Reinforcement learning:<\/strong> Learn from actions and feedback, such as an agent improving at a game through rewards.<\/li>\n<\/ul><p>A responsible ML workflow defines the task, prepares examples, separates development and evaluation data, trains a model, tests it, examines mistakes and monitors it after deployment. A high score on the training examples alone is not evidence that the model will perform well in daily use. <a aria-label=\"Reference 3\" href=\"#ref-3\">[3]<\/a><\/p><\/section><section aria-labelledby=\"data-science-title\" class=\"nit-section-panel\" id=\"data-science\"><h2 id=\"data-science-title\">What is Data Science?<\/h2><p>Data Science brings together data collection, cleaning, statistics, programming and subject knowledge to answer questions. It is not limited to building ML models. A useful project may end with an Excel chart and a clearly explained finding. <a aria-label=\"Reference 1\" href=\"#ref-1\">[1]<\/a> <a aria-label=\"Reference 4\" href=\"#ref-4\">[4]<\/a><\/p><p>Consider a school asking which ICT problems students report most frequently. Someone must record the reports consistently, correct errors, count them, compare categories and explain what the counts mean. That is data-analysis work within a Data Science approach. An ML model is optional.<\/p><p>Data Science can also study uncertainty, build forecasts, run experiments and use ML. Its distinguishing feature is <strong>the question being investigated and the quality of the evidence<\/strong>, not the size of the dataset or whether a fashionable tool is involved.<\/p><\/section><section aria-labelledby=\"relationship-title\" class=\"nit-section-panel\" id=\"relationship\"><h2 id=\"relationship-title\">How are AI, ML, Deep Learning and Data Science related?<\/h2><p>The simplest accurate relationship is:<\/p><p><strong>Artificial Intelligence \u2283 Machine Learning \u2283 Deep Learning.<\/strong><\/p><p>That means ML is inside the broader field of AI, while Deep Learning is a specialised kind of ML using multilayer neural networks. Many modern Generative AI models use Deep Learning. <a aria-label=\"Reference 2\" href=\"#ref-2\">[2]<\/a><\/p><p><strong>Data Science is a partly overlapping field, not another small circle wholly inside AI.<\/strong> It includes statistical analysis and reporting without AI; it may also use ML models to make predictions. These boundaries are helpful teaching categories rather than universally fixed definitions. <a aria-label=\"Reference 1\" href=\"#ref-1\">[1]<\/a> <a aria-label=\"Reference 4\" href=\"#ref-4\">[4]<\/a><\/p><p><strong>Where does ChatGPT fit?<\/strong> ChatGPT is an AI application built around large language models trained using deep-learning methods. It is one application of AI, not the definition of the entire subject. <a aria-label=\"Reference 7\" href=\"#ref-7\">[7]<\/a><\/p><\/section><section aria-labelledby=\"school-ict-example-title\" class=\"nit-section-panel\" id=\"school-ict-example\"><h2 id=\"school-ict-example-title\">One school ICT support desk: understand all three with the same records<\/h2><p>Imagine a fictional school computer lab where students report problems to an ICT support desk. An employee records each message and places it into a category. This small learning dataset contains twelve reports:<\/p><div aria-label=\"Scroll horizontally to compare all table columns\" class=\"nit-pg-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-pg-table\">\n<thead>\n<tr>\n<th scope=\"col\">Message<\/th>\n<th scope=\"col\">Category<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">WiFi keeps disconnecting<\/th>\n<td>Network<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">No internet on my laptop<\/th>\n<td>Network<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Wireless network is unavailable<\/th>\n<td>Network<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">The WiFi login is failing<\/th>\n<td>Network<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Internet drops during lessons<\/th>\n<td>Network<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Printer is out of paper<\/th>\n<td>Printing<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">The printer cannot print<\/th>\n<td>Printing<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Printing is stuck in queue<\/th>\n<td>Printing<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">The printer shows an error<\/th>\n<td>Printing<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">I forgot my password<\/th>\n<td>Accounts<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Password reset does not work<\/th>\n<td>Accounts<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">My user account is locked<\/th>\n<td>Accounts<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div><p class=\"nit-pg-table-note\">On a small screen, swipe horizontally to read the full table.<\/p><p><em>All twelve messages are invented educational examples; no real student records are used.<\/em><\/p><h3 id=\"part-1-data-science-finds-the-most-common-problem\">Part 1: Data Science finds the most common problem<\/h3><p>Count the three labels:<\/p><div aria-label=\"Scroll horizontally to compare all table columns\" class=\"nit-pg-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-pg-table\">\n<thead>\n<tr>\n<th scope=\"col\">Problem<\/th>\n<th scope=\"col\">Number of messages<\/th>\n<th scope=\"col\">Share of all messages<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">Network<\/th>\n<td>5<\/td>\n<td>41.7%<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Printing<\/th>\n<td>4<\/td>\n<td>33.3%<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Accounts<\/th>\n<td>3<\/td>\n<td>25.0%<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\"><strong>Total<\/strong><\/th>\n<td><strong>12<\/strong><\/td>\n<td><strong>100.0%<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div><p class=\"nit-pg-table-note\">On a small screen, swipe horizontally to read the full table.<\/p><p>For example, the Network share is <strong>5 \u00f7 12 \u00d7 100 = 41.7%<\/strong> (rounded to one decimal place).<\/p><p>What have we learned? Network issues occur most often <strong>in these twelve examples<\/strong>. We cannot say they dominate across a school term: the sample is small, fictional and not randomly collected. The correct conclusion has to match the quality of the evidence.<\/p><p>This is the <strong>Data Science role<\/strong>: organise data, calculate the numbers and explain their meaning and limits.<\/p><h3 id=\"part-2-machine-learning-learns-to-categorise-a-new-message\">Part 2: Machine Learning learns to categorise a new message<\/h3><p>Suppose we want a program to suggest a category whenever a new report arrives. The twelve labelled sentences become <strong>training examples<\/strong>. A simple method converts words into numbers and trains a text classifier.<\/p><p>For a more revealing experiment, we then give the model <strong>nine separate, hand-written examples not used to fit it<\/strong>. The model correctly classifies eight and misclassifies one:<\/p><div aria-label=\"Scroll horizontally to compare all table columns\" class=\"nit-pg-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-pg-table\">\n<thead>\n<tr>\n<th scope=\"col\">New example<\/th>\n<th scope=\"col\">Correct category<\/th>\n<th scope=\"col\">Model&#8217;s result<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">WiFi is slow<\/th>\n<td>Network<\/td>\n<td>Network<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">No connection to internet<\/th>\n<td>Network<\/td>\n<td>Network<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Wireless is missing<\/th>\n<td>Network<\/td>\n<td>Network<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Printer needs paper<\/th>\n<td>Printing<\/td>\n<td>Printing<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Printing job failed<\/th>\n<td>Printing<\/td>\n<td>Printing<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">My document is stuck in the print queue<\/th>\n<td>Printing<\/td>\n<td>Printing<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Forgot account password<\/th>\n<td>Accounts<\/td>\n<td>Accounts<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">My login needs resetting<\/th>\n<td>Accounts<\/td>\n<td><strong>Network \u2014 incorrect<\/strong><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Cannot access user account<\/th>\n<td>Accounts<\/td>\n<td>Accounts<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div><p class=\"nit-pg-table-note\">On a small screen, swipe horizontally to read the full table.<\/p><p>The incorrect result is instructive. A training message used the phrase <strong>\u201cWiFi login\u201d<\/strong>, so the word <em>login<\/em> may pull the classifier towards Network even when the user actually means an account. The model has learnt word patterns, not the full meaning of every sentence.<\/p><p><strong>Do not interpret eight correct answers out of nine as a dependable 88.9% real-world accuracy.<\/strong> This is a tiny demonstration with hand-selected inputs, not an independent or representative test. A genuine evaluation would require many more examples and carefully protected validation and test sets. <a aria-label=\"Reference 3\" href=\"#ref-3\">[3]<\/a><\/p><p>One more failure: ask about <strong>\u201cMy keyboard is broken.\u201d<\/strong> The model outputs <strong>Network<\/strong> even though a keyboard fault belongs to none of the three defined categories. A real application should recognise unfamiliar cases and offer an <strong>Other \/ needs human review<\/strong> route, supported by suitable training data and evaluation.<\/p><p>This is the <strong>Machine Learning role<\/strong>: learn a pattern from examples and make a prediction \u2014 while revealing where that prediction can fail.<\/p><h3 id=\"part-3-ai-builds-an-intelligent-support-experience\">Part 3: AI builds an intelligent support experience<\/h3><p>An ICT assistant might combine the classifier with a troubleshooting knowledge base and a conversational interface. If the model suggests a Network problem, the assistant could ask whether other devices connect to WiFi, explain the next safe check and offer to escalate the matter.<\/p><p>The <strong>classifier itself already counts as ML-based AI<\/strong>. The wider support assistant is an <em>application<\/em> of AI that may combine several technologies. The school might not need such an assistant at all if a simple form and an ICT technician solve the problem efficiently.<\/p><p><strong>The distinction:<\/strong> Data Science tells the ICT team what kinds of problems are being reported; ML learns to suggest categories; an AI application may help interpret and respond to new requests.<\/p><\/section><section aria-labelledby=\"excel-exercise-title\" class=\"nit-section-panel\" id=\"excel-exercise\"><h2 id=\"excel-exercise-title\">Exercise 1: Analyse the data using Excel or Google Sheets<\/h2><p>This activity works without Python. It is suitable for beginners learning percentages, spreadsheets and data interpretation.<\/p><ol>\n<li>Open a blank spreadsheet. Enter <strong>Message<\/strong> in <code>A1<\/code> and <strong>Category<\/strong> in <code>B1<\/code>.<\/li>\n<li>Copy the twelve reports above into <code>A2:B13<\/code>, preserving the order and labels.<\/li>\n<li>In an unused cell, enter <code>=COUNTIF(B2:B13,\"Network\")<\/code>. The answer should be <strong>5<\/strong>.<\/li>\n<li>Replace <code>Network<\/code> with <code>Printing<\/code>, then <code>Accounts<\/code>. The answers should be <strong>4<\/strong> and <strong>3<\/strong>.<\/li>\n<li>Calculate the Network share using <code>=COUNTIF(B2:B13,\"Network\")\/COUNTA(B2:B13)<\/code> and format that cell as a percentage with one decimal place. The result should be <strong>41.7%<\/strong>.<\/li>\n<li>Create a two-column summary table of categories and counts, highlight it and choose <strong>Insert \u2192 Chart<\/strong> (or <strong>Insert \u2192 Column Chart<\/strong>, depending on the application).<\/li>\n<li>Write one sentence describing the highest count and a second sentence explaining why the data cannot represent a whole school term.<\/li>\n<\/ol><p><code>COUNTIF<\/code> counts cells that meet a condition; <code>COUNTA<\/code> counts non-empty cells. <a aria-label=\"Reference 5\" href=\"#ref-5\">[5]<\/a> If the spreadsheet uses semicolons to separate function arguments, replace the commas with semicolons.<\/p><p><strong>Check your understanding:<\/strong> Have you trained an ML model? <strong>No.<\/strong> You performed data analysis. That work can be valuable on its own.<\/p><\/section><section aria-labelledby=\"python-exercise-title\" class=\"nit-section-panel\" id=\"python-exercise\"><h2 id=\"python-exercise-title\">Exercise 2: Train a tiny text classifier in Python (optional)<\/h2><p>If you have Python installed, install the library in your learning environment:<\/p><div aria-label=\"Bash example\" class=\"nit-code-window\"><div class=\"nit-code-window__bar\"><span aria-hidden=\"true\" class=\"nit-code-window__dot\"><\/span><span aria-hidden=\"true\" class=\"nit-code-window__dot\"><\/span><span aria-hidden=\"true\" class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__file\">terminal \u00b7 setup<\/span><\/div><div aria-label=\"Scrollable code sample\" class=\"nit-code-window__body\" role=\"region\" tabindex=\"0\"><span class=\"nit-code-line\">python -m pip install scikit-learn<\/span><\/div><\/div><p>Now run the following complete example. The training data, evaluation examples and expected labels are stated openly so you can reproduce and challenge the results. <code>CountVectorizer<\/code> builds word-count features, and <code>MultinomialNB<\/code> learns a basic classifier. <a aria-label=\"Reference 6\" href=\"#ref-6\">[6]<\/a><\/p><p>On a phone, swipe horizontally inside the code window to read long lines.<\/p><div aria-label=\"Python example\" class=\"nit-code-window\"><div class=\"nit-code-window__bar\"><span aria-hidden=\"true\" class=\"nit-code-window__dot\"><\/span><span aria-hidden=\"true\" class=\"nit-code-window__dot\"><\/span><span aria-hidden=\"true\" class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__file\">support_classifier.py<\/span><\/div><div aria-label=\"Scrollable code sample\" class=\"nit-code-window__body\" role=\"region\" tabindex=\"0\"><span class=\"nit-code-line\">from sklearn.pipeline import make_pipeline<\/span><span class=\"nit-code-line\">from sklearn.feature_extraction.text import CountVectorizer<\/span><span class=\"nit-code-line\">from sklearn.naive_bayes import MultinomialNB<\/span><span class=\"nit-code-line\"> <\/span><span class=\"nit-code-line\">training_messages = [<\/span><span class=\"nit-code-line\">    &#8220;WiFi keeps disconnecting&#8221;, &#8220;No internet on my laptop&#8221;,<\/span><span class=\"nit-code-line\">    &#8220;Wireless network is unavailable&#8221;, &#8220;The WiFi login is failing&#8221;,<\/span><span class=\"nit-code-line\">    &#8220;Internet drops during lessons&#8221;, &#8220;Printer is out of paper&#8221;,<\/span><span class=\"nit-code-line\">    &#8220;The printer cannot print&#8221;, &#8220;Printing is stuck in queue&#8221;,<\/span><span class=\"nit-code-line\">    &#8220;The printer shows an error&#8221;, &#8220;I forgot my password&#8221;,<\/span><span class=\"nit-code-line\">    &#8220;Password reset does not work&#8221;, &#8220;My user account is locked&#8221;,<\/span><span class=\"nit-code-line\">]<\/span><span class=\"nit-code-line\">training_labels = [&#8220;Network&#8221;] * 5 + [&#8220;Printing&#8221;] * 4 + [&#8220;Accounts&#8221;] * 3<\/span><span class=\"nit-code-line\"> <\/span><span class=\"nit-code-line\">model = make_pipeline(CountVectorizer(), MultinomialNB())<\/span><span class=\"nit-code-line\">model.fit(training_messages, training_labels)<\/span><span class=\"nit-code-line\"> <\/span><span class=\"nit-code-line\">test_cases = [<\/span><span class=\"nit-code-line\">    (&#8220;WiFi is slow&#8221;, &#8220;Network&#8221;),<\/span><span class=\"nit-code-line\">    (&#8220;No connection to internet&#8221;, &#8220;Network&#8221;),<\/span><span class=\"nit-code-line\">    (&#8220;Wireless is missing&#8221;, &#8220;Network&#8221;),<\/span><span class=\"nit-code-line\">    (&#8220;Printer needs paper&#8221;, &#8220;Printing&#8221;),<\/span><span class=\"nit-code-line\">    (&#8220;Printing job failed&#8221;, &#8220;Printing&#8221;),<\/span><span class=\"nit-code-line\">    (&#8220;My document is stuck in the print queue&#8221;, &#8220;Printing&#8221;),<\/span><span class=\"nit-code-line\">    (&#8220;Forgot account password&#8221;, &#8220;Accounts&#8221;),<\/span><span class=\"nit-code-line\">    (&#8220;My login needs resetting&#8221;, &#8220;Accounts&#8221;),<\/span><span class=\"nit-code-line\">    (&#8220;Cannot access user account&#8221;, &#8220;Accounts&#8221;),<\/span><span class=\"nit-code-line\">]<\/span><span class=\"nit-code-line\"> <\/span><span class=\"nit-code-line\">correct = 0<\/span><span class=\"nit-code-line\">for message, expected in test_cases:<\/span><span class=\"nit-code-line\">    predicted = model.predict([message])[0]<\/span><span class=\"nit-code-line\">    is_correct = predicted == expected<\/span><span class=\"nit-code-line\">    correct += is_correct<\/span><span class=\"nit-code-line\">    status = &#8220;OK&#8221; if is_correct else &#8220;WRONG&#8221;<\/span><span class=\"nit-code-line\">    print(f&#8221;{status}: {message} -&gt; {predicted} (expected {expected})&#8221;)<\/span><span class=\"nit-code-line\"> <\/span><span class=\"nit-code-line\">print(f&#8221;Correct on these examples: {correct} of {len(test_cases)}&#8221;)<\/span><span class=\"nit-code-line\">print(&#8220;Outside the categories:&#8221;, model.predict([&#8220;My keyboard is broken&#8221;])[0])<\/span><\/div><\/div><p><strong>Verified demonstration result:<\/strong> eight of the nine prepared examples are classified correctly. <strong>\u201cMy login needs resetting\u201d<\/strong> is misclassified as Network, and the out-of-category keyboard problem is also assigned Network. This output was reproduced with scikit-learn 1.8.0; outputs may differ if data, software or preprocessing are changed.<\/p><h3>What should you improve next?<\/h3><p>Instead of adding more rules to hide the two failures, investigate them. Add more varied, properly labelled messages, include an <strong>Other<\/strong> category where appropriate, and evaluate the model against realistic reports it has not already been tuned on. The goal is not to obtain a flattering classroom score; it is to build a system that fails safely when the question is unfamiliar.<\/p><p>If Python reports <code>No module named sklearn<\/code>, check that the package was installed into the same Python environment used to run the script. See the <a href=\"https:\/\/scikit-learn.org\/stable\/install.html\" target=\"_blank\" rel=\"noopener\">official installation guide<\/a>.<\/p><\/section><section aria-labelledby=\"examples-title\" class=\"nit-section-panel\" id=\"examples\"><h2 id=\"examples-title\">Two further examples from everyday life<\/h2><div class=\"nit-project-grid\"><article class=\"nit-project-card\" data-project=\"AGR\"><h3>A maize farmer<\/h3><p> Data Science may compare rainfall, soil records and harvest quantities. ML may be used to estimate future yields from sufficiently good historical data. An AI assistant may explain estimates or help a farmer navigate agricultural information. A prediction should not be mistaken for a confirmed crop diagnosis.<\/p><\/article><article class=\"nit-project-card\" data-project=\"MAT\"><h3>A matatu operator<\/h3><p> Data Science may reveal which departure times carry the most passengers. ML may estimate future demand using repeated observations. An AI scheduling tool might combine those estimates with route, capacity and timing constraints. If a spreadsheet already answers the operator&#8217;s question, a new ML project may be unnecessary.<\/p><\/article><\/div><p>Neither scenario requires all three approaches. Start with a real question and choose the simplest method that answers it reliably.<\/p><\/section><section aria-labelledby=\"decision-title\" class=\"nit-section-panel\" id=\"decision\"><h2 id=\"decision-title\">How to choose the right approach for a problem<\/h2><div aria-label=\"Scroll horizontally to compare all table columns\" class=\"nit-pg-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-pg-table\">\n<thead>\n<tr>\n<th scope=\"col\">Your problem<\/th>\n<th scope=\"col\">Start here<\/th>\n<th scope=\"col\">Consider moving further when\u2026<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">How many reports came in this week?<\/th>\n<td>Spreadsheet or SQL analysis<\/td>\n<td>You need deeper patterns and explanation<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Which problem category will a new message belong to?<\/th>\n<td>Machine Learning classification<\/td>\n<td>You have representative labelled examples and a real need to predict<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Can software talk the learner through a problem?<\/th>\n<td>AI application design<\/td>\n<td>You can verify answers, permissions and safe escalation<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Should a reminder go out each Friday?<\/th>\n<td>Ordinary automation<\/td>\n<td>No AI is required for a fixed schedule<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div><p class=\"nit-pg-table-note\">On a small screen, swipe horizontally to read the full table.<\/p><p>Before making a solution more complicated, ask what <em>error<\/em> would matter. A wrong chart can lead to a poor decision; an incorrect classification can send someone to the wrong support queue; a misleading AI answer can waste time or expose private information. The right evaluation depends on the use case. <a aria-label=\"Reference 3\" href=\"#ref-3\">[3]<\/a> <a aria-label=\"Reference 8\" href=\"#ref-8\">[8]<\/a><\/p><\/section><section aria-labelledby=\"learning-route-title\" class=\"nit-section-panel\" id=\"learning-route\"><h2 id=\"learning-route-title\">Skills to learn first<\/h2><p>For a complete beginner, start with spreadsheet analysis, percentages and charts. Add <strong>SQL<\/strong> to query databases and <strong>Python<\/strong> for programming. Learn how data is cleaned, then explore elementary statistics, model training and independent evaluation. Deep Learning and AI applications become easier to understand once those foundations are in place.<\/p><p>This is a practical route, not a universal prerequisite list. Some beginner AI programmes teach the data and programming foundations as part of the course.<\/p><p>For a dedicated <strong>AI-versus-Data-Science course and career choice<\/strong>, use NIT&#8217;s existing guide: <a href=\"https:\/\/niteducation.com\/resources\/ai-vs-data-science-in-kenya\/\">AI vs Data Science in Kenya: Which Should You Choose?<\/a>. The purpose of this article is to explain the three technical concepts, not duplicate that course comparison.<\/p><\/section><section aria-labelledby=\"faqs-title\" class=\"nit-section-panel\" id=\"faqs\"><h2 id=\"faqs-title\">Frequently asked questions<\/h2><div class=\"nit-faq\"><details class=\"nit-faq__item\"><summary>Is Machine Learning the same as AI?<\/summary><div class=\"nit-faq__answer\"><p> No. ML is a branch of AI. The larger AI field also includes approaches that do not involve learning a model from data.<\/p><\/div><\/details><details class=\"nit-faq__item\"><summary>Is Data Science part of AI?<\/summary><div class=\"nit-faq__answer\"><p> Not entirely. They overlap: Data Science can use ML, but data cleaning, statistics and charts need not involve AI.<\/p><\/div><\/details><details class=\"nit-faq__item\"><summary>Is Deep Learning a separate field?<\/summary><div class=\"nit-faq__answer\"><p> It is a specialised approach within Machine Learning, commonly based on multilayer neural networks. <a aria-label=\"Reference 2\" href=\"#ref-2\">[2]<\/a><\/p><\/div><\/details><details class=\"nit-faq__item\"><summary>Is ChatGPT an example of AI or ML?<\/summary><div class=\"nit-faq__answer\"><p> Both descriptions apply. ChatGPT is an AI application built around language models developed using Deep Learning. <a aria-label=\"Reference 7\" href=\"#ref-7\">[7]<\/a><\/p><\/div><\/details><details class=\"nit-faq__item\"><summary>Can I learn Data Science without coding?<\/summary><div class=\"nit-faq__answer\"><p> Yes, especially at beginner level. The spreadsheet exercise above is an example. Larger projects often benefit from Python and SQL.<\/p><\/div><\/details><details class=\"nit-faq__item\"><summary>Does a model always get better when given more data?<\/summary><div class=\"nit-faq__answer\"><p> No. More examples do not fix incorrect labels, unrepresentative records or a poorly defined problem. Improvement must be checked through evaluation.<\/p><\/div><\/details><details class=\"nit-faq__item\"><summary>Which should I learn first?<\/summary><div class=\"nit-faq__answer\"><p> Learn basic data handling and programming foundations, then explore ML and AI applications as your interests develop. You can start through either a suitable Data Science or AI course.<\/p><\/div><\/details><\/div><\/section><section aria-labelledby=\"takeaway-title\" class=\"nit-section-panel\" id=\"takeaway\"><h2 id=\"takeaway-title\">What to remember<\/h2><p>A spreadsheet that counts help-desk reports gives us <strong>data analysis<\/strong>. A trained classifier that assigns a category to new messages demonstrates <strong>Machine Learning<\/strong>, a form of <strong>AI<\/strong>. A wider assistant that helps users troubleshoot shows how AI capabilities can be combined into an application.<\/p><p>The real skill is knowing <em>why<\/em> an approach works, what evidence supports its answer and when a simpler method would be better.<\/p><\/section><\/div><section aria-labelledby=\"register-heading\" class=\"nit-pg-enrol\" id=\"register\"><div class=\"nit-pg-enrol__copy\">\n<p class=\"nit-pg-eyebrow\">Learn by building real projects<\/p>\n<h2 id=\"register-heading\">Study AI or Data Science at Newton Institute of Technology<\/h2>\n<p>Develop practical skills in computing, Python, data preparation and applied projects at NIT in Migori Town, Kenya.<\/p>\n<p><strong>Artificial Intelligence:<\/strong> Learn Python, data preparation, Machine Learning and practical AI applications. Six months of institutional training followed by three months of industrial attachment.<\/p>\n<p><strong>Data Science &amp; Analytics:<\/strong> Study Excel, SQL, Python, statistics, data cleaning, visualisation and introductory Machine Learning. Six months of institutional training followed by three months of industrial attachment.<\/p>\n<\/div><div class=\"nit-pg-enrol__details\"><p><span>Call \/ WhatsApp<\/span><strong><a href=\"tel:+254713584858\">+254 713 584 858<\/a><\/strong><\/p><p><span>Email<\/span><strong><a href=\"mailto:info@niteducation.com\">info@niteducation.com<\/a><\/strong><\/p><p><span>Location<\/span><strong>Migori Town, Kenya<\/strong><\/p><\/div><div class=\"nit-pg-enrol__actions\"><a class=\"nit-pg-button nit-pg-button--gold\" href=\"https:\/\/niteducation.com\/admissions\/\">Register \/ admissions<\/a><a class=\"nit-pg-button nit-pg-button--outline\" href=\"https:\/\/niteducation.com\/resources\/artificial-intelligence-course-in-kenya\/\">AI course details<\/a><a class=\"nit-pg-button nit-pg-button--outline\" href=\"https:\/\/niteducation.com\/resources\/data-science-course-in-kenya\/\">Data Science course<\/a><\/div><\/section><section aria-labelledby=\"references-title\" class=\"nit-sources\"><h2 id=\"references-title\">Sources and references<\/h2><ul><li id=\"ref-1\">[1] UK Defence Science and Technology Laboratory (2025). AI, Data Science and Machine Learning: A Dstl Biscuit Book \u2014 Introduction. <a href=\"https:\/\/www.gov.uk\/guidance\/ai-data-science-and-machine-learning-a-dstl-biscuit-book\/introduction\" rel=\"noopener noreferrer\" target=\"_blank\">Official guidance<\/a><\/li><li id=\"ref-2\">[2] Google Cloud. Deep Learning vs Machine Learning vs AI. <a href=\"https:\/\/cloud.google.com\/discover\/deep-learning-vs-machine-learning\" rel=\"noopener noreferrer\" target=\"_blank\">Technical explanation<\/a><\/li><li id=\"ref-3\">[3] Google for Developers. Machine Learning Crash Course \u2014 Dividing the Original Dataset. <a href=\"https:\/\/developers.google.com\/machine-learning\/crash-course\/overfitting\/dividing-datasets\" rel=\"noopener noreferrer\" target=\"_blank\">Training, validation and testing<\/a><\/li><li id=\"ref-4\">[4] Spector, A. (2024). Data Science and AI in Context: Summary and Insights. Harvard Data Science Review, 6(3). <a href=\"https:\/\/hdsr.mitpress.mit.edu\/pub\/xyeriy3y\/release\/2\" rel=\"noopener noreferrer\" target=\"_blank\">Research article<\/a><\/li><li id=\"ref-5\">[5] Microsoft Support. Use the COUNTIF function; COUNTA function. <a href=\"https:\/\/support.microsoft.com\/en-us\/excel\/get-started\/use-the-countif-function-in-microsoft-excel\" rel=\"noopener noreferrer\" target=\"_blank\">COUNTIF<\/a> \u00b7 <a href=\"https:\/\/support.microsoft.com\/en-us\/excel\/functions\/counta-function\" rel=\"noopener noreferrer\" target=\"_blank\">COUNTA<\/a><\/li><li id=\"ref-6\">[6] Scikit-learn. CountVectorizer; MultinomialNB; installation guidance. <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.feature_extraction.text.CountVectorizer.html\" rel=\"noopener noreferrer\" target=\"_blank\">CountVectorizer<\/a> \u00b7 <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.naive_bayes.MultinomialNB.html\" rel=\"noopener noreferrer\" target=\"_blank\">MultinomialNB<\/a> \u00b7 <a href=\"https:\/\/scikit-learn.org\/stable\/install.html\" rel=\"noopener noreferrer\" target=\"_blank\">Installation<\/a><\/li><li id=\"ref-7\">[7] OpenAI Help Center. How ChatGPT and Our Foundation Models Are Developed. <a href=\"https:\/\/help.openai.com\/en\/articles\/7842364-how-chatgpt-and-our-foundation-models-are-developed\" rel=\"noopener noreferrer\" target=\"_blank\">Official explanation<\/a><\/li><li id=\"ref-8\">[8] National Institute of Standards and Technology. AI Risk Management Framework. <a href=\"https:\/\/www.nist.gov\/itl\/ai-risk-management-framework\" rel=\"noopener noreferrer\" target=\"_blank\">Official framework<\/a><\/li><\/ul><p><strong>Sources reviewed:<\/strong> 10 November 2026. <strong>Editorial responsibility:<\/strong> Newton Institute of Technology Editorial Team.<\/p><\/section><\/div>\n","protected":false},"excerpt":{"rendered":"<p>ICT learning guide Three connected fields AI vs Machine Learning vs Data Science: What&#8217;s the Difference? Understand \u00b7 Compare \u00b7 Practise Learn the difference through one school ICT help-desk example, a working spreadsheet exercise and a small Python classifier that makes mistakes you can investigate. Get the quick answerTry the examples Understand the relationship AIMLDATA [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[30],"tags":[36,58,34,84,42],"class_list":["post-3765","post","type-post","status-publish","format-standard","hentry","category-ict","tag-best-ict-courses-after-kcse","tag-cyber-security-training-in-kenya","tag-data-science-course-in-kenya","tag-software-development","tag-software-development-course-fees-in-kenya"],"_links":{"self":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/comments?post=3765"}],"version-history":[{"count":1,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3765\/revisions"}],"predecessor-version":[{"id":3766,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3765\/revisions\/3766"}],"wp:attachment":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/media?parent=3765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/categories?post=3765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/tags?post=3765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}