# How Is Crosstalk Calculated?

The basic algorithm is based on the following:

-Collect 1 Second of 30kHz, unfiltered data

-Filter the data in two ways: 500-1000 Hz pass (for low frequency cross talk, but above the frequency at which LFP is normally correlated) and 1750-2250 Hz pass (for high frequency) with a 2nd order Butterworth filter

-Calculate the correlation coefficient matrices for both ranges and set diagonals to zero

-Channels are labeled as crosstalking if Matrix 1>0.5 and Matrix 2 > 0.35

Note: Frequency ranges determined experimentally

-Collect 1 Second of 30kHz, unfiltered data

-Filter the data in two ways: 500-1000 Hz pass (for low frequency cross talk, but above the frequency at which LFP is normally correlated) and 1750-2250 Hz pass (for high frequency) with a 2nd order Butterworth filter

-Calculate the correlation coefficient matrices for both ranges and set diagonals to zero

-Channels are labeled as crosstalking if Matrix 1>0.5 and Matrix 2 > 0.35

Note: Frequency ranges determined experimentally