{"version":10,"randomSeed":"210c313dca86e50b69429daf6445d7d7","graph":{"viewport":{"xmin":-20.878680989210828,"ymin":-27.276632363865332,"xmax":167.5733092509707,"ymax":161.17535787631616}},"expressions":{"list":[{"type":"text","id":"2","text":"here we model the effect of a quantitative variable on a binary categorical variable"},{"type":"text","id":"6","text":"t-tests and the like already kinda apply, but i'll try something new"},{"type":"text","id":"10","text":"for the example, we will check the effect of \"how many pages is en article\" on \"is there a simple article\""},{"type":"expression","id":"11","color":"#c74440","latex":"T=\\left[30,15,37,60,30,13,11,32,44,19,19,87,80,39,22,12,42,19,11,3,9,6,12,14,10,4,7,37,71\\right]"},{"type":"expression","id":"12","color":"#2d70b3","latex":"F=\\left[12,18,6,33,2,2,3,5,12,10,22,9,6,12,3,30,14,7,23,12\\right]"},{"type":"expression","id":"13","color":"#388c46","latex":"\\operatorname{histogram}\\left(T,5\\right)","vizProps":{"binAlignment":"left"}},{"type":"expression","id":"14","color":"#6042a6","latex":"\\operatorname{histogram}\\left(F,5\\right)","vizProps":{"binAlignment":"left"}},{"type":"text","id":"16","text":"cutoff to minimise naive error-count on each side"},{"type":"expression","id":"17","color":"#c74440","latex":"\\left(\\sum_{k=1}^{\\operatorname{length}\\left(F\\right)}\\left\\{F\\left[k\\right]>x:1,0\\right\\}\\right)+\\left(\\sum_{k=1}^{\\operatorname{length}\\left(T\\right)}\\left\\{T\\left[k\\right]<x:1,0\\right\\}\\right)"},{"type":"text","id":"19","text":"cutoff to minimise total error distance"},{"type":"expression","id":"20","color":"#388c46","latex":"\\left(\\sum_{k=1}^{\\operatorname{length}\\left(F\\right)}\\left\\{F\\left[k\\right]>x:F\\left[k\\right]-x,0\\right\\}\\right)+\\left(\\sum_{k=1}^{\\operatorname{length}\\left(T\\right)}\\left\\{T\\left[k\\right]<x:x-T\\left[k\\right],0\\right\\}\\right)"}]}}