Installing a ceiling fan with remote
If this is correctly wired, using the US color conventions, and the old fan had separate wall-switches for the fan and its lights:


Black: Hot (probably switched hot, power for either fan or light)
Red: "Alternate Hot" (probably switched power for either light or fan -- whichever wasn't supplied by black)
White: Neutral.
Green or bare copper: Safety ground.


Check that with a meter or test light, though!

If you're adding a remote-control receiver, see its instructions for how it connects between power and the fan.