(A) For contour-free (left) and contour-based (right) trace extraction methods, hit-rate accuracy (±D, y-axis) of position decoding was higher when classifier was trained and tested on raw calcium trace values than inferred spike events; ±D is the percentage of predicted position bins falling within a radius of ±D of true position bin. (B) Performance comparison between linear classifier (LC, same as Figure 3F) versus naive Bayes (NB) decoder; NB performs poorly and was thus not implemented for real-time decoding of calcium traces. (C) Decoder predictions are far more accurate after training on 3K frames of calcium traces aligned with position data (‘align’) than circularly shifted against position data (‘shift’). (D) Graphs plot each rat’s mean running speed (top graph), mean acceleration (middle graph), and total number of image frames during which the rat was sitting still (running speed <5 cm/s) in each of the 24 position bins (x-axis for all three graphs); black lines show averages over all rats in each graph. (E) Colored lines plot cumulative distributions of tuning curve similarity scores (S) for offline (Off), contour-based (CB), contour-free (CF), and expanded contour-based (CB+) calcium traces in each rat. The tuning curve similarity score (S) was computed for each trace as S = −log10(P) × sign(R), where R is the correlation between the trace’s tuning curves from the training versus testing epochs, and P is the significance level for R; the p < 0.01 level for the similarity score is S > 2 (dashed lines in each graph) since log10(0.01) = 2. Bar graph (lower right) shows mean S scores for individual rats (black lines) and averaged over rats (colored bars). The mean value of S over sets of traces imaged in each rat was significantly greater than 2 for every rat, indicating that on average calcium traces in CA1 exhibited stable spatial tuning between the training and testing epochs, as required for accurate decoding. A one-way repeated measures analysis of variance (ANOVA) found that the mean S value differed significantly by trace type (F3,44 = 16.2, p < 0.00001); colored asterisks over each bar show significance of an uncorrected paired t-test comparison between that bar versus bar matching the color of the asterisk. (F) Colored lines plot distributions of calcium trace activity ranges (CTARs) for all traces from each rat; CTAR is defined as the total distance (in cm) over which a calcium trace’s tuning curve exceeds 67% of the tuning curve’s peak value. Bar graph (lower right) shows mean CTAR per rat (black lines) and averaged over rats (colored bars). A one-way repeated measures ANOVA found that the mean CTAR value differed significantly by trace type (F3,44 = 9.1, p < 0.001); colored asterisks over each bar show significance of an uncorrected paired t-test comparison between that bar versus bar matching the color of the asterisk. *p < 0.05; **p < 0.01; ***p < 0.001; ****p < 0.0001.