Sunday, 13 September 2026
Table of Probability Distributions
Wednesday, 21 July 2021
Logistic Regression Calculator and ROC Curve Plotter
Consider a binary outcome response variable \(Y\in\{0,1\}\) and let \(p\) be the probability that \(Y\) is \(1\), i.e. \(p=P(Y=1)\).
The logistic model is formally given by:-
\(\log(\frac{p}{1-p})=\beta_0+\beta_1x_1+\beta_2x_2+\cdots+\beta_px_p\)
In the two texareas below, the first (narrow) one on the left has the response variable \(Y\), while the second one has the corresponding comma separated predictor variable entries \(x_k\). Example values have been entered (2000 samples), which can be altered as appropriate. In addition, it is possible to load a CSV format file by clicking on the "Choose File" button - the first column has to be the response variable (taking either 1 or 0 as a value), while column 2 onwards are the real valued predictor variables.
To run the algorithm once the values have been entered in the textareas, simply click on the "Estimate model parameters" button. A plot indicating algorithm convergence will be updated (showing the increase of the log likelihood function), and could be useful in specifying the number of iterations needed for the Newton-Raphson algorithm. Finally, the Receiver Operating Characteristic (ROC) plot will be generated. For the ROC, a black line of gradient 1 will be generated as reference.
Results pending...
| Algorithm convergence | ||
| Iteration number |
| Receiver Operating Characteristic | ||
| Sensitivity | ||
| 1 - Specificity |
Table of Probability Distributions
Below is a table listing commonly used probability distributions and their Cumulative Distribution Function (CDF). The table could come in ...
-
This blog post implements a Fast Fourier Transform (FFT) or an Inverse Fast Fourier Transform (IFFT) on a complex input, depend...
-
This blog is dedicated predominantly to various aspects of probability and statistics, with some aspects of digital signal processing and ...
-
Either enter numbers as displayed below (must be three or more samples), or press choose file button to enter a single column ...