My question is replacing Gaussian distribution with chi square distribution in following codes. So it should show a chi-square distribution instead of a normal distribution. Thanks in advance.   \documentclass{article} \usepackage{pgfplots} \begin{document}  \pgfmathdeclarefunction{gauss}{2}{% \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% }  \begin{tikzpicture} \begin{axis}[  no markers, domain=0:8, samples=100,  axis y line = none,  axis x line* = bottom,  every axis x label/.style={at=(current axis.right of origin),anchor=west},  height=5cm, width=12cm,  xtick={2.5,5.5}, xticklabels = {$$ , $$}, ytick=\empty,  enlargelimits=false, clip=false, axis on top,  grid = major  ]  \addplot [fill=cyan!20, draw=none, domain=0:2.5] {gauss(4,1)} \closedcycle; \addplot [fill=cyan!20, draw=none, domain=5.5:8] {gauss(4,1)} \closedcycle; \addplot [very thick,cyan!50!black] {gauss(4,1)};  \draw [yshift=-0.3cm, latex-latex](axis cs:4,0) -- node [fill=white] {$0.35$}  (axis cs:4,0);  \draw [yshift=+2cm, latex-latex](axis cs:2.5,0) -- node [fill=white] {$H_0$  Do not Reject} (axis cs:5.5,0);  \draw [yshift=+2cm, latex-latex](axis cs:0,0) -- node [fill=white] {$H_0$  Reject} (axis cs:2.5,0);  \draw [yshift=+2cm, latex-latex](axis cs:5.5,0) -- node [fill=white] {$H_0$  Reject} (axis cs:8,0); \end{axis}  \end{tikzpicture} \end{document}
I have tried without success to plot the curve of the chi-squared distribution. Is there a generous soul who can come to my rescue.
Im trying to run the following code as a powershell script,but I cant get it to work. 1st,the following works with one -Include item but I cant seem to get it to work with multiple ones. 2nd, the -Exclude perimeter doesn't seem to work. I still get files from the C:\Windows and C:\Program Files directorys .  $Include = "*.zip","*.rar","*.tar","*.7zip" $exclude = "C:\Windows","C:\Program Files" Get-ChildItem "C:\" -Include $Include -Exclude $Exclude -Recurse -Force -ErrorAction silentlycontinue | Select-Object -ExpandProperty FullName   Note: The purpose of this script is to find all compressed files on the system. I know this is probably really simple but I just cant seem to get it to work. How can I display a short chapter name in the header and a long chapter name in the ToC? I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the   \chapter[short title]{long title}   command. But then, "short title" appears in the table of contents instead of the original/true/long one.  How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?  For reference, here is the code I use:  \documentclass[11pt,a4paper]{book} \begin{document} \tableofcontents  \chapter[Short title]{Very vey very very very very very very long title     i can't display in the header} Lorem ipsum dolor sit amet, consectetur adipiscing elit. \end{document} This prints 83  System.out.println(0123)   However this prints 123  System.out.println(123)   Why does it work that way? What is the difference between g++ and gcc? What is the difference between g++ and gcc?  Which one of them should be used for general c++ development? $f(x+1)-f(x)$ converges $\Rightarrow\frac{f(x)}x$ converges Let $f:\mathbb{R}\to\mathbb{R}$ continuous such that $\lim_{x\to\infty}f(x+1)-f(x)=l$.  How can I prove that $\dfrac{f(x)}x$ converges for $x\to+\infty$ ?  I am just trying to prove the convergence, not that it converges to $l$ (that part be deduced immediately by Stolz-Cesaro and the sequential characterization of limits) US Election results 2016: What went wrong with prediction models? First it was , now the US election. Many model predictions were off by a wide margin, and are there lessons to be learned here? As late as 4 pm PST yesterday, the betting markets were still favoring Hillary 4 to 1.  I take it that the betting markets, with real money on the line, should act as an ensemble of all the available prediction models out there. So it's not far-fetched to say these models didn't do a very good job.  I saw one explanation was voters were unwilling to identify themselves as Trump supporters. How could a model incorporate effects like that?  One macro explanation I read is the rise of . The question then is how could a statistical model capture a macro trend like that?  Are these prediction models out there putting too much weight on data from polls and sentiment, not enough from where the country is standing in a 100 year view? I am quoting a friend's comments. Automatic image format detection in PHP I am looking for a way to take a user uploaded image that is currently put in a temporary location ex: /tmp/jkhjkh78 and create a php image from it, autodetecting the format.  Is there a more clever way to do this than a bunch of try/catching with imagefromjpeg, imagefrompng, etc? Fermi's golden rule and infinite probablity? I am slightly confused about the application of . Which during standard derivations indicates a probability of transitioning from the state $|i \rangle$ to the state $|f\rangle$ of: $$P=\frac{2\pi t}{\hbar^2} | \langle f | \hat V | i \rangle|^2 \delta(E_f-E_i-\hbar \omega)$$ This holds for large values of $t$ but for arbitrarily large values of $t$: $$P&gt;1$$ Which (to me anyway) makes no physical sense since there can't be a probability greater then 1 of been in the final state. If my interpretation is right then how is this problem resolved/allowable? and if it is wrong what part of what I have said is wrong? Electric Potential produced by Hollow Sphere Let there be a hollow sphere (Throughout the question we will ignore the thickness of the sphere) which is positively uniformly charged,q of radius,  R. Suppose there to be a test positive charge, q' at point P which is r distance away from the hollow sphere(r>R, P is outside of hollow sphere).  Now I have an doubt on evaluating Electric Potential,V at point P.  Both source charge,q and test charge,q' are +ve, so source charge will repel the test charge which will make the charge, q' to go to infinity.I have to apply external force, F' to displace the charge, q' from infinity to point P against the equal but repulsive force, F.In short, F' is  displacing the q' from infinity to P.  So External Force, F' will do +ve work and Repulsive Force, F will do -ve work. This way the Electric Field,E produced by hollow sphere is Opposite to Displacement of test charge(i.e.,θ=180).  Now we know that E=k(q/(r^2))  [Please Notice that infinity is the lower limit of integration]  Also V=-∫r∞(E dr cosθ)=-∫r∞(E dr cos 180)=∫r∞(E dr)  At last I ended up to V=- k(q/r). I know that V=k(q/r).  I just want to know why I am having this shitty negative sign in my equation. How can I mirror one of the screens in a 3-monitor setup? Does a percentage require a singular or plural verb, for example, do we say ten percent "go" or "goes"? Is it possible to make the default scene fill two monitors at startup? I know how to set up the default scene by pressing Ctrl+U, but whenever I startup Blender it always fills only one of my screens, even if I set it to fill both before setting the default scene. I end up having to resize it every time I start it up. Is there a way to set this to happen by default? How many physical degrees of freedom does the $\mathrm{SU(N)}$ Yang-Mills theory have? The $\mathrm{U(1)}$ QED case has two physical degrees of freedom, which is easy to understand because the free electromagnetic field must be transverse to the direction of propagation. But what are the physical degrees of freedom the $\mathrm{SU(N)}$ Yang-Mills theory?   I believe that the $\mathrm{SU(N)}$ Y.M. theory has four degrees of freedom, and it is easy to see that by gauge fixing (such as the Lorentz condition or the Coulomb condition) that we can always remove one redundant degree of freedom. But then we still haven't completely fixed the redundant degrees of freedom. Thus my question is:     How many physical degrees and how many are redundant degrees of freedom does the Y.M. theory have?    I would be interested to understand how we can determine this mathematically, and also to understand what the physical intuition behind this is? Why is having a 2 stage flip-flop desirable? Are there advantages of having a master-slave compared to a one stage JK flip flop? I have built a forecasting model for a company. Since it is dedicated to practical usage, I prefer to use the relative error parameter (like MAPE, SMAPE, &amp; MASE) as a measurement for my model performance and display it on the dashboard (the percentage error is easier to understand by user). I found an interesting reference about the criteria of a good forecast result based on MAPE from Lewis (1982):  ...but in my case, I can't use MAPE for some dataset because there is some zero actual demand so it can't be used as denominator in MAPE. So, I use SMAPE &amp; MASE instead, but I can't find any good references about good forecast result criteria based on SMAPE &amp; MASE, nothing like above. So, I'd really appreciate any help/suggestion about it :), Thank You! Reference: Lewis, C. D., 1982. Industrial and Business Forecasting Methods. London: Butterworths. How to make the simple three square box and connect them? I want to make the three square box and simply connect them. Is $\bar X$ a minimum variance unbiased estimator of $\theta$ in an exponential distribution? I proceeded by finding $\operatorname E(\bar X).$ I considered $\bar X$ as a constant and simply got the term itself. This should suggest that $\bar X$ is not an unbiased estimator of $\theta$. That's obvious too cuz it's a constant(from what I assumed). However, I'm also aware that $\mu = \theta$ so that's probably not right.  I have to demonstrate first that $\bar X$ is an unbiased estimator of $\mu$. How to enable virtualization without using bios? I am using android studio.I want to run my app on simulator but it is asking me to install intel haxm,.When i install intel haxm it says that vitualization is not enabled/.To enable virtualization i need to goto bios but issue my bios is password protected &amp; i don't know password.So please tell me is there any other way by which i can enable the virtualization without going into bios? Reference - What does this error mean in PHP? If $f^2$ and $f^3$ are smooth, does it follow that $f$ is smooth? Let $f: \mathbb{R} \to \mathbb{R}$ be given. Assume that the square and cube of $f$ are smooth. Is $f$ smooth? That is if $f \cdot f \in C^{\infty}$ and $f \cdot f \cdot f \in C^{\infty}$, does it follow that: $f \in C^{\infty}$   I got this from another question on SE.   So, $f(x)^2$ is infinitely differentiable, and so is: $f(x)^3$   Also, realize:  $$f(x) = \frac{f(x)^3}{f(x)^2}$$  But what can I do?