Shut off power to the ceiling electrical box at the main panel and open the electrical box. If a light fixture is attached to the box, remove the light fixture with a screw driver and remove the plastic twist caps that hold the fixture wires to the feed wires. Make note of which wires the light fixture was attached to and plan to connect the ceiling fan to the same wires.
Attach the ceiling fan mounting bracket per the manufacturer's instructions and hang the fan on the mounting bracket.
Connect the white wire of the ceiling fan to the existing white wire splice in the electrical box and add a plastic twist cap. The black wire of the ceiling fan can be connected to either the black wire or the red wire. If the original ceiling fixture was connected to the black wire, connect the ceiling fan's black wire to the existing black wire splice. If the fixture was connected to the red wire, connect the black wire of the ceiling fan to the red wire splice. Place a new plastic twist cap on that splice.
Connect the ground wire of the ceiling fan to the existing ground wire splice and add a plastic twist cap.
Finish attaching the remaining mounting hardware as instructed by the manufacturer's instructions.
Turn the power back on and test the fan's operation.