<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikimd.com/index.php?action=history&amp;feed=atom&amp;title=Confusion_matrix</id>
	<title>Confusion matrix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikimd.com/index.php?action=history&amp;feed=atom&amp;title=Confusion_matrix"/>
	<link rel="alternate" type="text/html" href="https://wikimd.com/index.php?title=Confusion_matrix&amp;action=history"/>
	<updated>2026-04-24T11:44:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wikimd.com/index.php?title=Confusion_matrix&amp;diff=6502219&amp;oldid=prev</id>
		<title>Prab: CSV import</title>
		<link rel="alternate" type="text/html" href="https://wikimd.com/index.php?title=Confusion_matrix&amp;diff=6502219&amp;oldid=prev"/>
		<updated>2025-03-17T08:08:49Z</updated>

		<summary type="html">&lt;p&gt;CSV import&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:08, 17 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l76&quot;&gt;Line 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Evaluation methods]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Evaluation methods]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{No image}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{No image}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;__NOINDEX__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikimd4:diff:1.41:old-6221065:rev-6502219:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Prab</name></author>
	</entry>
	<entry>
		<id>https://wikimd.com/index.php?title=Confusion_matrix&amp;diff=6221065&amp;oldid=prev</id>
		<title>Prab: CSV import</title>
		<link rel="alternate" type="text/html" href="https://wikimd.com/index.php?title=Confusion_matrix&amp;diff=6221065&amp;oldid=prev"/>
		<updated>2025-02-10T11:54:36Z</updated>

		<summary type="html">&lt;p&gt;CSV import&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:54, 10 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l75&quot;&gt;Line 75:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Statistical classification]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Statistical classification]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Evaluation methods]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Evaluation methods]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{No image}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Prab</name></author>
	</entry>
	<entry>
		<id>https://wikimd.com/index.php?title=Confusion_matrix&amp;diff=6011219&amp;oldid=prev</id>
		<title>Prab: CSV import</title>
		<link rel="alternate" type="text/html" href="https://wikimd.com/index.php?title=Confusion_matrix&amp;diff=6011219&amp;oldid=prev"/>
		<updated>2024-10-27T16:18:01Z</updated>

		<summary type="html">&lt;p&gt;CSV import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Confusion Matrix =&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;confusion matrix&amp;#039;&amp;#039;&amp;#039; is a specific table layout that allows visualization of the performance of an algorithm, typically a [[supervised learning]] one. It is a tool often used in the field of [[machine learning]] and [[statistics]] to evaluate the accuracy of a classification model.&lt;br /&gt;
&lt;br /&gt;
== Structure of a Confusion Matrix ==&lt;br /&gt;
&lt;br /&gt;
A confusion matrix is a square matrix that compares the actual target values with those predicted by the model. It is composed of four key components:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Actual \ Predicted&lt;br /&gt;
! Positive&lt;br /&gt;
! Negative&lt;br /&gt;
|-&lt;br /&gt;
! Positive&lt;br /&gt;
| True Positive (TP)&lt;br /&gt;
| False Negative (FN)&lt;br /&gt;
|-&lt;br /&gt;
! Negative&lt;br /&gt;
| False Positive (FP)&lt;br /&gt;
| True Negative (TN)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;True Positive (TP)&amp;#039;&amp;#039;&amp;#039;: The number of instances that are correctly predicted as positive.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;False Positive (FP)&amp;#039;&amp;#039;&amp;#039;: The number of instances that are incorrectly predicted as positive.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;True Negative (TN)&amp;#039;&amp;#039;&amp;#039;: The number of instances that are correctly predicted as negative.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;False Negative (FN)&amp;#039;&amp;#039;&amp;#039;: The number of instances that are incorrectly predicted as negative.&lt;br /&gt;
&lt;br /&gt;
== Metrics Derived from a Confusion Matrix ==&lt;br /&gt;
&lt;br /&gt;
Several important metrics can be derived from the confusion matrix, which are crucial for understanding the performance of a classification model:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Accuracy&amp;#039;&amp;#039;&amp;#039;: The proportion of the total number of predictions that were correct.&lt;br /&gt;
  : Accuracy = \( \frac{TP + TN}{TP + FP + TN + FN} \)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Precision&amp;#039;&amp;#039;&amp;#039;: The proportion of positive identifications that were actually correct.&lt;br /&gt;
  : Precision = \( \frac{TP}{TP + FP} \)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Recall&amp;#039;&amp;#039;&amp;#039; (also known as Sensitivity or True Positive Rate): The proportion of actual positives that were identified correctly.&lt;br /&gt;
  : Recall = \( \frac{TP}{TP + FN} \)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Specificity&amp;#039;&amp;#039;&amp;#039;: The proportion of actual negatives that were identified correctly.&lt;br /&gt;
  : Specificity = \( \frac{TN}{TN + FP} \)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;F1 Score&amp;#039;&amp;#039;&amp;#039;: The harmonic mean of precision and recall, providing a balance between the two.&lt;br /&gt;
  : F1 Score = \( 2 \times \frac{Precision \times Recall}{Precision + Recall} \)&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
Confusion matrices are widely used in various fields such as:&lt;br /&gt;
&lt;br /&gt;
* [[Healthcare]]: To evaluate the performance of diagnostic tests.&lt;br /&gt;
* [[Finance]]: To assess the accuracy of credit scoring models.&lt;br /&gt;
* [[Marketing]]: To measure the effectiveness of customer segmentation models.&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
&lt;br /&gt;
While confusion matrices provide a comprehensive overview of a model&amp;#039;s performance, they have limitations:&lt;br /&gt;
&lt;br /&gt;
* They do not provide a single measure of performance, which can make comparisons between models difficult.&lt;br /&gt;
* They are not useful for [[imbalanced datasets]], where the number of instances in different classes varies significantly.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Receiver Operating Characteristic]]&lt;br /&gt;
* [[Precision and Recall]]&lt;br /&gt;
* [[Classification Algorithm]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* {{Cite book | last1 = Bishop | first1 = Christopher M. | title = Pattern Recognition and Machine Learning | year = 2006 | publisher = Springer | isbn = 978-0-387-31073-2 }}&lt;br /&gt;
* {{Cite journal | last1 = Fawcett | first1 = Tom | title = An introduction to ROC analysis | journal = Pattern Recognition Letters | year = 2006 | volume = 27 | issue = 8 | pages = 861–874 | doi = 10.1016/j.patrec.2005.10.010 }}&lt;br /&gt;
&lt;br /&gt;
[[Category:Machine learning]]&lt;br /&gt;
[[Category:Statistical classification]]&lt;br /&gt;
[[Category:Evaluation methods]]&lt;/div&gt;</summary>
		<author><name>Prab</name></author>
	</entry>
</feed>