I am going to perform an action, $A$, on a system.  The state of the system after the action can be $a_1$, with probability $p_1$, or $a_2$, with probability $p_2$. If the state of the system is $a_1$ ($a_2$), the reliability of the system is $x_1$ ($x_2$), both of which are normally distributed. I want to know the reliability (total mean and variance) of the system after doing the action $A$.
Say I have two normal distributions A and B with means $\mu_A$ and $\mu_B$ and variances $\sigma_A$ and $\sigma_B$. I want to take a weighted mixture of these two distributions using weights $p$ and $q$ where $0\le p \le 1$ and $q = 1-p$. I know that the mean of this mixture would be $\mu_{AB} = (p\times\mu_A) + (q\times\mu_B)$.  What would the variance be?    A concrete example would be if I knew the parameters for the distribution of male and female height. If I had a room of people that was 60% male, I could produce the expected mean height for the whole room, but what about the variance?
My understanding is that GPUs are more efficient for running neural nets, but someone recently suggested to me that GPUs are only needed for the training phase. Once trained, it's actually more efficient to run them on CPUs.  Is this true? If I have flagged a post, show me a "flags" link in my profile How can I approach implementing the following in Drupal 7?  What I need to do is create a module which defines a new fieldable entity, called 'Company'. I have a list of, let's say, 20 fields that need to be filled out by each Company instance. These questions are predefined and some may contain custom validation.  At the moment, I'm at the point when I can add new fields to the Company entity. This works fine at the moment. My issue is that I need all these fields to be there as soon the module is installed, so adding them via the interface isn't an option.  I was wondering how can I approach this? I'd assume it comes down being able to do what can be done using the 'Manage Fields' UI programmatically. How to auto close LWC quick action from JavaScript? Let $X$ and $Y$ be independent $Exp(1)$-distributed random variables. Find the conditional distribution of $X$ given that $X + Y = c$ ($c$ is a positive constant).  this is my idea:  $$f_{X \mid X+Y}(x\mid c) = \frac{f_{X,X+Y}(x,c)}{f_{X+Y}(c) } $$  if this is the right definition then i might calculate the righthand side to obtain the distribution but Iam unsure What's "Another Way In"? There's a new achievement and I'm stumped as to how to get it:     Start a game without breaking the laboratory wall   I assume it has something to do with the new Gadgets but none of them sound like they'd help. How do I get this achievement? How do I set the default program? Using iOS 5 rich text editor How do I "parent" objects? I'm looking for a way to have two separate objects be connected, so that when I move the first object the second one will move also. The term parent is used, but how do I parent a object? Write this equation I want to write this equation in this way down but I have been unsuccessful. How can I improve this codes in order to get the equation below?  \[ DeltaC{t} = \left\{ \begin{array}{ll}  -1.40- 0.588w_{t-1} - 0.5351\DeltaC_{t-1}+ 0.169\DeltaBC_{t-1} &amp; \mbox{ if $w_{t-1}&lt;- 0.62$} \\ -1.40 - 0.588w_{t-1} - 0.5351\DeltaC_{t-1} + 0.169\DeltaBC_{t-1} &amp; \mbox{$w_{t-1}&gt;0.62$} \end{array} \right. \] How Special Relativity causes magnetism When editor does not respond to the request for withdrawal I submitted a manuscript to a journal, but due to some issue with that I asked the Editor-in-Chief and Associate Editor to withdraw the manuscript from further consideration. Despite several emails, they are not still responding me nor ended the process.  Now, what should I do? Can I submit the manuscript to another journal? Changing precision on a column in the attribute table without losing data? I have data in an Excel file that I want to join with a shapefile in my project. The Excel file contains values like volumes. The Excel file and the shapefile I want to join it with both contain the same property names.  The problem is, when I join the two, I get too many decimals in the attribute table. I get six, but I only want it to be one.  I tested to change the format of the cells to one decimal, and then I saved the file as *csv. But, somehow I seem to loose data in the process? It should be 42 rows that contains data in the column i am working with, but I end up with only like 10?  Another thing is that my property names contains the letters Å. Ä and Ö, perhaps this complicates things?  I read the question , but it doesn't mention the problem with the data loss.  My question was tagged with , but I didn't write what version I'm using. I use QGIS 2.2.0. Would it help to upgrade to the latest version? Why do "stripes" appear on raster? I am reprojecting a SRTM 3 arc-second raster file from WGS84 geographic coordinate system, to projected coordinate system which is using Azimuthal Equidistant projection:  gdalwarp -s_srs EPSG:4326 -t_srs "+proj=merc +lat_ts=40.81266 +lon_0=14.414252" -r near -of GTiff C:/vesuvius2_wgs84.tif C:/vesuvius2_aeqd.tif   I attached the initial raster file in here ().  The issue is that if I use the Nearest neighbor resampling method (-r near), some sort of "stripes" appear on terrain once I reproject the file to Azimuthal Equidistant projection. Here is the how the reprojected raster looks like:    And here is its 3d representation:    Interestingly similar "stripes" appear in both direction if I reproject the initial raster to UTM:  gdalwarp -s_srs EPSG:4326 -t_srs EPSG:32633 -r near -of GTiff C:/vesuvius2_wgs84.tif C:/vesuvius2_epsg32633.tif   The "stripes" go away when I use Bilinear or Cubic resampling methods (-r bilinear, -r cubic) instead of the Nearest Neighbor one.  Why do these "stripes" appear when Nearest Neighbor resampling method is used? Are common cryptographic hashes bijective when hashing a single block of the same size as the output? Student missing exam for “medical reasons” Run a command in a shell and keep running the command when you close the session I am using Putty to connect to a remote server. What I want to know is if there is any way to write my commands and allow them to keep running after I close the session with Putty. The reason for this is that I do not want to keep the computer ON all the time. Is there any way to do this?.  Update with the solution  For my question as it is presented the best solution is use one of the commands provided such as nohup, because you do not have to install any additional software. But if you are in the same problem use screen, install it and use it. It is amazing.  I have selected the answer of Norman Ramsey as favourite because propose several solutions using commands and screen. But please check the other answers specially the one of PEZ, then you get an insight of what screen is able todo. In QGIS, I have been learning a few expressions to style my trail maps but still know little and am stumped on what to use to filter my symbol data. I am showing Parking locations on my map. I use a marker symbol as a background element, so I can do callouts. I created a data field and added values to display beside this symbol a number that references a list of parking addresses in the book's text. All good except if the field has no number to display, it is NULL, it does not display my marker symbol. I need to filter this, so it does show even when there is no value in the field. The problem:  Assume $f: \mathbb{R} \rightarrow \mathbb{R}$ satisfies $|f(t) - f(x)| \leq |t - x|^2$ for all $t, x$. Prove $f$ is constant.  I believe I have some intuition about why this is the case; i.e. if $t$ and $x$ are very close, ($|t - x| = \epsilon$), then $\sqrt{\epsilon}$ will converge to 0, so $|f(t) - f(x)|$ will also converge to zero if you keep taking $t$ and $x$ closer and closer to each other. However, how do I formalize this argument? Thanks. Is there any value in full 'beginner's kit bundles'?