Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin{frame}{Categorical to Normal}
- begin{itemize}
- item Create thresholds in standard normal based on frequencies of categorical
- item Sample a few (5) points for each categorical value in the threshold
- end{itemize}
- begin{tikzpicture}[node distance = 2.5cm, auto]
- node [whiteblock] (cat) {Categorical};
- node [whiteblock, right of=cat] (freq) {Frequencies};
- node [whiteblock, right of=freq] (thresh) {Thresholds};
- node [whiteblock, right of=thresh] (samp) {Sample Continuous};
- node [block, below of=cat] (catr) {A;A;B;C};
- node [block, right of=catr] (freqr) {A: 0.5, B: 0.25, C: 0.25};
- node[inner sep=1pt, right of=freqr](threshr)
- {
- begin{axis}[no markers, domain=-2:2, samples=100, xlabel=empty, ylabel=empty,
- axis lines*=left,
- height=3cm, width=4cm,
- xticklabels={A,B,C},
- ytick=empty,
- enlargelimits=false, clip=false, axis on top,
- grid = major]
- addplot [fill=cyan!20, draw=none, domain=-2:0] {gauss(0,1)} closedcycle;
- addplot [fill=orange!20, draw=none, domain=0:1] {gauss(0,1)} closedcycle;
- addplot [fill=red!20, draw=none, domain=1:2] {gauss(0,1)} closedcycle;
- end{axis}
- };
- node [block, right of=threshr] (sampr) {Sample Continuous};
- path [line] (cat) -- (freq);
- path [line] (freq) -- (thresh);
- path [line] (thresh) -- (samp);
- path [line] (freqr) -- (threshr);
- end{tikzpicture}
- end{frame}
Add Comment
Please, Sign In to add comment