Vvvfp

What exactly is a chemical pregnancy? How do you know? I got a vvvfp & I got my period 2 days early. So then I tested again & got a negative after? What could of had happened?