The correct answer is: B. Regulator

A regulator is a device that controls the flow of electricity to a circuit. This can be used to change the speed of an electric fan by controlling the amount of power that is supplied to the fan.

An amplifier is a device that increases the power of an electrical signal. This is not necessary for changing the speed of an electric fan, as the fan already has a built-in motor that can be controlled by a regulator.

A switch is a device that turns an electrical circuit on or off. This is not necessary for changing the speed of an electric fan, as the fan already has a built-in switch that can be used to turn the fan on or off.

A rectifier is a device that converts alternating current (AC) to direct current (DC). This is not necessary for changing the speed of an electric fan, as the fan already operates on AC power.