I've looked at a few of these types of posts but can't seem to find a concrete answer. I am investigating the relationship between 'risk aversion' and 'human capital' for a project.  Risk aversion: Acceptable risk is used as a measurement and it takes a value between 10% and 100%, in increments of 10%. (I.E. 10 possible values where 10% = risk taker and 100% = risk averse). [DISCRETE]  Human capital: Represents the present value of all future earnings and depends on a number of factors including age, salary and occupation. [CONTINUOUS]  I performed a Pearson correlation between these two variables without really looking into the specifics too much. It finds a small negative correlation which is as expected.  However, I have since then read that the Pearson correlation is only designed to measure the correlation between two continuous variables and so I don't think I can use this result. Am I correct in saying this and if so how can I test this relationship (including significance).
I'd like to estimate the correlation between:  An ordinal variable: subjects are asked to rate their preference for 6 types of fruit on a 1-5 scale (ranging from very disgusting to very tasty) On average subjects use only 3 points of the scale.  A continuous variable: the same subjects are asked to quickly identify these fruits, which results in an mean accuracy for the 6 fruits.   Is Spearman rho the best method to analyze these data and/or are there other good methods I could consider?
How to fix slow wireless on machines with Intel wireless cards? I have looked through all the previous questions but turning power management off for the Wi-Fi card didn't work. This problem seems to be with the Lenovo Thinkpads. I switched to Ubuntu 11.10 from Windows 7 3 days ago so I'm new to the operating system. How long can eggs be unrefrigerated before becoming unsafe to eat? How do I resolve these unmet dependencies? how to stop firing oncomplete if save action has errors My requirement is to stop oncomplete call if save action has errors. I know I am doing some silly mistake.   Here I am unable to stop calling oncomplete function.  Requirement is, from VFP save method, data will get saved and then perform callout from oncomplete function. If there are any errors during save then stop making callouts.  Visualforce  &lt;apex:page id="hasErrorTestPage" controller="ErrorMessageFinder"  showHeader="false"&gt;     &lt;apex:pageMessages id="msgId"/&gt;     &lt;script&gt;         function performCallOutMethod()         {             var msg = document.getElementById('{!$Component.MSEForm.errorMsgInd}').value;             alert(msg);              if(msg == 'false' || typeof(msg) == 'undefined')             {                 alert('entering callout')                 performCallOut();                 return true;             }             else             {                 return false;             }         }     &lt;/script&gt;     &lt;apex:form id="MSEForm"&gt;         &lt;apex:actionFunction name="performCallOut" action="{!submit}" reRender="panelId,msgId"/&gt;          &lt;apex:outputPanel id="panelId"&gt;             &lt;apex:outputText value="{!hasError}" id="errorMsgInd"/&gt;         &lt;/apex:outputPanel&gt;         &lt;apex:inputText id="customerNm" value="{!CustomerName}"/&gt;&lt;br/&gt;         &lt;apex:commandButton value="Save" action="{!save}"                       oncomplete="return performCallOutMethod();" reRender="panelId,msgId"/&gt;     &lt;/apex:form&gt; &lt;/apex:page&gt;   Controller  public class ErrorMessageFinder {     public String CustomerName {get;set;}      public Boolean hasError {          get {              return ApexPages.hasMessages();          }            }      public PageReference save()     {            if(String.isBlank(CustomerName))         {             ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.Error, 'Name cannot be null');             ApexPages.addMessage(msg);             return null;         }         return null;      }       public PageReference submit()     {         try         {   //navigate to view page             PageReference pg = new PageReference('/'+ '0019000001UwnVS');             pg.setRedirect(true);             return pg;         }         catch (Exception ex)         {             System.debug('Error in submit ' + ex);             ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.Error, ex.getMessage());             ApexPages.addMessage(msg);              return null;         }     } }   Based on this code, if I hit save button without entering CustomerName then it is not showing error after save. It is showing error during oncomplete call and then navigating to view page, which I do not want.  Any help is appreciated. I have put a compiled code so that anyone can try with this code. How to say that the phone is held between shoulder and ear? What are common phrases an English native speaker would use for the pose of speaking on the phone where you use your shoulder to keep the receiver against your ear (and mouth), so your hands are free?  I have some ideas, but they all sound wooden, and I don't think I've ever heard anyone describe this pose in words. It's also pretty much impossible to google for a pose or look it up on leo.org or other dictionaries.  OK, since people keep asking for what phrasings I found, I'll provide two, though I was hoping I could avoid influencing people who answer here by not providing them: "balance on one's shoulder", "held/nestled/sandwiched between shoulder and ear". Edelstein Theorem Let $(M,d)$ be a compact metric space and $d(f(x),f(y)) &lt; d(x,y) $ for all $ x\neq y$ Prove that if $f$ is a continuous fuction then there is a unique $x_0 \in M $ such that $f(x_0)=x_0$ I know that since $g(x) = d((f(x),f(y))$ is continuous then a continuous function in a compact space reaches its maximum and minimum. Then by proving that the minimum of $g(x)$ = 0 can I conclude that $x_0$ is a fixed point? Why won't SparseArray let me store values with the head List? For $n \geq 2$, prove that $(1- \frac{1}{4})(1- \frac{1}{9})(1- \frac{1}{16})...(1- \frac{1}{n^2}) = \frac{n+1}{2n}$ For $n \geq 2$ prove that $(1- \frac{1}{4})(1- \frac{1}{9})(1- \frac{1}{16})...(1- \frac{1}{n^2}) = \frac{n+1}{2n}$  We need to use induction.   The Principle of Mathematical Induction, Theorem 4.2.1, states that $n_0 \in \mathbb{Z}$. For each integer $n \geq n_o$, let $P(n)$ be a statement about $n$. Suppose that the following two statements are true:   $P(n_o)$ $( \forall n \geq n_o)[P(n) \rightarrow P(n+1)]$   Then, for all integers $n \geq n_o$, that statement $P(n)$ is true.  Suppose,  $(1- \frac{1}{4})(1- \frac{1}{9})(1- \frac{1}{16})...(1- \frac{1}{n^2}) = \frac{n+1}{2n}$, the equation, is true for some natural number $k$.  $\frac{1}{2^2})*...*(1- \frac{1}{k^2}) = \frac{k+1}{2k}$  The induction hypothesis $P(k) \rightarrow P(k+1)$ must hold for any natural number $k, P(k),$ from the basis and inductive step.  $(\frac{1}{2^2})*...*(1- \frac{1}{k^2})*(1- \frac{1}{(k+1)^2}) = \frac{k+1}{2k}(1- \frac{1}{(k+1)^2})$  $\leftrightarrow$ $\frac{k+1}{2k}(\frac{(k+1)^2}{(k+1)^2}- \frac{1}{(k+1)^2})$  $\leftrightarrow$ $(\frac{(k+1)}{2k})( \frac{(k+1)^2-1}{(k+1)^2})$  $\leftrightarrow$ $( \frac{(k^2+2k+1-1}{(2k)(k+1)})$  $\leftrightarrow$ $( \frac{(k^2+2k}{(2k)(k+1)})$  $\leftrightarrow$ $( \frac{k+2}{(2)(k+1)})$  We need to demonstrate that   $(\frac{1}{2^2})*...*(1- \frac{1}{n^2}) = \frac{n+1}{2n}$  holds true for $n \geq 2$  The question is do I just substitute a number that is greater than two after I did the induction? Abelian group (Commutative group) Prove that if in a group $(ab)^2= a^2 b^2$ then the group is commutative.  I am having a hard time doing this. Here is what I have so far: Proof:  $a^2 b^2= a^1 a^1 b^1 b^1$ =$aa^{-1}bb$ =ebb Hence,$aa^{-1}=e$  I am stuck, I do not know if this is the right process in proving this Unable to run any GRASS 7 algorithms in QGIS 2.18.10 on Windows 7(64) Indicating a name change after publication My wife has publications under both her maiden name and her married name. How should she indicate that this is the case on her CV, if she wants to mention publications from both time periods? R stem and leaf values I work on different types of monitors (CRT, LCD) and all PCs have the same screen refresh rate as 60 Hertz. Recently I've read an article which claims that low refresh rates cause headaches. The writer states that 60 Hertz is a low refresh rate and should be increased to the maximum value that the monitor supports. If I increase this value to the maximum as the monitor can display (for example 75 Hertz), does it damage the monitor in the long term? Answers about the pros and cons of low &amp; high refresh rates would be highly appreciated. Does a car use friction to move? When a car's engine injects fuel into the cylinder chambers, the reaction creates a force that generates rotational momentum to the shaft and over the transmission, it translates that power to the wheels, right?  But, something's bothering me, how does the car actually move, is it dependent on the force of friction? Wheels have a contact with the road in one exact point and when the drive gets to rotate them, a force is exerted on the road in the direction of movement and there is friction that is counteracting it.  Is the key to get a car properly moving to have the drive force equal or less than the force of friction to keep that point locked to the ground and use the rolling of the wheel for translational displacement ie. moving forward? If it's bigger than the force of friction, that would cause the wheels to spin in place?  Am I completely off or am I getting something right? If there's a knowledgeable person on this topic, I'd greatly appreciate some insight, perhaps even a bigger response with some basic vehicle physics. Bash One Liner: copy template_*.txt to foo_*.txt? Say I have three files (template_*.txt):   template_x.txt template_y.txt template_z.txt   I want to copy them to three new files (foo_*.txt).    foo_x.txt  foo_y.txt  foo_z.txt   Is there some simple way to do that with one command, e.g.   cp --enableAwesomeness template_*.txt foo_*.txt I am an international student in the US (important as my stay in US is tied to my student visa, issued to attend my current university).  I joined as a grad student in the MS CS program in one of the okayish public universities (ranked ~50 on QS/US news). I joined in Fall '18 and am still in my first semester. I took all the so-called "difficult" courses, but I find them very trivial (considering my undergrad was from a very good university). I am very disappointed with the curriculum and feel the coursework is not at all rigorous for a grad-school.  I might sound super arrogant, but I feel out-of-place when I talk to other students and hear them cringe about how hard the courses are, or how they don't have enough time to finish assignments within the deadlines as I find all of the coursework very trivial and feel that the assignments are a joke.   Fortunately, I am working with one of the best profs the university has to offer on a very impactful project and the research is going great. But that's the only plus point I see from sticking around.  My aim from grad school is to get research experience and join one of the Big 4s or upcoming CS unicorn startups. I cannot see myself joining one of the Big-Ns after graduating since the students from this school rarely bag a Google/Fb/unicorn startup job.  Since December is the Fall'19 admissions deadline, I am thinking about reapplying to those top 10 CS schools which I couldn't get into last year (probably because of my poor undergrad GPA).   On the other hand, since every CS company just asks leetcode-style questions in interviews, I can just be super good at it and try to nail whatever interview I get without wasting another year and then doing the same.  I'm not really interested in any kind of credit transfer either since I would like to start fresh in a more rigorous curriculum.  I'm not sure if switching schools would be a wise decision and could really use some advice from the community here.  PS :  Probably related -   Posting with a dummy account for anonymity. "Failed to download repository information" error Let $X$ de a vector space and $A\subset X$. If we define $A+B :=\{a+b|a\in A, b\in B\}$ I am trying to show that    $$ \begin{equation} 2A \subsetneq A+A, \end{equation} $$  i.e., it might happen that $2A \neq A+A$. I was able to show that $2A \subset A+A$, but I am not able to come up with a counterexample to show that the converse is not necessarily true. If I assume $A+A\subset 2A$ and let $x\in(A+A)$, then by its definition we have $x=a_1 + a_2$ for some $a_1,a_2\in A$ I guess I could naively say that $a_1+a_2 = 2(a'_1+a'_2)$ where $a_i=a_i/2$ for $i=1,2$ and I guess $(a'_1+a'_2)$ might not be an element of $A$ in some concrete case but I am not able to come up with anything and I've spent more time than I would like to admit. Any suggestions?  Thank you. Eclipse error: "The import XXX cannot be resolved" I'm using Ubuntu 13.04 and I have ASUS X550V laptop. This is my rfkill list:  0: asus-wlan: Wireless LAN     Soft blocked: no     Hard blocked: no 1: asus-bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no 2: phy0: Wireless LAN     Soft blocked: no     Hard blocked: yes 3: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   Before you start going: Hey, just turn on your hardware switch, dummy... my hardware switch is Fn + F2 and it works perfectly fine on my Windows boot. But, on my Ubuntu boot it does nothing... All the other Fn + F_ combos work (turn off the touchpad, screen turn off, screen brightness, sound) and they give some kind of visual indicator when I press it.  My lshw log:  *-network DISABLED                 description: Wireless interface                 product: AR9485 Wireless Network Adapter                 vendor: Atheros Communications Inc.                 physical id: 0                 bus info: pci@0000:03:00.0                 logical name: wlan0                 version: 01                 serial: 24:0a:64:28:b4:25                 width: 64 bits                 clock: 33MHz                 capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless                 configuration: broadcast=yes driver=ath9k driverversion=3.8.0-19-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn                 resources: irq:17 memory:f7900000-f797ffff memory:f7980000-f798ffff