{"id":39397,"date":"2025-10-15T19:55:54","date_gmt":"2025-10-15T14:55:54","guid":{"rendered":"https:\/\/chartexpo.com\/blog\/?p=39397"},"modified":"2025-11-13T13:17:11","modified_gmt":"2025-11-13T08:17:11","slug":"what-is-a-confusion-matrix","status":"publish","type":"post","link":"https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix","title":{"rendered":"What is a Confusion Matrix? A Quick Guide"},"content":{"rendered":"<p>After gathering data, it has to undergo data cleaning, pre-processing, and wrangling. Next, you&#8217;ll have to feed it into an outstanding model and get output in probabilities. All these make up the confusion matrix.<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/what-is-a-confusion-matrix-01.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" style=\"max-width: 100%;\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/what-is-a-confusion-matrix-01.jpg\" alt=\"What is a Confusion Matrix\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2MzArU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTYzMCs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/TrafficTracker\/MTYrYmxvZytzZStjZXhwbytDRTYzMCs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<p>In this guide, you&#8217;ll discover answers to the \u201cwhat is a confusion matrix\u201d question. You&#8217;ll also discover what a confusion matrix tells you, and when you should use a confusion matrix.<\/p>\n<h3>Table of Content:<\/h3>\n<ol>\n<li><a href=\"#what-is-a-confusion-matrix\">What is a Confusion Matrix?<\/a><\/li>\n<li><a href=\"#why-do-we-need-a-confusion-matrix\">Why Do We Need a Confusion Matrix?<\/a><\/li>\n<li><a href=\"#what-does-a-confusion-matrix-tell-you\">What Does a Confusion Matrix Tell You?<\/a><\/li>\n<li><a href=\"#confusion-matrix-example\">Confusion Matrix Example<\/a><\/li>\n<li><a href=\"#what-is-the-confusion-matrix-formulas\">What is the Confusion Matrix Formulas?<\/a><\/li>\n<li><a href=\"#how-to-create-a-confusion-matrix\">How to Create a Confusion Matrix?<\/a>\n<ul>\n<li><a href=\"#step-1-obtain-predictions-and-actual-labels\">Step 1: Obtain Predictions and Actual Labels<\/a><\/li>\n<li><a href=\"#step-2-identify-tp-tn-fp-and-fn\">Step 2: Identify TP, TN, FP, and FN<\/a><\/li>\n<li><a href=\"#step-3-construct-the-confusion-matrix\">Step 3: Construct the Confusion Matrix<\/a><\/li>\n<li><a href=\"#step-4-calculate-performance-metrics\">Step 4: Calculate Performance Metrics<\/a><\/li>\n<li><a href=\"#step-5-visualize-and-interpret-results\">Step 5: Visualize and Interpret Results<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#how-to-interpret-a-confusion-matrix\">How to Interpret a Confusion Matrix?<\/a><\/li>\n<li><a href=\"#how-do-you-read-the-confusion-matrix\">How Do You Read the Confusion Matrix?<\/a><\/li>\n<li><a href=\"#how-to-create-a-confusion-matrix-diagram-in-power-bi\">How to Create a Confusion Matrix Diagram in Power BI?<\/a><\/li>\n<li><a href=\"#advantages-and-disadvantages-of-using-a-confusion-matrix\">Advantages and Disadvantages of Using a Confusion Matrix<\/a><\/li>\n<li><a href=\"#applications-of-confusion-matrix-in-real-world\">Applications of Confusion Matrix in Real World<\/a><\/li>\n<li><a href=\"#confusion-matrix-faqs\">Confusion Matrix &#8211; FAQs<\/a><\/li>\n<li><a href=\"#wrap-up\">Wrap Up<\/a><\/li>\n<\/ol>\n<p>First&#8230;<\/p>\n<h2 id=\"what-is-a-confusion-matrix\">What is a Confusion Matrix?<\/h2>\n<p><strong>Definition: <\/strong>A confusion matrix is a table used to evaluate the performance of a machine learning classification model. It helps you understand how well your model is predicting results by comparing actual outcomes with predicted ones.<\/p>\n<p data-start=\"398\" data-end=\"421\">Here\u2019s what it shows:<\/p>\n<ul>\n<li data-start=\"424\" data-end=\"494\"><strong data-start=\"426\" data-end=\"450\">True Positives (TP):<\/strong> Model correctly predicts a positive case.<\/li>\n<li data-start=\"497\" data-end=\"567\"><strong data-start=\"499\" data-end=\"523\">True Negatives (TN):<\/strong> Model correctly predicts a negative case.<\/li>\n<li data-start=\"570\" data-end=\"643\"><strong data-start=\"572\" data-end=\"597\">False Positives (FP):<\/strong> Model incorrectly predicts a positive case.<\/li>\n<li data-start=\"646\" data-end=\"719\"><strong data-start=\"648\" data-end=\"673\">False Negatives (FN):<\/strong> Model incorrectly predicts a negative case.<\/li>\n<\/ul>\n<p data-start=\"721\" data-end=\"920\">The confusion matrix gives a clear snapshot of model accuracy, helping you spot where predictions go wrong and analyze performance especially useful when dealing with imbalanced datasets.<\/p>\n<h2 id=\"why-do-we-need-a-confusion-matrix\">Why Do We Need a Confusion Matrix?<\/h2>\n<p>Here are the major reasons why a confusion matrix is essential for evaluating the performance of a classification model.<\/p>\n<ul>\n<li><strong>Performance Evaluation:<\/strong> It offers a thorough breakdown of how well a model is performing in terms of correctly and incorrectly classified instances across multiple classes. This helps stakeholders to get a good grasp of the model&#8217;s strengths and weaknesses.<\/li>\n<li><strong>Metrics Calculation:<\/strong> You can calculate various <a href=\"https:\/\/chartexpo.com\/blog\/performance-metrics\" target=\"_blank\" rel=\"noopener\">performance metrics<\/a> from the confusion matrix. These performance metrics could be precision, specificity, recall (sensitivity), accuracy, and F1-score. All these metrics offer quantitative measures of the model&#8217;s effectiveness and suitability for the intended application.<\/li>\n<li><strong>Business Impact:<\/strong> A good grasp of the confusion matrix in assessing the business impact of model prediction. For instance, in <a href=\"https:\/\/chartexpo.com\/blog\/what-is-a-medical-loss-ratio\" target=\"_blank\" rel=\"noopener noreferrer\">medical diagnostics<\/a>, correctly identifying disease patients (true positives) and minimizing missed diagnoses (false negatives) is critical for <a href=\"https:\/\/chartexpo.com\/blog\/quality-of-care-measures-in-healthcare\" target=\"_blank\" rel=\"noopener noreferrer\">patient care<\/a> and outcomes.<\/li>\n<li><strong>Error Analysis:<\/strong> It helps in pointing out the types of errors a model is making. It could be false positives and false negatives. This helps in figuring out where the model needs improvement or where adjustments in data preprocessing or thresholds are necessary.<\/li>\n<li><strong>Model Selection:<\/strong> Stakeholders can choose the best-performing model by comparing confusion matrices from different models. This helps in making <a href=\"https:\/\/chartexpo.com\/blog\/data-driven-decision-making\" target=\"_blank\" rel=\"noopener noreferrer\">data-driven decisions<\/a> on the model to deploy based on its capability to correctly classify instances.<\/li>\n<\/ul>\n<h2 id=\"what-does-a-confusion-matrix-tell-you\">What Does a Confusion Matrix Tell You?<\/h2>\n<p>Confusion matrix offers insights into the performance of a classification model:<\/p>\n<ul>\n<li><strong>Accuracy:<\/strong> Shows the overall correctness of predictions.<\/li>\n<li><strong>Precision:<\/strong> It shows the proportion of true positives among positive predictions.<\/li>\n<li><strong>Recall (Sensitivity):<\/strong> It shows the proportion of actual positives correctly predicted.<\/li>\n<li><strong>Specificity:<\/strong> It shows the proportion of actual negatives correctly predicted.<\/li>\n<li><strong>False Positives and Negatives:<\/strong> Instances where the predictions do not match actual outcomes.<\/li>\n<li><strong>True Positives and Negatives:<\/strong> Instances where predictions match actual outcomes.<\/li>\n<li><strong>Performance Across Classes:<\/strong> Helps in identifying the classes that are well-predicted, and the ones that need improvement.<\/li>\n<li><strong>Threshold Optimization:<\/strong> Guides adjustments to decision thresholds based on desired trade-offs between different types of errors.<\/li>\n<\/ul>\n<h2 id=\"confusion-matrix-example\">Confusion Matrix Example<\/h2>\n<p>Let\u2019s understand a confusion matrix with a simple example of a binary classification problem predicting whether an email is Spam or Not Spam.<\/p>\n<table class=\"static\" style=\"table-layout: fixed; overflow-x: auto; border: 1px; font-size: 17px;\">\n<tbody>\n<tr>\n<td width=\"166\"><strong>Actual \/ Predicted<\/strong><\/td>\n<td width=\"47\"><strong>Spam<\/strong><\/td>\n<td width=\"67\"><strong>Not Spam<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Spam<\/td>\n<td>80 (TP)<\/td>\n<td>10 (FN)<\/td>\n<\/tr>\n<tr>\n<td>Not Spam<\/td>\n<td>5 (FP)<\/td>\n<td>105 (TN)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p data-start=\"560\" data-end=\"578\"><strong data-start=\"560\" data-end=\"576\">Explanation:<\/strong><\/p>\n<ul>\n<li data-start=\"581\" data-end=\"657\"><strong data-start=\"581\" data-end=\"610\">True Positives (TP = 80):<\/strong> 80 spam emails correctly identified as spam.<\/li>\n<li data-start=\"660\" data-end=\"734\"><strong data-start=\"660\" data-end=\"690\">True Negatives (TN = 105):<\/strong> 105 non-spam emails correctly identified.<\/li>\n<li data-start=\"737\" data-end=\"811\"><strong data-start=\"737\" data-end=\"766\">False Positives (FP = 5):<\/strong> 5 non-spam emails wrongly flagged as spam.<\/li>\n<li data-start=\"814\" data-end=\"893\"><strong data-start=\"814\" data-end=\"844\">False Negatives (FN = 10):<\/strong> 10 spam emails missed and labeled as not spam.<\/li>\n<\/ul>\n<h2 id=\"what-are-the-confusion-matrix-formulas\">What are the Confusion Matrix Formulas<\/h2>\n<p data-start=\"180\" data-end=\"336\">The confusion matrix is the foundation for calculating key performance metrics in classification models.<\/p>\n<p data-start=\"180\" data-end=\"336\">Here are the main formulas derived from it:<\/p>\n<h3 data-start=\"340\" data-end=\"355\">Accuracy:<\/h3>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/Accuracy.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/Accuracy.png\" alt=\"Accuracy Formula\" width=\"485\" \/><\/a><\/div>\n<p data-start=\"417\" data-end=\"474\">Measures how often the model makes correct predictions.<\/p>\n<h3 data-start=\"478\" data-end=\"494\">Precision:<\/h3>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/Precision.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/Precision.png\" alt=\"Precision Formula\" width=\"485\" \/><\/a><\/div>\n<p data-start=\"542\" data-end=\"601\">Shows how many predicted positives were actually correct.<\/p>\n<h3 data-start=\"605\" data-end=\"632\">Recall (Sensitivity):<\/h3>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/Recall.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/Recall.png\" alt=\"Recall Formula\" width=\"485\" \/><\/a><\/div>\n<p data-pm-slice=\"0 0 []\">Indicates how many actual positives were correctly identified.<\/p>\n<h3 data-pm-slice=\"0 0 []\">Specificity:<\/h3>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/Specificity.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/Specificity.png\" alt=\"Specificity Formula\" width=\"485\" \/><\/a><\/div>\n<p data-pm-slice=\"0 0 []\">Measures how well the model identifies negative cases.<\/p>\n<h3 data-pm-slice=\"0 0 []\">F1 Score:<\/h3>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/F1-Score.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2025\/10\/F1-Score.png\" alt=\"F1 Score Formula\" width=\"485\" \/><\/a><\/div>\n<p data-pm-slice=\"0 0 []\">Balances precision and recall for overall performance.<\/p>\n<h2 id=\"how-to-create-a-confusion-matrix\">How to Create a Confusion Matrix?<\/h2>\n<p>Here are the steps to help you create a confusion matrix:<\/p>\n<h3 id=\"step-1-obtain-predictions-and-actual-labels\">Step 1: Obtain Predictions and Actual Labels<\/h3>\n<ul>\n<li data-start=\"199\" data-end=\"377\">Start with two sets of data the predictions made by your classification model and the actual (true) labels from your dataset.<\/li>\n<\/ul>\n<h3 id=\"step-2-identify-tp-tn-fp-and-fn\">Step 2: Identify TP, TN, FP, and FN<\/h3>\n<p data-start=\"379\" data-end=\"491\">Compare each prediction with the actual label to categorize results:<\/p>\n<ul>\n<li data-start=\"494\" data-end=\"561\"><strong data-start=\"494\" data-end=\"517\">TP (True Positive):<\/strong> Predicted positive and actually positive.<\/li>\n<li data-start=\"564\" data-end=\"631\"><strong data-start=\"564\" data-end=\"587\">TN (True Negative):<\/strong> Predicted negative and actually negative.<\/li>\n<li data-start=\"634\" data-end=\"702\"><strong data-start=\"634\" data-end=\"658\">FP (False Positive):<\/strong> Predicted positive but actually negative.<\/li>\n<li data-start=\"705\" data-end=\"773\"><strong data-start=\"705\" data-end=\"729\">FN (False Negative):<\/strong> Predicted negative but actually positive.<\/li>\n<\/ul>\n<h3 id=\"step-3-construct-the-confusion-matrix\">Step 3: Construct the Confusion Matrix<\/h3>\n<p data-start=\"775\" data-end=\"851\">Create a <strong data-start=\"829\" data-end=\"842\">2&#215;2 table<\/strong> where:<\/p>\n<ul>\n<li data-start=\"854\" data-end=\"911\">Rows represent <strong data-start=\"869\" data-end=\"887\">actual classes<\/strong> (Positive, Negative).<\/li>\n<li data-start=\"914\" data-end=\"1055\">Columns represent <strong data-start=\"932\" data-end=\"953\">predicted classes<\/strong> (Predicted Positive, Predicted Negative).<br data-start=\"995\" data-end=\"998\" \/>Fill in the matrix with the counts of TP, TN, FP, and FN.<\/li>\n<\/ul>\n<h3 id=\"step-4-calculate-performance-metrics\">Step 4: Calculate Performance Metrics<\/h3>\n<p data-start=\"1057\" data-end=\"1164\">Use the matrix values to compute performance metrics such as:<\/p>\n<ul>\n<li data-start=\"1167\" data-end=\"1215\"><strong data-start=\"1167\" data-end=\"1213\">Accuracy = (TP + TN) \/ (TP + TN + FP + FN)<\/strong><\/li>\n<li data-start=\"1218\" data-end=\"1250\"><strong data-start=\"1218\" data-end=\"1248\">Precision = TP \/ (TP + FP)<\/strong><\/li>\n<li data-start=\"1253\" data-end=\"1296\"><strong data-start=\"1253\" data-end=\"1294\">Recall (Sensitivity) = TP \/ (TP + FN)<\/strong><\/li>\n<li data-start=\"1299\" data-end=\"1363\"><strong data-start=\"1299\" data-end=\"1361\">F1 Score = 2 \u00d7 (Precision \u00d7 Recall) \/ (Precision + Recall)<\/strong><\/li>\n<\/ul>\n<h3 id=\"step-5-visualize-and-interpret-results\">Step 5: Visualize and Interpret Results<\/h3>\n<p data-start=\"1365\" data-end=\"1586\">Display the confusion matrix using a heatmap or chart for better clarity.<br data-start=\"1484\" data-end=\"1487\" \/>Analyze the results to understand where the model performs well and where misclassifications occur.<\/p>\n<h2 id=\"how-to-interpret-a-confusion-matrix\">How to Interpret a Confusion Matrix?<\/h2>\n<p data-start=\"177\" data-end=\"313\">A confusion matrix helps you see how accurately a classification model makes predictions by comparing actual and predicted values.<\/p>\n<p data-start=\"315\" data-end=\"339\">Here\u2019s how to read it:<\/p>\n<ul>\n<li data-start=\"342\" data-end=\"404\"><strong data-start=\"342\" data-end=\"366\">True Positives (TP):<\/strong> Correctly predicted positive cases.<\/li>\n<li data-start=\"407\" data-end=\"469\"><strong data-start=\"407\" data-end=\"431\">True Negatives (TN):<\/strong> Correctly predicted negative cases.<\/li>\n<li data-start=\"472\" data-end=\"532\"><strong data-start=\"472\" data-end=\"497\">False Positives (FP):<\/strong> Incorrectly predicted positives.<\/li>\n<li data-start=\"535\" data-end=\"585\"><strong data-start=\"535\" data-end=\"560\">False Negatives (FN):<\/strong> Missed positive cases.<\/li>\n<\/ul>\n<h2 id=\"how-do-you-read-the-confusion-matrix\">How Do You Read the Confusion Matrix?<\/h2>\n<p>Here are easy ways of reading and interpreting a confusion matrix.<\/p>\n<h3>Components of a Confusion Matrix<\/h3>\n<p>The confusion matrix for a binary classification problem (two classes, denoted as Positive and Negative) looks like this:<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/components-of-confusion-matrix-for-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/components-of-confusion-matrix-for-learning-what-is-a-confusion-matrix.jpg\" alt=\"Components of Confusion Matrix for Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<h3>Interpretation of Cells<\/h3>\n<ul>\n<li>True Positive (TP):<\/li>\n<li>False Positive (FP):<\/li>\n<li>False Negative (FN):<\/li>\n<li>True Negative (TN):<\/li>\n<\/ul>\n<h2 id=\"how-to-create-a-confusion-matrix-diagram-in-power-bi\">How to Create a Confusion Matrix Diagram in Power BI?<\/h2>\n<p data-pm-slice=\"0 0 []\">We can use the <a href=\"https:\/\/chartexpo.com\/blog\/sankey-diagram-in-power-bi\" target=\"_blank\" rel=\"noopener\">Sankey plot in Power BI<\/a> to complement a confusion matrix by visualizing how data flows between predicted and actual categories, bringing in a <a href=\"https:\/\/chartexpo.com\/charts\/sankey-diagram\" target=\"_blank\" rel=\"noopener\">Sankey\u202fdiagram\u202fmaker<\/a> to streamline the setup and deliver interactive flows<\/p>\n<p><strong>Stage 1: Logging in to Power BI<\/strong><\/p>\n<ul>\n<li>Log in to Power BI.<\/li>\n<li>Enter your email address and click the \u201c<strong>Submit<\/strong>\u201d button.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-email-to-login-to-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-email-to-login-to-power-bi.jpg\" alt=\"Enter email to login to Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You are redirected to your Microsoft account.<\/li>\n<li>Enter your password and click \u201c<strong>Sign in<\/strong>\u201c.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-password-to-login-to-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-password-to-login-to-power-bi.jpg\" alt=\"Enter Password to login to Power BI\" width=\"363\" \/><\/a><\/div>\n<ul>\n<li>You can choose whether to stay signed in.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/click-on-stay-signed-in.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/click-on-stay-signed-in.jpg\" alt=\"Click on stay signed in\" width=\"392\" \/><\/a><\/div>\n<ul>\n<li>Once done, the Power BI home screen will open.<\/li>\n<\/ul>\n<h4>Stage 2: Creating a Data Set and Selecting the Data Set to Use in Your Chart<\/h4>\n<ul>\n<li>Go to the left-side menu and click the \u201c<strong>Create<\/strong>\u201d button.<\/li>\n<li>Select \u201c<strong>Paste or manually enter data<\/strong>\u201c.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/02\/select-paste-or-manually-enter-data-in-power-bi-ce487.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/02\/select-paste-or-manually-enter-data-in-power-bi-ce487.jpg\" alt=\"select Paste or manually enter data in Power BI ce487\" width=\"650\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2MzArU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTYzMCs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/TrafficTracker\/MTYrYmxvZytzZStjZXhwbytDRTYzMCs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<ul>\n<li>We&#8217;ll use the <a href=\"https:\/\/chartexpo.com\/blog\/sample-data-for-power-bi\" target=\"_blank\" rel=\"noopener noreferrer\">sample data<\/a> below for this example.<\/li>\n<\/ul>\n<table class=\"static\" style=\"table-layout: fixed; overflow-x: auto; border: 1px; font-size: 17px;\">\n<tbody>\n<tr>\n<td width=\"297\"><strong>Source<\/strong><\/td>\n<td width=\"114\"><strong>Target<\/strong><\/td>\n<td width=\"44\"><strong>Count<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Class-1 instances correctly classified as class-1<\/td>\n<td>Predicted Class-1<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>Class-1 instances misclassified as class-2<\/td>\n<td>Predicted Class-2<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>Class-2 instances misclassified as class-1<\/td>\n<td>Predicted Class-1<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>Class-2 instances correctly classified as class-2<\/td>\n<td>Predicted Class-2<\/td>\n<td>12<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Paste the data table into the \u201c<strong>Power Query<\/strong>\u201d window. Next, choose the \u201c<strong>Create a semantic model only<\/strong>\u201d option.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/choose-create-a-semantic-model-only-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/choose-create-a-semantic-model-only-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Choose Create a Semantic Model Only After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Navigate to the left-side menu, and click on the &#8220;<strong>Data Hub<\/strong>&#8221; option. The Power BI populates the data set list. If no data set has been created, you&#8217;ll get the error message. Next, click &#8220;<strong>Create report<\/strong>.&#8221;<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/click-data-hub-and-create-report-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/click-data-hub-and-create-report-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Click Data Hub and Create Report After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Click on \u201c<strong>Get more visuals<\/strong>\u201d and search ChartExpo. After that, select \u201c<strong>Sankey Chart<\/strong>.\u201d<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/click-get-more-visuals-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/click-get-more-visuals-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Click Get More Visuals After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Click on \u201c<strong>Add<\/strong>.\u201d<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/click-add-button-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/click-add-button-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Click Add Button After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You&#8217;ll see the Sankey Chart in the visuals list.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/sankey-diagram-in-visual-list-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/sankey-diagram-in-visual-list-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Sankey Diagram in Visual List After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>In the visual, click on \u201cLicense Settings,\u201d and add the key. After adding the key, the Sankey Chart will be displayed on your screen.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/add-license-key-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/add-license-key-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Add License Key After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You&#8217;ll have to add the header text on top of the chart.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/add-chart-header-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/add-chart-header-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Add Chart Header After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You can disable the percentage values as shown below:<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/disable-percenatge-values-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/disable-percenatge-values-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Disable Percenatge Values After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You can add the color of all nodes.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/add-color-to-all-nodes-after-learning-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/add-color-to-all-nodes-after-learning-what-is-a-confusion-matrix.jpg\" alt=\"Add Color to All Nodes After Learning What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>The final look of the Sankey Chart is shown below.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/final-what-is-a-confusion-matrix.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/final-what-is-a-confusion-matrix.jpg\" alt=\"Final What is a Confusion Matrix\" width=\"650\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2MzArU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTYzMCs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/TrafficTracker\/MTYrYmxvZytzZStjZXhwbytDRTYzMCs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<h4>Insights<\/h4>\n<p>From the data, you&#8217;ll see the classification model&#8217;s performance: 10 Class-1 instances are correctly identified, while 6 are misclassified as Class-2. For Class-2, 12 instances are correctly classified, but 2 are misclassified as Class-1.<\/p>\n<h3>Master Data Evaluation with Confusion Matrix Charts in Power BI:<\/h3>\n<p>Dive into the concept of the Confusion Matrix with this interactive tutorial. This essential tool allows you to visualize the performance of classification models, highlighting key metrics like accuracy, precision, recall, and F1 score. By mastering the Confusion Matrix, you gain a deeper understanding of your model&#8217;s strengths and weaknesses, empowering you to fine-tune predictions. Using charts and graphs to represent the matrix makes it easier to identify patterns, enhance decision-making, and improve model outcomes. With a clear visual representation, the Confusion Matrix becomes an invaluable asset for optimizing machine learning processes and ensuring better, more reliable results.<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/_UyS9hzktr8?si=zkl8vEiizt8_NipC\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2MzArU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTYzMCs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/TrafficTracker\/MTYrYmxvZytzZStjZXhwbytDRTYzMCs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<h2 id=\"advantages-and-disadvantages-of-using-a-confusion-matrix\">Advantages and Disadvantages of Using a Confusion Matrix<\/h2>\n<h3 data-start=\"187\" data-end=\"206\">Advantages<\/h3>\n<ul>\n<li data-start=\"209\" data-end=\"280\">Provides a detailed view of model performance beyond simple accuracy.<\/li>\n<li data-start=\"283\" data-end=\"377\">Helps identify the types of misclassifications, such as false positives and false negatives.<\/li>\n<li data-start=\"380\" data-end=\"476\">Forms the basis for calculating key metrics like precision, recall, specificity, and F1 score.<\/li>\n<li data-start=\"479\" data-end=\"551\">Useful for comparing multiple models to determine which performs best.<\/li>\n<li data-start=\"554\" data-end=\"644\">Offers clear insight into where a model performs well and where improvements are needed.<\/li>\n<\/ul>\n<h3 data-start=\"646\" data-end=\"668\">Disadvantages<\/h3>\n<ul>\n<li data-start=\"671\" data-end=\"739\">Applicable only to classification models, not regression problems.<\/li>\n<li data-start=\"742\" data-end=\"812\">Becomes harder to interpret in multi-class classification scenarios.<\/li>\n<li data-start=\"815\" data-end=\"869\">Does not explain why the model made specific errors.<\/li>\n<li data-start=\"872\" data-end=\"927\">Can be misleading when used with imbalanced datasets.<\/li>\n<\/ul>\n<h2 id=\"applications-of-confusion-matrix-in-real-world\">Applications of Confusion Matrix in Real World<\/h2>\n<ul>\n<li data-start=\"247\" data-end=\"471\">\n<h3>Healthcare Diagnosis<\/h3>\n<\/li>\n<\/ul>\n<p data-start=\"247\" data-end=\"471\">Used to evaluate medical classification models, such as predicting whether a patient has a disease based on test results. Helps analyze false positives and false negatives to improve accuracy.<\/p>\n<ul>\n<li data-start=\"476\" data-end=\"646\">\n<h3>Spam Email Detection<\/h3>\n<\/li>\n<\/ul>\n<p data-start=\"476\" data-end=\"646\">Helps measure how well an email filter classifies messages as <em data-start=\"568\" data-end=\"574\">Spam<\/em> or <em data-start=\"578\" data-end=\"588\">Not Spam<\/em>, reducing errors like marking important emails as spam.<\/p>\n<ul>\n<li data-start=\"651\" data-end=\"800\">\n<h3>Credit Risk Assessment<\/h3>\n<\/li>\n<\/ul>\n<p data-start=\"651\" data-end=\"800\">In banking, confusion matrices are used to check how accurately models predict loan defaults or credit risk levels.<\/p>\n<ul>\n<li data-start=\"805\" data-end=\"995\">\n<h3>Customer Churn Prediction<\/h3>\n<\/li>\n<\/ul>\n<p data-start=\"805\" data-end=\"995\">Businesses use it to assess models that predict whether a customer will stay or leave, helping reduce false predictions and improve retention strategies.<\/p>\n<ul>\n<li data-start=\"1000\" data-end=\"1195\">\n<h3>Image and Speech Recognition<\/h3>\n<\/li>\n<\/ul>\n<p data-start=\"1000\" data-end=\"1195\">Used to evaluate models in AI systems that classify images, faces, or spoken words, showing how often the system correctly identifies different categories.<\/p>\n<h2 id=\"confusion-matrix-faqs\">Confusion Matrix &#8211; FAQs<\/h2>\n<h3>What are the 4 values in a confusion matrix?<\/h3>\n<p>The four values in a confusion matrix are:<\/p>\n<ul>\n<li>True Positive (TP)<\/li>\n<li>True Negative (TN)<\/li>\n<li>False Positive (FP)<\/li>\n<li>False Negative (FN).<\/li>\n<\/ul>\n<h3>What are Type 1 and Type 2 errors in the confusion matrix?<\/h3>\n<p>Type 1 error (False Positive): Predicted positive but negative.<\/p>\n<p>Type 2 error (False Negative): Predicted negative but positive.<\/p>\n<h3>Which confusion matrix is good?<\/h3>\n<p>A good confusion matrix shows high values on the diagonal (True Negatives and True Positives) and low values off-diagonal (False Negatives and False Positives). All these help to indicate accurate predictions across classes.<\/p>\n<h4 id=\"wrap-up\">Wrap Up<\/h4>\n<p>A confusion matrix is designed to show model predictions versus the actual outcomes in a classification task. It helps in evaluating model performance and understanding errors (like false negatives\/positives). It also helps in calculating metrics like recall, precision, and accuracy.<\/p>\n<p>With a confusion matrix, you can easily set decision thresholds for classification inputs. Stakeholders have the option of adjusting these thresholds based on the trade-offs between different types of errors.<\/p>\n<p>To analyze the confusion matrix, you&#8217;ll have to use good visuals &#8211; and that&#8217;s where tools like ChartExpo come into play.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><p>Understand what a confusion matrix is and how it helps evaluate the accuracy of predictions, interpret model results, &#038; enhance analysis in classification tasks.<\/p>\n&nbsp;&nbsp;<a href=\"https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix\"><\/a><\/p>","protected":false},"author":1,"featured_media":39671,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[906],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>What is a Confusion Matrix? A Quick Guide -<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:title\" content=\"What is a Confusion Matrix? A Quick Guide -\" \/>\r\n<meta name=\"twitter:description\" content=\"Understand what a confusion matrix is and how it helps evaluate the accuracy of predictions, interpret model results, &amp; enhance analysis in classification tasks.\" \/>\r\n<meta name=\"twitter:image\" content=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/feature-ce630-200x200-01.jpg\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is a Confusion Matrix? A Quick Guide -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix","twitter_card":"summary_large_image","twitter_title":"What is a Confusion Matrix? A Quick Guide -","twitter_description":"Understand what a confusion matrix is and how it helps evaluate the accuracy of predictions, interpret model results, & enhance analysis in classification tasks.","twitter_image":"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/09\/feature-ce630-200x200-01.jpg","twitter_misc":{"Written by":"admin","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix","url":"https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix","name":"What is a Confusion Matrix? A Quick Guide -","isPartOf":{"@id":"http:\/\/localhost\/blog\/#website"},"datePublished":"2025-10-15T14:55:54+00:00","dateModified":"2025-11-13T08:17:11+00:00","author":{"@id":"http:\/\/localhost\/blog\/#\/schema\/person\/6aceeb7c948a3f66ff6439ce5c24a280"},"breadcrumb":{"@id":"https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/chartexpo.com\/blog\/what-is-a-confusion-matrix#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost\/blog"},{"@type":"ListItem","position":2,"name":"What is a Confusion Matrix? A Quick Guide"}]},{"@type":"WebSite","@id":"http:\/\/localhost\/blog\/#website","url":"http:\/\/localhost\/blog\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/localhost\/blog\/#\/schema\/person\/6aceeb7c948a3f66ff6439ce5c24a280","name":"admin","url":"https:\/\/chartexpo.com\/blog\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/39397"}],"collection":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/comments?post=39397"}],"version-history":[{"count":13,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/39397\/revisions"}],"predecessor-version":[{"id":55701,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/39397\/revisions\/55701"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/media\/39671"}],"wp:attachment":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/media?parent=39397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/categories?post=39397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/tags?post=39397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}