I run an OLS, after check residuals, they are normally distributed, mean is zero with some randomness. But after the autocorrelation plot shows significant correlations to 15+ lags. What should I do next to avoid this autocorrelation?
In the Breusch-Godfrey test we use a model  $$ e_t = \varepsilon_t + \beta_1 \varepsilon_{t-1} + \dots+ \beta_p \varepsilon_{t-p}. $$  If we reject the null hypotesis of no serial auotocorrelation of the error, it means that the residuals follow an auto-regressive model of order ($p$).  If I want to avoid this problem, I must add a certain number of lags of the response variable $y$ as regressors in the original model. However, in some cases this method is not useful.   Are there other options to consider?
Failed to resolve version for org.apache.maven.archetypes Evaluating a PDF to find an unkown constant Evaluate the PDF to find K  $1 = \int_0^{\infty} \frac{k}{(1+x)^4}$  using u substitution I got:  $u=1+x$ and $du= dx$  $\int_0^{\infty} \frac{k}{u^4} \to \frac{k}{\frac{-1}{3} u^3}$   Since $u^4 du = \frac{u^{-4+1}}{-4+1}=$ $\frac{u^{-3}}{-3}$  which evaluating gives:  $1=\frac{k}{\frac{-1}{3(1+x)^3}} \vert_0^{\infty} \to \frac{-3k}{(1+x)^3} \vert_0^{\infty} = 0 -3k$   and $k= \frac{-1}{3}$  somehow though they came up with $\frac{-k}{3} \frac{1}{(1+x)^3}$ after integrating $\int_0^{\infty} \frac{k}{(1+x)^3}$   Was my approach correct to use substitution? Where does my work go wrong? PHP Session data not being saved I have one of those "I swear I didn't touch the server" situations. I honestly didn't touch any of the php scripts. The problem I am having is that php data is not being saved across different pages or page refreshes. I know a new session is being created correctly because I can set a session variable (e.g. $_SESSION['foo'] = "foo" and print it back out on the same page just fine. But when I try to use that same variable on another page it is not set! Is there any php functions or information I can use on my hosts server to see what is going on?  Here is an example script that does not work on my hosts' server as of right now:  &lt;?php session_start(); if(isset($_SESSION['views']))     $_SESSION['views'] = $_SESSION['views']+ 1; else     $_SESSION['views'] = 1;  echo "views = ". $_SESSION['views']; echo '&lt;p&gt;&lt;a href="page1.php"&gt;Refresh&lt;/a&gt;&lt;/p&gt;'; ?&gt;   The 'views' variable never gets incremented after doing a page refresh. I'm thinking this is a  problem on their side, but I wanted to make sure I'm not a complete idiot first.  Here is the phpinfo() for my hosts' server (PHP Version 4.4.7): Should we MAC-then-encrypt or encrypt-then-MAC? Most of the time, when some data must be encrypted, it must also be protected with a , because encryption protects only against passive attackers. There are some nifty encryption modes which include a MAC (, ...) but let's assume that we are doing old-style crypto, so we have a standalone encryption method (e.g. AES with CBC chaining and PKCS#5 padding) and a standalone MAC (e.g.  with SHA-256). How should we assemble the encryption and the MAC?   MAC-then-Encrypt: Compute the MAC on the cleartext, append it to the data, and then encrypt the whole? (That's what  does) Encrypt-and-MAC: Compute the MAC on the cleartext, encrypt the cleartext, and then append the MAC at the end of the ciphertext? (That's what SSH does) Encrypt-then-MAC: Encrypt the cleartext, then compute the MAC on the ciphertext, and append it to the ciphertext? (In that case, we do not forget to include the initialization vector (IV) and the encryption method identifier into the MACed data.)   The first two options are often called "MAC-then-encrypt" while the third is "encrypt-then-MAC". What are the arguments for or against either? Who is bound to the Prime Directive? In the galaxy there are a fair number of pre-warp societies. A Federation ship is not to contact them. But what about other, non-Federation species?   If for example a Ferengi ship passes by a pre-warp planet, would they be allowed to contact it? What would a Federation ship observing this contact have to do? Are they obliged to intervene? Are they allowed to? Or were they merely allowed to "strongly discourage" the attempt of the Ferengi?  If it is legal to use force to stop the Ferengi, than in essence the Ferengi were bound to the Prime Directive too. And if so: does this go for all Federation territory? Is this confined to the Federation territory? If Janeway observes such an incident, what are her rights to intervene? Or does she have the duty to do so? Create veracrypt traveler disk in Ubuntu According to , it is possible to create a portable "Traveler Disk" in the application:      Tools -> Traveler Disk Setup      You can use this facility to prepare a   special traveler disk and launch VeraCrypt from there. Note that   VeraCrypt ‘traveler disk’ is not a VeraCrypt volume but an unencrypted   volume. A ‘traveler disk’ contains VeraCrypt executable files and   optionally the ‘autorun.inf’ script (see the section AutoRun   Configuration below). After you select Tools -> Traveler Disk Setup,   the Traveler Disk Setup dialog box should appear. Some of the   parameters that can be set within the dialog deserve further   explanation:   My problem is I can't seem to find Tools → Traveler Disk Setup.    Am I missing something? I want to be able to share files on this disk with people running MS Windows. A list of inconveniences between quantum mechanics and (general) relativity? Duplicate application icons in Ubuntu dock upon launch I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.   When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".      But when I launch the program, another icon pops up at the bottom, with the name "Nightly". How  can I delete a node after, for example, 2 weeks it has been created? I just asked my first question on stackoverflow and I'm really impressed that my question seems to be answered sufficiently already! See:    The issue I have is that the last two answers combined would provide the most complete answer. What's the proper way to go about combining them, marking the question answered, and giving credit where credit is due?  Thanks big time guys for saving us all from experts exchange hell!  Edit: Wow, 5 responses in 5 minutes. I think what makes the most sense is that I create my own answer out of the two. I don't think the second part of my question was answered though.  What is the proper way to give credit to the 2 answers that I'm combining? Is an upvote for each sufficient? What is "root" and how can I become it? When I ran a command, I got the following error:     You need to be root to perform this command.   What is root and how can I become it? Whenever I try to get somebody to follow me in Skyrim they something in the lives with "You already have a follower.". The problem is, I don't.   I have not, to my recollection, had a follower at any given point in the game.  The only thing I can think of is that I have (spoiler)      finished Anriel's Endeavors and gotten him as a summon creature.    Or do I have a hidden follower that I can't remember. A dog or a horse perhaps? Note that I do not have a dog or horse following me now. I talked to dog once, and had a horse that died.  Is this a common/known issue? Is there a work around?  Any tips? How to run ffmpeg from command line in android How to format numbers as currency strings I would like to format a price in JavaScript. I'd like a function which takes a float as an argument and returns a string formatted like this: &quot;$ 2,500.00&quot;  What's the best way to do this? While using the top bar to navigate across communities, I noticed that the reputation displayed on meta sites on that list does not match the one of their corresponding main sites:    I have noticed on past situations that reputation gained takes a bit to "update" on the display on Meta sites (that is, if you gain rep on SO, for example, it will take some time for you to see your updated rep on MSO).  However, I have never noticed this behavior here, on the Sites List of the top bar. Furthermore, the "delay" here seems to be more severe, as the "outdated" rep showed is of several days ago (for example, I turned 3k on SO almost exactly a week ago, but the rep shown on MSO is still &lt;3k).  Any idea what could be causing this behavior?    Update: 2 months later this persists: my main site rep updates correctly but their corresponding meta rep remains the same as in the image above.     Update: As per Catija's  I removed the site (MSO) and put it back in, but it didn't update the rep.   However, after removing one site (TWP Meta), waiting at least a day, and then adding it back I see that although the reputations still don't match, the number displayed did changed a bit (previously 29,924 but now 33,112): I want to make the teeth a separate child object from the mouth. I want to know the best way to do this.   I have tried going into edit mode with Tab and trying to select all the vertices but that doesn't move the teeth. Is there an easy way to select just that part and make it a separate child mesh to the rest of the mouth? A phonon is a quantized unit of sound; they are encountered when quantizing lattice vibrations in solids. Now, even an ideal gas supports sound waves, but in this case, interactions between atoms are weak. That makes it hard to imagine what a quantized vibration would look like, since at small scales, the particles are free!   Is there a phonon picture for sound in an ideal gas? Is it ever useful? Cooking lore places a lot of importance on air humidity for doughs. When a dough fails, people quickly point that out as a possible factor, .     Is it really true? I don't doubt that the actual flour moisture content changes, but is it noticeable in the dough preparation, or is the difference too small to matter?  If it makes a difference, what can I do about it? Can Conjure Animals beasts be used as mounts? Is it possible to use the animals that are summoned using Conjure Animals as mounts?  As an example: Summoning Giant Eagles to carry a group up the mountain or over a wall. Stop all active ajax requests in jQuery