In a (logistic?) regression paper related to credit scoring and involving psychometric data and credit scoring, there are 11 predictor variables used to estimate credit score. The sample size is 142. Intuitively, it doesn't seem enough, but what exactly is the rule of thumb involved for regressions? That involve psychometric data? That are logistic?  the paper:   ZUI slideshow summary:
I want to make a logistic model from my survey data. It is a small survey of four residential colonies in which only 154 respondents were interviewed. My dependent variable is "satisfactory transition to work". I found that, of the 154 respondents, 73 said that they have satisfactorily transitioned to work, while the rest did not. So the dependent variable is binary in nature and I decided to use logistic regression. I have seven independent variables (three continuous and four nominal). One guideline suggest that there should be 10 cases for each predictor / independent variable (Agresti, 2007). Based on this guideline I feel that it is OK to run logistic regression.    Am I right? If not please let me know how to decide the number of independent variables?
Count number of increasing functions, nondecreasing functions $f: \{1, 2, 3, \ldots, n\} \to \{1, 2, 3, \ldots, m\}$, with $m \geq n$. I stumbled upon a question given like:  Let $m$ and $n$ be two integers such that $m \geq n \geq 1$.   Count the number of functions $$f: \{1, 2, · · · , n\} \to \{1, 2, · · · , m\}$$ of the following two types:  (a) strictly increasing; i.e., whenever $x &lt; y, f(x) &lt; f(y)$, and  (b) non-decreasing; i.e., whenever $x &lt; y, f(x) \leq f(y)$.  I tried in the following way.  For (a). We can say $f(n)&gt;f(n-1)$ AND $f(n)&gt;f(n-2) \ldots f(n)&gt;f(1)$ (total $n-1$ elements)  Similarly for $f(n-1)&gt;f(n-2), f(n-1)&gt;f(n-3) \ldots f(n-1)&gt;f(1)$ (total $n-2$ elements)...  and $f(2)&gt;1$  Like this $$(n-1) + (n-2) + \ldots + (1) = \frac{n(n-1)}{2}$$  Is this correct?  For (b). Since there's equality, it will be $$n + (n-1) + ... (1) = \frac{n(n+1)}{2}$$  Is my approach correct? Any help is appreciated. Thanks in advance. Logitech LS21 recognized as 2.0 system - Windows 8.1 doesn't detect Subwoofer I got my dad a Logitech LS21 system for Christmas. It's a 2.1 system, but it's recognized in Windows 8 as a 2.0 system (it says there is no subwoofer connected).    How would I go about getting the sub recognized?  It plays some sound now, but it's so quiet you can't hear it without putting your ear right next to it. can we have a parallel earth made of dark matter? Full-wave bridge rectifier with capacitor filter and ripple voltage According to various sources, the ripple voltage of a full-wave bridge rectifier is   $$ V_r = \frac{V_s}{2}fCR $$  where \$V_s\$ is the peak of the input voltage source, \$f\$ is the frequency, \$C\$ is the capacitor and \$R\$ the resistor.  I have simulated this circuit on PSPICE, circuitlab, and built it in real life:   \$R\$ is \$4.7K\$ and \$C\$ is \$10 uF\$. Voltage source is sine wave with \$0 V\$ offset, \$5V\$ amplitude and \$40 Hz\$ frequency.  All 3 experiments give me a ripple voltage of approximately \$0.65V\$, but the formula gives me \$1.330 V\$ (twice as much).  What am I missing? Bash string range and replace To print part of the string, replace , with . I use command:  echo "${q:16:6}" | sed 's/,/./'   Is it possible to use something like:  echo "${q:16:6/,/.}"   because it does not work? I'm consistently receiving significant delays on Stack Overflow when opening the flag dialog on questions. Delays do not occur on any other StackExchange site I have checked. This started a couple days ago (as far as I can tell).  Delays occur not only when loading the initial screen, but also when loading the submenus. This is slightly confusing for a couple seconds (until you're used to it) since it appears as if the flag dialog has simply vanished.   What's going on here? I demand to know, otherwise somebody will be very upset.  Not me. I'm not going to get that upset over something like this.  But someone will.    Specs (though I know of several others who have this issue):  Windows 7 64-bit Chrome Version 30.0.1599.69m     Ping: 31ms Download: 6.88mbps   Upload: 1.07mbps So, I know that there is a race in Lord of the Rings of Peredhil  (half elf). Also, in the Hobbit (film trilogy, not book), there is a romance between a dwarf and an elf.  My question is, how do man/elf or dwarf/elf offspring work? Can they not be born? Are they born infertile because they are from parents of two different species? Are elves, dwarves, and men only different "races" of one single primordial species, and can thus reproduce any number of ways? To my knowledge, this isn't addressed in the books or films. In a tic-tac-toe implementation I guess that the challenging part is to determine the best move to be played by the machine.  What are the algorithms that can pursued? I'm looking into implementations from simple to complex. How would I go about tackling this part of the problem? $$L~=~ \frac{1}{2} \dot{q}  \sin^2{q} $$  Is it zero or not defined? Showing that $\int\limits_{-a}^a \frac{f(x)}{1+e^{x}} \mathrm dx = \int\limits_0^a f(x) \mathrm dx$, when $f$ is even Class method differences in Python: bound, unbound and static What is the difference between the following class methods?  Is it that one is static and the other is not?  class Test(object):   def method_one(self):     print "Called method_one"    def method_two():     print "Called method_two"  a_test = Test() a_test.method_one() a_test.method_two() SharePoint search not showing any results when searching partial name such as "frank" I have search service application configured.  Suppose my first name is "frankmartin" (no spaces)  When I search "frankmartin" then it displays search results in both "People" and "Site" search. But when I search "frank" it doesn't display any search result. Why is that?  EDIT  I am not using advanced search and have made this search results page using those search web parts which you can add in page to display results. Starting scheduled task by detecting connection of USB device I know it has been discussed that it is not possible to start an application from an usb drive upon connection due to limitations of autorun (or autoplay??) in Win 7. But it is possible to create a scheduled task having an event type trigger. Surely there must be an event occurring when the drive -- or any USB device, for that matter -- is connected.    Does anybody have the slightest idea which Event ID should I use? Or at least what type of event? Where can I find the event in event viewer? The representative point of a cluster or cluster center for the k-means algorithm is the component-wise mean of the points in its cluster. The mean is chosen because it helps to minimize the within cluster variances (which is to say that it is minimizing within cluster squared Euclidean distance, since its the same). Now, when I want to use a different distance metric, like L1 (Manhattan distance), I would be minimizing the within cluster absolute deviations (if I choose to). I was looking at what the centers calculation would be like, because the mean won't reduce the new objective function, and I found this on the Matlab documentation of their kmeans function for the distance parameter     cityblock - Sum of absolute differences, i.e., the L1 distance. Each centroid is the component-wise median of the points in that cluster.   Now, how did they come up with the component-wise median? How does a median minimize absolute deviations? Cardinality of a set that consists of all existing cardinalities Applications Not Reopening After Restart I am new to Force.com and trying to learn some concepts.  Currently I am using Single Email Message to send my emails, but I need to change that to mass email, but I don't quite understand how to do that.   I have also created a Visualforce email template, which I would like to use, but it doesn't seem to work.   It would be great if someone could help me out.  //email_disease_map contains pairs of email address and disease ID for (Id id : email_disease_map.keySet())   {     Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();     String[] defaultAddresses = new String[] {'id@test.com'};      List&lt;String&gt; toAddresses = new List &lt;String&gt; (email_disease_map.get(id));      if (!toAddresses.isEmpty())       {         //set addresses for email to be sent         mail.setToAddresses(defaultAddresses);         mail.setCcAddresses(toAddresses);         mail.setTemplateId(Notification);         //set up remaining email         mail.setReplyTo('test@mail.com');          mail.setSenderDisplayName('Ms Test');          Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });       }  } Contour method to show that $\int_0^\infty\frac{x-\sin x}{x^3} \, dx=\frac\pi4$ Show that $$\int_{0}^{\infty} \frac{x - \sin(x)}{x^3} \, dx = \frac{\pi}{4}$$   My attempt is as follows: Let $$f(z) = \frac{z - i e^{iz}}{z^3}$$ and consider the contour on $[\epsilon, R]$ followed by a semicircular arc in the counter clockwise direction, then on $[-R, -\epsilon]$, then the semicircular clockwise contour avoiding the origin. We have, then, that  $$0 = \int_{\Gamma} f(z) dz = \int_{[\epsilon, R]} f(t) dt + \int_{C_R}f(Re^{it})Rie^{it}dt + \int_{[-R, -\epsilon]}f(t)dt + \int_{C_{\epsilon}}f(\epsilon e^{-it})\epsilon i e^{-it} dt$$  Then the first and third integrals ( $I_1$ and $I_3$) combine so that  $$I_1 + I_3 = 2\int_{\epsilon}^R \frac{t - \sin{t}}{t^3}\,dt$$  Further,   $$|I_{C_R}| \leq \int_0^\pi \left|\frac{Re^{it} - ie^{-R\sin{t}}e^{iRcos{t}}}{R^2 e^{2it}} \right|dt \rightarrow 0 \text{ as } R\rightarrow \infty$$  (I've omitted the details, it isn't too bad to bound)  However, I'm having trouble computing the limit  $$\lim_{\epsilon \rightarrow 0}\int_{C_{\epsilon}} f(\epsilon e^{-it})\epsilon i e^{-it} dt$$  No matter which way I look at it, it seems like this limit does not exist. Perhaps I'm seeing something wrong or have I chosen a bad $f(z)$? In an older question from June 2011, , apparently revived by the system, a user is asking about the origin of the rotation of celestial bodies.  The  (with 17 votes) states the following:     When things collapse under their own gravity in space (i.e. clouds of gas and dust), any small amount of asymmetry in the collapse will be enough start it spinning.   And then it goes on saying:     Even if it spins by a tiny amount, as it collapses, angular momentum     conservation will mean it spins more and more quickly.   Is all this really correct?  I could try to ask in a comment to the answer. I actually did. But the author is no longer registered.  Hence I am asking it as a question.  But that is not the end of the story. As I was about to ask my question, I looked for other relevant questions, and there are some. I did not make an exaustive survey, but I did not find one that had satisfactory answers:    (december 2011) has just one accepted answer (0 votes) stating essentially that the solar system has angular momentum because it started from a cloud that had angular momentum. No comment.  (july 2011) is questionning about everything from galaxies to electrons. The answers are of a much higher quality, but while they seem to justify the possiblility of spin and angular momentum (and its conservation), there are not clear on how it appears, at least for celestial bodies.  (june 2013): That was my own very naive first question on this site. It is related but does not directly address spin.   One answer I found is that momentum appear from bodies in relative motion past each other. Nice, but not really an answer: where did they get their relative speed to begin with. Unfortunately the answer is: from the angular momentum of larger structures they belong to (well, it can be more comples). So this is just chicken and egg explanation. But how did it get started?  Note that my question is not a duplicate, since it is primarily whether the above statements are correct, which is not considered in these other questions.  Furthermore, these questions are fairly old, and given that none had received answers that seem to answer the question of the origine of existence of celestial angular momentum (not in a way I can understand anyway), it may be appropriate to attempt restarting the process, with the above discussion to motivate that an answer should explain the physical mechanism that started the existence of spin of celestial bodies. Creating surface from points in ArcGIS for Desktop? how to create surface from points in ArcGis? I have a points (centroids of the neighbourhood and number of people living in every neighbourhood) and i would like to create surface that would present density of population.