As far as I know, RWR is analyzing radar emissions which scan your plane, their power and frequency. So to determine a lock or launch, the system has to pretty much guess. I think it is correct to say that it is an empirical technology.
I have always wondered how reliable actual RWRs are. In theory it is ok, but when you actually engage bandits..