\section{Appendix} \subsection{Preselection} \begin{figure}[H] \centering \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/b_dira_ownpv.pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(b_amaxdoca).pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(b_endvertex_chi2).pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(b_fdchi2_ownpv).pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(b_pt).pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(jpsi_endvertex_chi2).pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(jpsi_ipchi2_ownpv).pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(k1_1270_ipchi2_ownpv).pdf} \end{subfigure} \caption{Variables used in the preselection as described in Sect. \ref{sec:preselection}} \end{figure} \begin{figure}\ContinuedFloat \centering \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/k_probnnk.pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/k_track_ghostprob.pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/piminus_probnnpi.pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/piplus_probnnpi.pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/piminus_track_ghostprob.pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/piplus_track_ghostprob.pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(piplus_ipchi2_ownpv+piminus_ipchi2_ownpv+k_ipchi2_ownpv).pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/log(eplus_ipchi2_ownpv+eminus_ipchi2_ownpv).pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/eplus_track_ghostprob.pdf} \end{subfigure} \begin{subfigure}{0.45\linewidth} \includegraphics[width=\linewidth]{figs/preselection/eminus_track_ghostprob.pdf} \end{subfigure} \caption{Variables used in the preselection as described in Sect. \ref{sec:preselection}} \end{figure} \subsection{Reweighting} \begin{figure}[H] \begin{subfigure}{0.5\linewidth} \includegraphics[width=\linewidth]{figs/ndim_comparison/simple_dist1.png} \end{subfigure} \begin{subfigure}{0.5\linewidth} \includegraphics[width=\linewidth]{figs/ndim_comparison/simple_dist2.png} \end{subfigure} \caption{A two dimensional distribution and its projections. Even tough the distributions can be easily discriminated by looking at their higher order -- second order here -- correlations, there projections do not reveal that.} \label{fig:appendix:reweighting:ndim_dist_projections} \end{figure} \begin{figure}[!htb] \centering \includegraphics[width=0.8\linewidth]{figs/roc_auc_bias/reweighting_quality_final1.pdf} \caption{ROC AUC bias with weights visualized. The reweighter works quite well for this example and assigns a weight of 5 to the single blue point. Then the data is split in two different ways (Fold 1 and 2) into training and test data in order to compare two possible outcomes. The total outcome can be thought as an average of both cases.} \label{fig:appendix:reweighting:roc_auc_bias} \end{figure} \subsection{Selection} \begin{figure}[H] \centering \includegraphics[width=0.7\linewidth]{figs/selection/roc_curve_xgb_classifier.eps} \caption{ROC curve of the XGB trained on the MC against the right side band (\B mass vertex constrained $> 5600\mev$) of \Btokpipiee.} \end{figure}