I am facing a rather strange problem. Machine learning gives us a probability of a data point belonging to either class (classification) or the actual estimate of the dependent variable given independent variables (regression).   I am interested in building a model that has output such as $P(y \leq \hat{y} | x)$, that is, the 'probability of actual value to be less than or equal to predicted-value given x'.   I have gone through confidence intervals and predictions intervals for Logistic Regression. Are they best, I can do? Is there stream of research or machine learning, which I am missing.
I am interested in finding out how confident my model (say Logistic Regression) is in predicting the label of a new data point. For example, if it is not confident, I better abstain from making a prediction.   Logistic Regression outputs probabilities, which gives you a notion that there is confidence in prediction. But in fact, it is not. $P(y|x)$ being 0.3, doesn't tell me that the model is confident in its prediction or not. All, we can say is that it believes 100% that class A is 0.3 and other class is 0.7.  Can we use confidence intervals of LR as some sort of confidence in prediction? E.g., larger the difference between upper and lower bound for a particular data point, less confident it is, and vice-versa?  If not, how can we build confidence in our prediction? Can anybody guide me to some paper or field of study?
Is there a list of the names used for Sauron in Lord of the Rings? shortcut key to detach a tab in firefox (move tab to new window) In FF, I can move a tab to a new window by either dragging the tab out of the browser, or right clicking the "move to New window" option from the context menu. is there a shortcut key to move the current tab to a new window without dragging or using the context menu, or a way to set one up?  Often, I like to look at 2 tabs side by side, so I drag one out, then hit WINDOWS KEY+→ to put the detached tab on the right, then ALT+TAB to tab back to the main window, then WINDOWS KEY+← to put the main window on the left. It would be great if I could do the whole process on the keyboard.  I checked  documentation and did not find any shortcut key for detaching a tab: unable to reset root password of mysql With CSS, use "..." for overflowed block of multi-lines How to store and preserve film negatives and slides? I bought 35mm dedicated film scanner (Nikon CoolScan III) and I'm planning to digitize old negatives and slides I found at home.  How should I store and preserve these slides and films after I cut them and scan? How to choose best negative pages/sleeves, binders etc. and what to avoid? Is it correct to use that/which in the relative clause when it is referring to the place as an object pronoun? When should I create a new tag? How do I request a new tag if I don't have enough rep? Can someone please create the tag  on our site? We need to have it because        Foo is a recent/upcoming release / edition / model / episode of a popular, established OS / board game / bike brand / TV show   Foo is a hot new language / ingredient / game   we're currently using some other tag for questions about Foo, but it's causing ambiguity with a separate thing that's also named Foo      This is not a joke post. We get a lot of feature requests that ask for this or that tag to be created, and every time, a discussion ensues wherein people explain that there is no "tag creation department" and that community members create tags just by using them. I'm posting this "question" so that future requests of that type can be closed as a duplicate of this, saving time and eliminating redundant conversations for everyone involved.     See also: Is there an official rule that the minimum damage can't be negative? So I can start from len(collection) and end in collection[0].  I also want to be able to access the loop index. Solve $f(x)f(2x^2) = f(2x^3+x)$ How to customize my titlepage? Prove that inequality $\sum _{cyc}\frac{a^2+b^2}{a+b}\le \frac{3\left(a^2+b^2+c^2\right)}{a+b+c}$ Let $a&gt;0$,$b&gt;0$ and $c&gt;0$. Prove that:    $$\dfrac{a^2+b^2}{a+b}+\dfrac{b^2+c^2}{b+c}+\dfrac{c^2+a^2}{c+a}\le \dfrac{3\left(a^2+b^2+c^2\right)}{a+b+c}.$$     $$\Leftrightarrow \frac{(a^2+b^2)(a+b+c)}{a+b}+\frac{(b^2+c^2)(a+b+c)}{b+c}+\frac{(c^2+a^2)(a+b+c)}{c+a}\leq 3(a^2+b^2+c^2)$$  $\Leftrightarrow 2(a^2+b^2+c^2)+\frac{c(a^2+b^2)}{a+b}+\frac{a(b^2+c^2)}{b+c}+\frac{b(a^2+c^2)}{a+c}\leq 3(a^2+b^2+c^2)$  $\Leftrightarrow \frac{c(a^2+b^2)}{a+b}+\frac{a(b^2+c^2)}{b+c}+\frac{b(a^2+c^2)}{a+c}\leq a^2+b^2+c^2$  $\Leftrightarrow \frac{c(a+b)^2-2abc}{a+b}+\frac{a(b+c)^2-2abc}{b+c}+\frac{b(a+c)^2-2abc}{a+c}\leq a^2+b^2+c^2$  $\Leftrightarrow 2(ab+bc+ac)\leq a^2+b^2+c^2+2abc\left(\frac{1}{a+b}+\frac{1}{b+c}+\frac{1}{a+c}\right)$  I can't continue. Help me PostgreSQL Shapefile import failed I am very new to PostGIS/PostgreSQL. In fact, I downloaded it because of the answers I got to this question:   I installed both PostgreSQL and PostGIS. But I am not able to import a shapefile to the database? It gives an error, "Shapefile import failed". What am I doing wrong? Suppose $m,n&gt;0$, $U$ an open subset of $\mathbb{R}^{m+n}$ and let $f: U \to \mathbb{R}^n$ be continuously differentiable.  Is it possible for $f$ to be injective?    My thinking is that continuous differentiability+injectivity suggests that this is sort of getting at a converse to the Inverse Function Theorem.  We know the Jacobian is not invertible at any point in $U$, and the question is asking if this implies that $f$ cannot be invertible in any neighborhood contained in $U$. I am needing to auto increment a field based on groups within a feature class. I have 8 plots within a given polygon and I need to assign them an ID from 1-8 for each set of plots within each polygon. The polygon would have its own unique ID number to be used to group the plots.  I assume it would be an alteration of this:  rec=0 def autoIncrement():  global rec  pStart = 1   pInterval = 1   if (rec == 0):    rec = pStart   else:    rec = rec + pInterval   return rec I have a friend who is playing with me on a server we've created. Unfortunately, he is on a  Mac whereas I am on a Windows machine. I told him that I should be able to compile and send a .minecraft folder to him so that we can both play. Unfortunately, he can't find his .minecraft folder where it is supposed to be. Is it hidden and how can I unhide it? What type of path in shebang is more preferable? In scripts, first line should specify the path to interpreter. But on different servers Linux, Unix, or BSD this path could be different.  What is more preferable?  #!/usr/bin/env bash    or  #!/bin/bash Is it possible to see a list of the settlers in a given settlement and the jobs they are assigned to? It would make it easier to pick a settler for a new job. Open a window on a remote X display (why "Cannot open display")? A short story I read long ago about the phone system 'waking up'