| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Confusion</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
Confusion |
| 13 |
</b></font></table></table> |
| 14 |
<p>One of the <a href="Types_of_objects.html">types of objects</a> in Praat.</p> |
| 15 |
<p>An object of type Confusions represents a confusion matrix, with stimuli as row labels and responses as column labels. The entry at position [<i>i</i>] [<i>j</i>] represents the number of times response <i>j</i> was given to the stimulus <i>i</i>.</p> |
| 16 |
<h2>Creating a Confusion from data in a text file</h2> |
| 17 |
<p>Suppose you have two objects A and B. In one way or another, you have acquired the following confusions: <i>δ</i><sub><i>AA</i></sub> = 6, <i>δ</i><sub><i>AB</i></sub> = 2 , <i>δ</i><sub><i>BA</i></sub> = 1, and <i>δ</i><sub><i>BB</i></sub> = 7.</p> |
| 18 |
<p>You can create a simple text file like the following:</p> |
| 19 |
<code> "ooTextFile" ! to make Praat recognize your file<br></code> |
| 20 |
<code> "Confusion" ! The line that tells Praat about the contents<br></code> |
| 21 |
<code> 2 "A" "B" ! Number of columns, and column labels<br></code> |
| 22 |
<code> 2 ! Number of rows<br></code> |
| 23 |
<code> "A" 6 2 ! Row label A, A-A value, A-B value<br></code> |
| 24 |
<code> "B" 1 7 ! Row label B, B-A value, B-B value<br></code> |
| 25 |
<p>This text file can be read with the <a href="Read_from_file___.html">Read from file...</a> command. </p> |
| 26 |
<h2>Commands</h2> |
| 27 |
<p>Creation:</p> |
| 28 |
<dl> |
| 29 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Categories__To_Confusion.html">Categories: To Confusion</a></dd> |
| 30 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Create_simple_Confusion___.html">Create simple Confusion...</a></dd> |
| 31 |
</dl> |
| 32 |
<p>Drawing</p> |
| 33 |
<dl> |
| 34 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Draw as numbers...</b></dd> |
| 35 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Draw as squares...</b></dd> |
| 36 |
</dl> |
| 37 |
<p>Query</p> |
| 38 |
<dl> |
| 39 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Confusion__Get_fraction_correct.html">Get fraction correct</a></dd> |
| 40 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Confusion__Get_stimulus_sum___.html">Confusion: Get stimulus sum...</a></dd> |
| 41 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Confusion__Get_response_sum___.html">Confusion: Get response sum...</a></dd> |
| 42 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Get grand sum</b></dd> |
| 43 |
</dl> |
| 44 |
<p>Modification</p> |
| 45 |
<dl> |
| 46 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Formula...</b></dd> |
| 47 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Confusion__Increase___.html">Confusion: Increase...</a></dd> |
| 48 |
</dl> |
| 49 |
<p>Grouping</p> |
| 50 |
<dl> |
| 51 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Confusion__Group_stimuli___.html">Confusion: Group stimuli...</a></dd> |
| 52 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Confusion__Group_responses___.html">Confusion: Group responses...</a></dd> |
| 53 |
</dl> |
| 54 |
<p>Analysis:</p> |
| 55 |
<dl> |
| 56 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Confusion__To_Similarity___.html">Confusion: To Similarity...</a></dd> |
| 57 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Confusion__To_Dissimilarity__pdf____.html">Confusion: To Dissimilarity (pdf)...</a></dd> |
| 58 |
</dl> |
| 59 |
<h2>Inside a Confusion</h2> |
| 60 |
<p>With <a href="Inspect.html">Inspect</a> you will see the following attributes:</p> |
| 61 |
<dl> |
| 62 |
<dt><i>numberOfRows</i> |
| 63 |
<dd>the number of stimuli.</dd> |
| 64 |
<dt><i>numberOfColumns</i> |
| 65 |
<dd>the number of responses.</dd> |
| 66 |
<dt><i>rowLabels</i> |
| 67 |
<dd>the names of the stimuli.</dd> |
| 68 |
<dt>columnLabels |
| 69 |
<dd>the names of the responses.</dd> |
| 70 |
</dl> |
| 71 |
<h3>Links to this page</h3> |
| 72 |
<ul> |
| 73 |
<li><a href="ClassificationTable__To_Confusion___.html">ClassificationTable: To Confusion...</a> |
| 74 |
<li><a href="Confusion___ClassificationTable__Increase_confusion_cou.html">Confusion & ClassificationTable: Increase confusion count</a> |
| 75 |
<li><a href="Confusion__Condense___.html">Confusion: Condense...</a> |
| 76 |
<li><a href="Confusion__To_Dissimilarity___.html">Confusion: To Dissimilarity...</a> |
| 77 |
<li><a href="Confusion__To_TableOfReal__marginals_.html">Confusion: To TableOfReal (marginals)</a> |
| 78 |
<li><a href="Discriminant_analysis.html">Discriminant analysis</a> |
| 79 |
<li><a href="Feedforward_neural_networks_2__Quick_start.html">Feedforward neural networks 2. Quick start</a> |
| 80 |
<li><a href="Feedforward_neural_networks_3__FFNet_versus_discriminan.html">Feedforward neural networks 3. FFNet versus discriminant classifier</a> |
| 81 |
<li><a href="INDSCAL_analysis.html">INDSCAL analysis</a> |
| 82 |
</ul> |
| 83 |
<hr> |
| 84 |
<address> |
| 85 |
<p>© djmw 20110517</p> |
| 86 |
</address> |
| 87 |
</body> |
| 88 |
</html> |