I have been reading lots of posts about the scaling factors in PSD, and related topics on this forum. My understanding of the topic has been greatly improved. Thankyou all. I just need a little more to drive the concepts home.
My main question now is about the definition of power spectrum. First of all, what is its meaning? My intuitive understanding is that power spectrum gives the power of a signal at a particular frequency (signal power being analogous to real power, provided the signal can be assumed as a Voltage signal passed through a 1 ohm resistor, or other mechanically equivalent definition). The power of a signal is its amplitude squared (divided by 2 if we want average power and not peak power). Am I correct in this?
Amplitude of a particular frequency component in a (N Periodic assumed) signal is given by $\frac{DFT}{N}$ where N is signal length (no of samples). Because of finite no of samples, we have amplitudes at finite no of frequencies, and these amplitudes we get from $\frac{DFT}{N}$ are not the "exact" amplitude of the signal at that frequency, but a combination (kind of average, but not exactly the mathematical average. This is due to the difference of summing vs integration) of the amplitudes of all frequencies in one bin width (so like a representative amplitude at the bin centre). The DFT value is the one sided DFT, so the correction factor of 2 for negative frequencies is included in it.
Now from my intuitive understanding of signal power, the power spectrum of the signal (signal power in that freq bin) should then be $(\frac{DFT}{N})^2$. Then, if I add up the power spectrum of all the bins, I should get the total signal power. If power spectrum is defined in this way, then my logic carries me to power spectral density. Because, in my understanding, PSD is that function which when integrated across the frequency band of interest, gives the signal power in that band. So if I have power spectrum in each freq bin, then to get power spectral density, I divide by the bin width which is $\frac{f_s}{N}$ where fs is sampling frequency. So I will have PSD as $\frac{DFT^2}{Nf_s}$ which is the definition that I see mostly, and is implemented in MATLAB.
From answers here and here, the definition of power spectrum is as I expected. My question is, in many places eg. here, I also see power spectrum as defined by $\frac{DFT^2}{N}$ instead of $(\frac{DFT}{N})^2$. Also here, the power spectral density is given as $\frac{DFT^2}{N}$ without the fs. This formulation is used by many posts to show the equivalence to the fourier transform of the autocorrelation function. Why is there so many differences ? If I use the $\frac{DFT^2}{N}$ formula, I would not be able to recover the actual power in a signal right ? Also, why did the fs disappear ? Is it because N goes to infinity, so dividing by a positive fs doesn't matter in the limit?
Also, one more question : From the posts, I saw that PSD is really a tool for random signals, and not for signals containing certain frequencies you are looking for. For that, the power spectrum is better. Why is this so ? What does PSD do better for characterising random signals compared to taking the power spectrum of the same signal ?
Thankyou for taking the effort to read and answer my questions.