1. A stylus detection apparatus for detecting contacts from a stylus, the apparatus comprising: a touch sensor panel comprising a plurality of electrodes, each electrode configured to receive one or more signals from a stylus; and a processor, the processor capable of: measuring a first signal from a first electrode; measuring one or more signals from a pre-determined number of second electrodes; generating a noise estimate based on the measured one or more signals from the pre-determined number of second electrodes; and adjusting the measured first signal based on at least the generated noise estimate.