Non-Whole Median Numbers in Real Data According to this CDC , the median number of reported sexual partners for females aged 15-44 is 3.2, and for males 5.1. Tables on pages 19 and 20 report these statistics for a variety of subgroups, and all 40 of the reported subgroups have medians like this.  I am aware of the classic case (usually occurring only in grade-school textbooks) where you have an even number of observations, and the median is defined as the arithmetic mean of the two "middle" observations. However, that does not explain how nearly all of these subgroups could end up with non-whole-numbers as medians. Can anyone explain what is going on?
How can the median number of sexual partners be 6.1 and 3.6? Median number of female sexual partners in lifetime, for men 25-44 years of age, 2006-2008: 6.1  Wouldn't it only be able to be x.5 or x.0?
How to validate an email address in PHP changed primary email in google account. how to log in? I added gmail to my google account. Now when i try to log into stack exchange using google it prompts me to create a new account instead of using the existing.   The google account is still the same but google changed the primary email adress.  How can i log in again? What makes a good tag separator? I'm building an application to allow technical people to enter configuration changes.  I'd like to add tags to each change.  Right now I'm using spaces, commas and semicolons.  It appears SO uses spaces and requires hyphens to make multiple words.  I read something that leads me to believe that WordPress uses commas and that a space isn't a separator.  Is there any best practice out there?  Has anyone had any good or bad experiences? Assuming one wants to travel through China, what are the rules for visa-free access? To be more specific:   How does the 24-hour visa free transit work? How does the 72-hour version work? What does a person ineligible for either of these programs have to do to transit China? Do the programs apply to flights only or do they also work for transit on land? Would a visitor save much hassle by using visa free transit instead of just getting a visa?      NB: this is intended as a canonical question on transiting China Ubuntu: Resize the root LVM(2?) partition My Young's slits experiment doesn’t work. I mean I tried to see wave effect of light but I didn’t see any thing expect particles! I’ve sent you a pic of my laser and a short video of the experiment. Is there any problem you think? Electric fields and potential E = electric field V = electrostatic potential r = distance ' = derivative   E = - (V)'   therefore if E increases V decreases Also if r increases E decreases                                                      because  E=kq/r^2 From 1 &amp; 2, if r increases then V increases But V=kq/r, so if r increases V decreases   Why does the 3rd point contradict with the 4th ? My Android phone is completely reset, whats the best way to recover the deleted data? If tenured staff are virtually unsackable, why is the drive to find funding so strong? I just came across this idiom in some open-source Python, and I choked on my drink.  Rather than:  if isUp:     return "Up" else:     return "Down"   or even:  return "Up" if isUp else "Down"   the code read:  return isUp and "Up" or "Down"   I can see this is the same result, but is this a typical idiom in Python? If so, is it some performance hack that runs fast? Or is it just a once-off that needs a code review? Ubuntu desktop suddenly points to home folder How to specify an arbitrary (possibly non-integer) font size in LaTeX I may be wrong, but it seems to me that I cannot obtain non-integer (or non-preloaded) font sizes (say, 9.876pt) using \fontsize.  If this is true, how do I do this in LaTeX?  Do I have to resort to the \font ... at ... primitive?  (The reason I need this is that I'd like to implement a more LaTeXy way to do the \diminuendo macro from .) How does Azkaban's management work? I was under the impression that only Dementors are guarding the prison of Azkaban and are only there to keep the inmates on their cells, though after reading again the following passage it put me into thoughts:     'One night, when (the Dementors) opened my door to bring food, I   slipped past them as a dog. It's so much harder for them to sense   animal emotions that they were confused ... I was thin enough to slip   through the bars. I swam as a dog back to the mainland. I journeyed   north and slipped into the Hogwarts grounds as a dog. I've been living   in the Forest ever since.'       Prisoner of Azkaban; chapter 'The Servant of Lord Voldemort'   So Sirius says that he escaped from his cell when the Dementors brought him food.... I say what??? Dementors dont obey anyone, not even the commands of the Ministry of Magic.  So the actual question is, How is the Azkaban prison managed? e.g. who cooks the food? the inmates have blankets, who is washing these blankets etc etc I'm using a /tellraw command to display some kind of menu to the player. How can I react to the clickEvent without posting something in the chat? When I try using the scoreboard, I get an output in my chat like this Set score of &lt;objective&gt; for player &lt;playername&gt; to &lt;value&gt;. The same thing happens, when trying /setblock, /entitydata or /trigger Is there any way, I can execute a command which commandblocks can detect without writing a success/fail message in the chat?  the only commands without a "real" response message I found were /say, /tell and /tellraw. But all of these are impossible to detect(also, they write something else in the chat). Calculating Mean for Multiple Rows in ArcGIS for Desktop? I am trying to calculate a mean across a multiple number of attribute rows and have this value added to a new field that I have entered in the attribute table. I have an attribute table which has a number of different ecoregion types associated with them.  For example:  If I select "Arid Canyonlands" there are 3 attribute rows that are selected, each with their own "mean". I am trying to add a new field to the attribute table which will take the "mean" of these three and populate that value in the new field created. I could manually do it through an editing session and using a calculator but just wanted to know if there is an easier way to actually do it through field calculator? What command should I use to rotate wood to S,N,W,E,D and U?  I read the entire world edit guide and tried some things but all the results are not satisfactory. The bevel depth (the radius of the tube) is set to 9cm but it actually isn't when compared to the background grid. This is is confirmed by importing it into sketchup and scaling it to the proper units it turns out the radius is only around 2.286cm. This problem only shows up on certain projects. What's wrong and how do I fix it?  (sorry that I can't upload the file, it's a long story) Plot $|z - i| + |z + i| = 16$ on the complex plane Plot $|z - i| + |z + i| = 16$ on the complex plane   Conceptually I can see what is going on. I am going to be drawing the set of points who's combine distance between $i$ and $-i = 16$, which will form an ellipse. I was having trouble getting the equation of the ellipse algebraically.  I get to the point:  $x^2 + (y - 1) ^2 + 2\sqrt{x^2 + (y - 1)^2}\sqrt{x^2 + (y + 1)^2} + x^2 + (y+ 1)^2 = 256$  $2x^2 + 2y^2 + 2\sqrt{x^2 + (y - 1)^2}\sqrt{x^2 + (y + 1)^2} = 254$  It seems like I'm and doing something the hard way. How do you deserialize json properties that are reserved words in apex? Using ArcPy to Switch Layout Templates? Using ArcMap 10.1, since there is not a way to control portrait or landscape of the layout view through python, is there a way to switch layout templates without opening a new mxd through python?   Since there is a change layout template button it would be nice to have a python function to do the same.