0
$\begingroup$

I know a logistic regression that tells you the probability of a specific data point corresponding to True, which means its a variation of a binary classification problem.

Let's say I have data points where each point is an n-dimensional vector. I only have data points where the binary dependent variable is True (zero data points for where it is false).

I would like to calculate the probability of an arbitrary n-dimensional vector corresponding to True. How would I go about doing this? Is this even possible?

My only thoughts on this would be to somehow find the distance between this arbitrary vector and some other vector that corresponds to True, then weigh it in a way that could be interpreted as a probability.

Would I even need to do this? Could I just do a logistic regression in Stata with the dataset I already have or would that not work?

$\endgroup$
8
  • 1
    $\begingroup$ It is easy to try. If all observed responses are 1 (more generally, non-zero and not missing) Stata declines to try to fit a logistic regression. Otherwise this hinges on what is an arbitrary data vector, and I have no idea what that means in Stata terms. $\endgroup$
    – Nick Cox
    Commented Dec 18, 2019 at 16:41
  • $\begingroup$ Does this answer your question? Binary semi-supervised classification with positive only and unlabeled data set $\endgroup$ Commented Dec 18, 2019 at 16:42
  • $\begingroup$ That is sorta similar to the premise of my question but I don't really have unlabeled data. I just have positive data and want to say "If I gave this new data point vector these values, what is the probability that it would correspond to True?" $\endgroup$
    – Anthony
    Commented Dec 18, 2019 at 16:46
  • 3
    $\begingroup$ This isn't on all fours with "I tossed my coin and got heads every time. What's the probability of that?" That is an answerable question if you tell us the number of tosses and postulate a fair coin. Your question is more like "My coin is likely biased and I get heads every time. What is the probability of that?", which is unanswerable beyond saying that the data imply probability 1 (knowing other variables is irrelevant). $\endgroup$
    – Nick Cox
    Commented Dec 18, 2019 at 17:27
  • 1

1 Answer 1

1
$\begingroup$

Logistic regression programs will not run on such data. There will be a division by 0 problem.

However, there has been work done on estimating the true probability when you only have data at one level. I have not looked at this literature in a while, but there was a paper by Agresti and Coull "Approximate is better than exact for interval estimation of binomial proportions" American Statistician vol 52, p 119-126. They give a relatively complicated formula and also a simple approximation of adding 2 "successes" and 2 "failures" and then proceeding as usual.

Another option is the "rule of 3" which says an approximate 95 \% CI for p = 1 is given by 1 - 3/n and 1.

However, this does not really do what logistic regression does. Rather, either of these solutions wind up measuring the frequency of different vectors.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.