Empirical ROC curve
plot_empirical_ROC_curves(
Number_of_cases = 100,
Number_of_non_cases = 100,
frequencies_of_non_cases = stats::rmultinom(1, size = Number_of_cases, prob = c(0.1,
0.2, 0.3, 0, 5)),
frequencies_of_cases = stats::rmultinom(1, size = Number_of_non_cases, prob = c(0.4,
0.3, 0.2, 0, 1))
)
Number_of_cases
Number_of_non_cases
frequencies_of_non_cases
frequencies_of_cases
Suppose that there is a \(K\) categories and data are drawn from two multinomial distributions of size \(n,m\).
$$h_1,h_2,...,h_K, \Sigma h_i = n,$$
$$f_1,f_2,...,f_K,\Sigma f_i = m.$$
Then this plots the cumulative sums.