<table><tr><td style="">devanshuagarwal created this revision.<br />devanshuagarwal added reviewers: sgerlach, asemke.<br />devanshuagarwal created this object with visibility "All Users".<br />devanshuagarwal added a project: LabPlot.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />devanshuagarwal requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21684">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>I have tried adding t-test and z test.</p>

<p>For the Z Test, the backend is not done yet. In NSL library there is no defined function to get the p-value for the given z value, so I have to add my own function there.</p>

<p>Tried doing model/view programming to show the summary and results via listview. This enables to give hints for every line and set edit triggers and selections to false so to get a feel of message text rather than list view.</p>

<p>So available tests now, <br />
Two sample independent (t and z test)<br />
Two sample paired (t and z test)<br />
one sample (t and z test)</p>

<p>Sometimes, there is the case when the user wants to perform two sample tests on two columns where one column is the independent variable and the second column is having classes. So, for this, we first have to get two numeric sets of data. <br />
E.g. let two columns on which user wants to perform two sample test are</p>

<p>A:                      B<br />
class_1             value1<br />
class_1             value2<br />
class_2             value3<br />
class_1             value4<br />
class_2              value5</p>

<p>Here we first have to get two sets of data like this<br />
class_1:             class_2:<br />
value1              value3<br />
value2              value5<br />
value4</p>

<p>now we have to do the usual two-sample test on class_1 and class_2 columns.</p>

<p>For now, only dataSourceSpreadsheet is working. After successful implementation of this we can easily shift to dataSourceDatabase</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"></pre></div></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Right click on spreadsheet</li>
<li class="remarkup-list-item">go to "Hypothesis Test"</li>
<li class="remarkup-list-item">select test from "tests" view in hypothesis dock</li>
<li class="remarkup-list-item">select an alternate hypothesis radio button (two tail or one tail)</li>
<li class="remarkup-list-item">change values of significance level and population mean (if you want to) else leave them to default values</li>
<li class="remarkup-list-item">select columns under section independent variable on which you want to do the test. (Both columns should contain only numbers)</li>
<li class="remarkup-list-item">press "Do Test" to perform the test</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R262 LabPlot</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21684">https://phabricator.kde.org/D21684</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/backend/hypothesis_test/HypothesisTest.cpp<br />
src/backend/hypothesis_test/HypothesisTest.h<br />
src/backend/hypothesis_test/HypothesisTestPrivate.h<br />
src/kdefrontend/dockwidgets/HypothesisTestDock.cpp<br />
src/kdefrontend/dockwidgets/HypothesisTestDock.h<br />
src/kdefrontend/hypothesis_test/HypothesisTestView.cpp<br />
src/kdefrontend/hypothesis_test/HypothesisTestView.h<br />
src/kdefrontend/ui/dockwidgets/hypothesistestdock.ui</div></div></div><br /><div><strong>To: </strong>devanshuagarwal, sgerlach, asemke<br /><strong>Cc: </strong>kde-edu, LabPlot, narvaez, apol<br /></div>