An electronic device comprising: a monitor unit (201,202,102,103,104,105) configured to monitor a traveling speed and a traveling position of a host car, and a speed and a position of a preceding car, the host car being a vehicle in which the electronic device is mounted, the preceding car being a vehicle traveling ahead of the host car; a reception unit configured to receive traffic signal information including at least a current display state of a traffic light located ahead of the host car in a traveling direction thereof and information on a timing when the display of the traffic light is changed; a prediction unit configured to generate a first prediction result of a first prediction whether or not the preceding car will go into an intersection after the traffic light changes to a red signal display state when the preceding car maintains a current speed thereof based on monitor information and the traffic signal information received by the reception unit, and generate a second prediction result of a second prediction whether or not the preceding car can stop before the intersection without braking suddenly based on the position and the speed of the preceding car and a distance between the preceding car and the intersection, the second prediction being made at a timing when the traffic light changes to a yellow signal display state, the monitor information including the traveling speed and the traveling position of the host car and the speed and the position of the preceding car monitored by the monitor unit (201,202,102,103,104,105); and a warning unit (105,109,203) configured to give a first-stage warning when the first prediction result indicates that the preceding car will go into the intersection where the traffic light is in the red signal display state, and give a second-stage warning when the second prediction result indicates that the preceding car cannot stop before the intersection after the traffic light changes to the red signal display state without braking suddenly. a monitor unit (201,202,102,103,104,105) configured to monitor a traveling speed and a traveling position of a host car, and a speed and a position of a preceding car, the host car being a vehicle in which the electronic device is mounted, the preceding car being a vehicle traveling ahead of the host car; a reception unit configured to receive traffic signal information including at least a current display state of a traffic light located ahead of the host car in a traveling direction thereof and information on a timing when the display of the traffic light is changed; a prediction unit configured to generate a first prediction result of a first prediction whether or not the preceding car will go into an intersection after the traffic light changes to a red signal display state when the preceding car maintains a current speed thereof based on monitor information and the traffic signal information received by the reception unit, and generate a second prediction result of a second prediction whether or not the preceding car can stop before the intersection without braking suddenly based on the position and the speed of the preceding car and a distance between the preceding car and the intersection, the second prediction being made at a timing when the traffic light changes to a yellow signal display state, the monitor information including the traveling speed and the traveling position of the host car and the speed and the position of the preceding car monitored by the monitor unit (201,202,102,103,104,105); and a warning unit (105,109,203) configured to give a first-stage warning when the first prediction result indicates that the preceding car will go into the intersection where the traffic light is in the red signal display state, and give a second-stage warning when the second prediction result indicates that the preceding car cannot stop before the intersection after the traffic light changes to the red signal display state without braking suddenly.