2,683 karma · joined September 13, 2016
data: T T T T T T F
rule1: for all i: T
rule2: for i < 7: T else F
Prolog will show you another way of thinking. If it does not then you are doing it wrong.
I think Curry is an interesting take on logic programming. A sort of Haskell meets Prolog.
Prolog is also unusual in a sense that it is essential to understand what the interpreter does with your code in order to be able to write it well. For vanilla Prolog, that's not so hard. However, when constraint programming and other extensions are added, that becomes much harder to do.
The negation would be evil(x) and do(x) by DeMorgan's law.
If what you mean is all(x), evil(x) -> not(do(x))
then the negation would be exists(x), evil(x) and do(x).
In the worst case scenario there are efficient approximation methods which can be used.
I’m not sure that the process the author describes is all that common in practice even if it is eminently sensible.
https://en.m.wikipedia.org/wiki/Binomial_proportion_confiden...
The blog post uses a non informative Jeffrey prior.
Neither involve Monte Carlo sampling. Both are general and principled.
“However, it is very important that the uncertainty in the number of trials is taken into account because over-estimating a fraction is a costly mistake.“
Seems fairly clear to me that you’re supposed to use a lower bound estimate to take into account variance on the fraction due to the number of trials in a way to bounds the chance of over estimation.
Further, there is no need for a heuristic when there a several statistical models for this exact problem with clear properties. Some are given in the answer.
A theoretical background is valuable. It distills hundreds of years of other people's learnings. Ceteris paribus, if you do not have it, you are at a disadvantage.