Introduction

Anchor article

“Light pollution is causing birds like the Australian magpie-lark to sing for longer” (ABC News, August 22, 2025). https://www.abc.net.au/news/science/2025-08-22/light-pollution-extending-birdsong-hours/105673490

The ABC article reports on a study of 583 daytime bird species. On average, birds in the brightest areas were vocally active about 50 minutes longer each day. The article highlights the Australian magpie-lark (Grallina cyanoleuca) as one species that began calling earlier in bright areas.

Female magpie-lark Female magpie-lark (Grallina cyanoleuca), Braeside Park, Melbourne, Australia. Photo: Wayne Butterworth, CC BY 3.0, via Wikimedia Commons.

The study behind the anchor article

Pease, B. S., & Gilbert, N. A. (2025). Light pollution prolongs avian activity. Science, 389(6762), 818-821. https://doi.org/10.1126/science.adv9472

The researchers used recordings from volunteer-run microphones around the world (BirdWeather) and compared when 583 daytime bird species sang with how much light pollution each location had, using satellite measurements.

Additional supporting studies/papers

My anchor article reports on a study of how light pollution affects bird behaviour. To understand it, I looked at five peer-reviewed papers on light at night and birds. This section summarizes what each one measured and which statistical methods were used in their data analysis.

Paper What was measured Main statistical method Relevance
1 (Anchor) Pease & Gilbert (2025). Light pollution prolongs avian activity. Science, 389(6762), 818-821. The time of first and last calls each day (relative to sunrise and sunset) for 583 bird species, compared with satellite measures of light pollution at each microphone Regression models of call timing against light pollution, with effects reported as effect sizes with standard errors and 95% confidence intervals, and with species traits (eye size, nest type, migration) and context (latitude, season) added to test what changes the response. The exact model type is described in the paper’s supplement. The main study behind my anchor article
2 Dominoni et al. (2013). Individual-based measurements of light intensity provide new insights into the effects of artificial light at night on daily rhythms of urban-dwelling songbirds. Journal of Animal Ecology. How much light each bird was exposed to at night, and when its daily activity started and ended Linear Mixed-Effects Model, which accounts for non-independence in data by including individual bird identity as a random effect Measures light at the level of the individual bird, and its data and R code are open
3 Da Silva et al. (2017). Experimental illumination of a forest: no effects of lights of different colours on the onset of the dawn chorus in songbirds. Royal Society Open Science. When dawn singing started at eight forest edges lit with white, green, red or no light Linear mixed-effect models (LMMs), which they fitted using maximum likelihood (ML) A controlled experiment that found no effect, which shows that results can differ from correlational studies
4 Osterhaus et al. (2025). Nocturnal flight call monitoring reveals in-flight behavioral alteration by avian migrants in response to artificial light at night. Biological Conservation. Flight calls of migrating birds at night, in relation to weather, timing and lighting Generalized linear mixed modeling (GLMM). Their code is shared as an R Markdown file Very recent, and it extends the topic to migrating birds
5 Da Silva, Valcu & Kempenaers (2015). Light pollution alters the phenology of dawn and dusk singing in common European songbirds. Philosophical Transactions of the Royal Society B, 370(1667), 20140126. Whether six songbird species sang at dawn and at dusk on each day at 12 woodland sites, half of them lit by street lighting Generalized linear mixed models (a regression for yes/no outcomes that also accounts for repeated measures at the same sites), fit in R Shows light affects when in the season birds start singing, not only the time of day

What these papers have in common

All five papers examine if artificial light changes when birds are active. Four of them are observational studies, which compare birds in places that already differ in light level. Only Da Silva et al. (2017) (paper 3 in above table) is an experiment, where the researchers controlled the light themselves. This matters because observational studies can show that light and bird behaviour go together, but they cannot prove that light causes any of the observed changes.

All five use regression to link bird activity to light. Four of them (papers 2 to 5) use mixed models, which are regressions that account for repeated measurements of the same bird or site. Linear mixed models are used when the outcome is a continuous value such as the time singing starts, and generalized linear mixed models are used for outcomes such as whether a bird sang or how many calls were recorded. The anchor study (Pease & Gilbert, 2025) also uses regression models, with the exact details given in its supplement.

My analysis uses data from the Pease & Gilbert (2025) study for one species, the Northern Cardinal (Cardinalis cardinalis), which is the species also highlighted in my anchor article. I will be using linear regression and ANCOVA, to test whether the time a Northern Cardinal calling changes with light level and season. Instead of mixed models, I average the data by site to deal with repeated measures. This keeps the analysis within what we have learned in class, but it is a limitation that I will return to in my conclusion.


Northern Cardinal Northern Cardinal (Cardinalis cardinalis), Glastonbury, Connecticut, USA. Photo: Paul Danese, CC BY-SA 4.0, via Wikimedia Commons.

Data

The data come from the open data and code package shared by Pease and Gilbert on Zenodo (https://doi.org/10.5281/zenodo.15635107). I used the morning onset file, which has 2,640,731 rows. Each row is one bird species at one location on one date. I focused on the Northern Cardinal, because it was a species highlighted explicitly in the paper to respond strongly to light and has a suitable sample size (around 55,000 rows). The key columns are the time of the first call (onset_min, in minutes from sunrise, where negative means before sunrise) and the light pollution at that location (light, satellite radiance).

Loading, Checking, and Cleaning Raw Data

load("data/onset_data_conf_0.75_det_100_grid_10.RData")
glimpse(final)
## Rows: 2,640,731
## Columns: 10
## $ lat             <dbl> -25.768, -25.768, -25.768, -25.768, -25.768, -25.768, …
## $ lon             <dbl> 28.2704, 28.2704, 28.2704, 28.2704, 28.2704, 28.2704, …
## $ date            <date> 2023-03-01, 2023-03-04, 2023-03-05, 2023-03-06, 2023-…
## $ grid_ID_cell_5  <dbl> 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906,…
## $ grid_ID_cell_10 <dbl> 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,…
## $ grid_ID_cell_15 <dbl> 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,…
## $ week            <dbl> 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, …
## $ sci_name        <chr> "Cossypha caffra", "Cossypha caffra", "Cossypha caffra…
## $ value           <dbl> 6.133333, 43.766667, 204.550000, -38.966667, 29.966667…
## $ avg_rad         <dbl> 21.89, 21.89, 21.89, 21.89, 21.89, 21.89, 21.89, 21.89…
# Checking to see how much data is in this whole package (how many rows total are in the dataset)

nrow(final)
## [1] 2640731
#tidying data here and selecting variables (getting rid of uneeded columns, renaming kept columns, removing missing values)
onset <- final %>%
  select(sci_name, lat, lon, date, week, value, avg_rad) %>%
  rename(onset_min = value, light = avg_rad) %>%
  drop_na() %>%
  mutate(log_light = log10(light + 1)) # light is very skewed, so we log-transform it (+1 because some values are 0)

nrow(onset) #number of rows i am keeping
## [1] 2640731
#   1. Choosing and setting the species I want to study (northern cardinal)
#   2. Keeping only the rows for the northern cardinal
#   3. Add a site label by combining latitude and longitude with mutate function
#   4. Add a season label: April to July = breeding, all other months = non-breeding
#   5. Print the species name and how many rows we kept, to check things are working

my_species <- "Cardinalis cardinalis"
one_sp <- onset %>%
  filter(sci_name == my_species) %>%
  mutate(site = paste(lat, lon),
         season = if_else(month(date) %in% 4:7,
                          "Breeding (Apr-Jul)", "Non-breeding"))

my_species
## [1] "Cardinalis cardinalis"
nrow(one_sp)
## [1] 55372

Stats

Variables and Hypothesis

Dependent variable (y): onset (onset_min), the time of a cardinal’s first call of the day, in minutes from sunrise. It is a continuous numeric variable. Negative values mean the bird called before sunrise.

Independent variable (x): light pollution (log_light), the satellite-measured brightness at the recording location, put on a log10 scale because the raw values are very skewed. It is also a continuous numeric variable.

Other variables:

  • Week and month (week, date): when the observation was made. Season may be a confounding variable, because birds call at different times across the year and the amount of light may differ by season too.

  • Location (lat, lon, site): where the microphone is. Many observations come from the same location, so they are not fully independent.

  • Species (sci_name): I kept only one species, the Northern Cardinal, so species does not vary in my analysis.

Hypothesis and prediction: birds may treat artificial light as daylight, so I predict that cardinals start calling earlier where there is more light pollution (onset ~ light). The null hypothesis is that light has no effect on onset (slope = 0), and the alternative is that onset changes with light (slope not equal to 0).

Exploring the data

Before fitting any model, I am checking the data for problems (following Zuur’s data exploration steps from lecture).

Data structure

glimpse(one_sp)          # variable types and a preview of the values
## Rows: 55,372
## Columns: 10
## $ sci_name  <chr> "Cardinalis cardinalis", "Cardinalis cardinalis", "Cardinali…
## $ lat       <dbl> 32.4474, 32.4474, 32.4474, 32.4474, 32.4474, 32.4474, 32.447…
## $ lon       <dbl> -111.0779, -111.0779, -111.0779, -111.0779, -111.0779, -111.…
## $ date      <date> 2023-03-04, 2023-03-05, 2023-03-06, 2023-03-07, 2023-03-08,…
## $ week      <dbl> 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 1…
## $ onset_min <dbl> -23.0333333, 4.0333333, 15.2166667, -21.0000000, 107.3000000…
## $ light     <dbl> 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, …
## $ log_light <dbl> 0.5185139, 0.5185139, 0.5185139, 0.5185139, 0.5185139, 0.518…
## $ site      <chr> "32.4474 -111.0779", "32.4474 -111.0779", "32.4474 -111.0779…
## $ season    <chr> "Non-breeding", "Non-breeding", "Non-breeding", "Non-breedin…
summary(one_sp)          # sample sizes, means, ranges
##       sci_name          lat             lon               date           
##  Length   :55372   Min.   :25.72   Min.   :-116.91   Min.   :2023-03-01  
##  N.unique :    1   1st Qu.:34.73   1st Qu.: -88.00   1st Qu.:2023-07-31  
##  N.blank  :    0   Median :39.63   Median : -82.94   Median :2024-01-14  
##  Min.nchar:   21   Mean   :38.43   Mean   : -83.61   Mean   :2023-11-17  
##  Max.nchar:   21   3rd Qu.:41.96   3rd Qu.: -77.54   3rd Qu.:2024-03-05  
##                    Max.   :46.88   Max.   : -68.12   Max.   :2024-03-31  
##       week         onset_min           light          log_light     
##  Min.   : 1.00   Min.   :-403.08   Min.   :  0.00   Min.   :0.0000  
##  1st Qu.: 9.00   1st Qu.: -22.05   1st Qu.:  3.54   1st Qu.:0.6571  
##  Median :13.00   Median :  15.25   Median :  9.12   Median :1.0052  
##  Mean   :19.03   Mean   :  58.42   Mean   : 15.65   Mean   :0.9807  
##  3rd Qu.:29.00   3rd Qu.: 113.41   3rd Qu.: 19.38   3rd Qu.:1.3092  
##  Max.   :53.00   Max.   : 462.20   Max.   :432.49   Max.   :2.6370  
##         site             season     
##  Length   :55372   Length   :55372  
##  N.unique : 2732   N.unique :    2  
##  N.blank  :    0   N.blank  :    0  
##  Min.nchar:   10   Min.nchar:   12  
##  Max.nchar:   17   Max.nchar:   18  
## 
sum(is.na(one_sp))       # missing values (should be 0 after drop_na)
## [1] 0
range(one_sp$date)       # first and last day in the data
## [1] "2023-03-01" "2024-03-31"

Outliers and distributions

one_sp %>%
  select(onset_min, light, log_light) %>%
  pivot_longer(everything(), names_to = "variable", values_to = "value") %>%
  ggplot(aes(x = value, fill = variable)) +
  geom_histogram(bins = 40, colour = "white") +
  facet_wrap(~ variable, scales = "free") +
  scale_fill_manual(values = c(light = "firebrick", log_light = "hotpink", onset_min = "pink")) +
  guides(fill = "none") +
  labs(x = "Value", y = "Count")

Light pollution (light) is very skewed (left graph), meaning most locations are dim and a few are extremely bright. After the log transformation, log_light is much more evenly spread (middle graph), which is why I will be using it in the models. Onset time (onset_min) is also somewhat skewed (right graph). Most birds start calling within about an hour of sunrise, but there is a long tail of late starts, up to about 460 minutes after sunrise. I did not remove these values, since they look like real behaviour and not errors, but I will need to check the model residuals later to see if the skew is a problem.

Independence

# Shows how many sites, and how many rows each site contributes
one_sp %>%
  count(site) %>%
  summarise(n_sites = n(), median_rows_per_site = median(n), max_rows_per_site = max(n))
## # A tibble: 1 × 3
##   n_sites median_rows_per_site max_rows_per_site
##     <int>                <dbl>             <int>
## 1    2732                    5               372

The cardinal data come from 2,732 recording sites. The median site contributes only 5 rows, but one site contributes 372. Rows from the same site are not independent, because the same microphone and the same birds are measured repeatedly, and a few sites contribute much more data than the others. This is pseudoreplication, and I deal with it later by averaging the data for each site.

Model 1: linear regression

Plotting data to see if the time of a Northern Cardinal’s first call changes with light pollution:

set.seed(42)   # makes the random sample the same every time
sample_pts <- one_sp %>%
  slice_sample(n = min(5000, nrow(one_sp))) %>%     # picks random 5,000 rows, for the plot
  mutate(month = month(date, label = TRUE))

# making the scatterplot prettier, and clearer visually 
month_cols <- c("#FFC0CB",  # Jan  
                "#FF69B4",  # Feb  
                "#E7298A",  # Mar 
                "#D7191C",  # Apr  
                "#FF4500",  # May  
                "#FF8C00",  # Jun  
                "#FFC107",  # Jul  
                "#FFE74C",  # Aug  
                "#B8860B",  # Sep  
                "#A0522D",  # Oct 
                "#8B2E2E",  # Nov  
                "#D1495B")  # Dec  
ggplot() +
  geom_point(data = sample_pts,
             aes(x = log_light, y = onset_min, colour = month), alpha = 0.5) +
  geom_smooth(data = one_sp,                       
              aes(x = log_light, y = onset_min),
              method = "lm", colour = "black") +
  scale_colour_manual(values = month_cols) +
  labs(x = "Light pollution (log10 scale)",
       y = "First call (minutes from sunrise)",
       colour = "Month",
       title = my_species) +
  theme_light()

Each dot is the time of the first cardinal call at one location on one day. To keep the plot readable I only show a random sample of 5,000 of the 55,372 observations. The black line is fitted to all 55,372 observations, the same data used in the model below and not to the random sample.

Model (linear regression):

m1 <- lm(onset_min ~ log_light, data = one_sp)
anova(m1)      # F-test
## Analysis of Variance Table
## 
## Response: onset_min
##              Df    Sum Sq Mean Sq F value    Pr(>F)    
## log_light     1    433928  433928  37.151 1.101e-09 ***
## Residuals 55370 646730710   11680                      
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
summary(m1)    # slope, p-value, R-squared and adjusted R-squared
## 
## Call:
## lm(formula = onset_min ~ log_light, data = one_sp)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -467.43  -80.27  -43.34   54.99  403.80 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)    
## (Intercept)   64.349      1.076  59.814  < 2e-16 ***
## log_light     -6.046      0.992  -6.095  1.1e-09 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 108.1 on 55370 degrees of freedom
## Multiple R-squared:  0.0006705,  Adjusted R-squared:  0.0006525 
## F-statistic: 37.15 on 1 and 55370 DF,  p-value: 1.101e-09

Light pollution had a statistically significant but very small negative effect on onset time (linear regression: F1,55370 = 37.2, p < 0.001, R² = 0.0007, adjusted R² = 0.0007). The line of best fit is onset = 64.3 - 6.0 × log_light, so cardinals started calling about 6 minutes earlier for every 10-fold increase in light. However, light explains less than 0.1% of the variation in onset time. The result is significant mainly because the sample is very large (55,372 rows), not because the effect is large.

Assumption checks:

autoplot(m1, # checking residuals vs fitted, Q-Q plot, scale-location, leverage
         colour = "hotpink", alpha = 0.1, size = 0.5,     # size and colour of the dots
         smooth.colour = "black",                 #   colour for trend line 
         ad.colour = "blue",                          # colour for dashed reference lines
         label = FALSE,                                
         ncol = 2)                                    

The assumption checks show that this model is not a good fit. In the residuals vs fitted plot, the trend line is close to flat, but the points form vertical stripes, which happens because many rows come from the same site and so share the same light value, which is the non-independence problem from the previous section I mentioned. The Normal Q-Q plot bends away from the straight line in an S shape, so the residuals are not normally distributed, which matches the skewed onset times seen earlier. The scale-location plot is fairly flat, so the spread of the residuals is roughly constant, and no points have unusually high leverage. Because the independence and normality assumptions are not met, I cannot fully trust this p-value, and next I need to average the data by site to deal with this.

Fixing pseudoreplication

Because many of the rows come from the same site, I am averaging the data for each site and season. Each site and season is then one data point, keeping only groups with at least 5 days of data so the averages are reliable.

# group by site and season, average onset time, count the days, drop small groups
site_means <- one_sp %>%
  group_by(site, season) %>%
  summarise(mean_onset = mean(onset_min),
            log_light = mean(log_light),      # same for every row at a site
            n_days = n(), .groups = "drop") %>%
  filter(n_days >= 5)

nrow(site_means)   # shows how many site-and-season averages are left
## [1] 1688

Model 2: ANCOVA

Does the effect of light on onset time depend on the season?

Plot

ggplot(site_means, aes(x = log_light, y = mean_onset, colour = season)) +
  geom_point(alpha = 0.5) +
  geom_smooth(method = "lm") +
  scale_colour_manual(values = c("Breeding (Apr-Jul)" = "firebrick",
                                 "Non-breeding" = "hotpink")) +
  labs(x = "Light pollution (log10 scale)",
       y = "Mean first call (minutes from sunrise)",
       colour = "Season") +
  theme_light()

Model for season, light, and their interaction

m2 <- lm(mean_onset ~ season * log_light, data = site_means)
anova(m2)
## Analysis of Variance Table
## 
## Response: mean_onset
##                    Df  Sum Sq Mean Sq F value  Pr(>F)  
## season              1   17718 17718.1  5.6402 0.01766 *
## log_light           1   11041 11041.1  3.5147 0.06100 .
## season:log_light    1   10904 10904.4  3.4712 0.06262 .
## Residuals        1684 5290129  3141.4                  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
summary(m2)
## 
## Call:
## lm(formula = mean_onset ~ season * log_light, data = site_means)
## 
## Residuals:
##      Min       1Q   Median       3Q      Max 
## -144.423  -40.373   -2.616   34.721  206.472 
## 
## Coefficients:
##                              Estimate Std. Error t value Pr(>|t|)    
## (Intercept)                    91.289      8.481  10.764   <2e-16 ***
## seasonNon-breeding             -5.139      9.191  -0.559   0.5761    
## log_light                     -19.651      8.108  -2.424   0.0155 *  
## seasonNon-breeding:log_light   16.255      8.724   1.863   0.0626 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 56.05 on 1684 degrees of freedom
## Multiple R-squared:  0.007442,   Adjusted R-squared:  0.005674 
## F-statistic: 4.209 on 3 and 1684 DF,  p-value: 0.005632

The full model was statistically significant, but it explained very little of the variation in onset time (full model: F3,1684 = 4.2, p = 0.006, R² = 0.007, adjusted R² = 0.006). In the breeding season, onset was about 20 minutes earlier for every 10-fold increase in light (slope = -19.7 minutes, p = 0.016). In the non-breeding season the slope was much flatter (about -3.4 minutes). However, the interaction between season and light was not significant at the 0.05 level (F1,1684 = 3.5, p = 0.063), so there is only weak evidence that the effect of light differs between seasons.

Assumption checks

autoplot(m2,
         colour = "hotpink", alpha = 0.5, size = 1.5,
         smooth.colour = "black", ad.colour = "blue",  
         label = FALSE, ncol = 2)

The assumptions are much better met than in Model 1. The Normal Q-Q plot follows the straight line closely, so the residuals are close to normally distributed. The scale-location plot is roughly flat, so the spread of the residuals is fairly constant. The residuals vs fitted plot shows most points bunched at fitted values of 80 to 86, because most site averages come from the non-breeding season, where the line is nearly flat, but the trend line stays close to zero. A few sites have higher leverage (the brightest locations), but none are extreme enough to worry about. Averaging by site fixed the independence problem and improved the fit.

Comparing models

Because the interaction was not significant, I need to compare the model with the interaction (m2) to a simpler model without it (m2b).

m2b <- lm(mean_onset ~ season + log_light, data = site_means)   # fit the simpler model (season + light, no interaction)

anova(m2b, m2)     # F-test comparing the two models
## Analysis of Variance Table
## 
## Model 1: mean_onset ~ season + log_light
## Model 2: mean_onset ~ season * log_light
##   Res.Df     RSS Df Sum of Sq      F  Pr(>F)  
## 1   1685 5301034                              
## 2   1684 5290129  1     10904 3.4712 0.06262 .
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
AIC(m2, m2b)       # calculate AIC for both models
##     df      AIC
## m2   5 18388.83
## m2b  4 18390.30
press <- function(m) sum((resid(m) / (1 - hatvalues(m)))^2)   # define a function that calculates PRESS for any model
press(m2); press(m2b)     # run previous line's function on each model
## [1] 5320686
## [1] 5321972
summary(m2)$adj.r.squared; summary(m2b)$adj.r.squared  # pull out adjusted R-squared for each model
## [1] 0.005673658
## [1] 0.004215393

Adding the interaction improved all three fit measures slightly (AIC: 18388.8 vs 18390.3; PRESS: 5,320,686 vs 5,321,972; adjusted R²: 0.0057 vs 0.0042), but the improvements are very small. An AIC difference of less than about 2 suggests the two models are essentially equally good, and the F-test for the interaction was not significant at the 0.05 level (F1,1684 = 3.5, p = 0.063). I keep the model with the interaction because it directly tests whether light affects onset time differently in the breeding and non-breeding season, but the evidence for such a difference is weak.

Conclusion and limitations

What I found

Northern Cardinals tended to start calling earlier in brighter places, which is consistent with the finding of the anchor article. In the breeding season, onset was about 20 minutes earlier for every 10-fold increase in light, and in the non-breeding season the effect was much smaller (about 3 minutes). However, the evidence is weak. The difference between seasons was not significant (p = 0.063), and light and season together explained less than 1% of the variation in onset time. Light pollution is clearly not the main thing that decides when a cardinal starts calling.

Limitations

  • Observational data: Because this is an observational study (light wasnt manipulated as a variable), it can show a link between light and calling time but cannot prove that light is the cause. Bright and dark places also differ in habitat, noise and temperature
  • Repeated measures: Averaging by site fixed the independence problem in a simple way, but it throws away information, such as the day-to-day variation at each site. Published studies on this topic use mixed models (examples of this can be found in the additional sources table in the introduction), which keep all the data and account for repeated measures directly. I did not use these methods because they go beyond the course material covered so far.
  • The choices I made: I kept only site-and-season groups with at least 5 days of data, and I defined the breeding season as April to July for all sites. Different cutoffs could change the results slightly.
  • Light measure: The satellite measures average brightness for each month at the microphone’s location, which may not match the light an individual bird experiences.
  • One species and one year: As I only used data from Northern cardinals from March 2023 to March 2024, the results in this only apply to them and may not apply to other species, meaning that if this were to be redone wiwth another species, the results may be different.

Next steps

The most useful next step would probably be a mixed model with site as a random effect, which uses all of the data without averaging. It would also be interesting to repeat the analysis for other species and to add weather variables.

Glossary

Term Meaning
Linear regression A method that fits a straight line to show how one variable (like call time) changes with another (like light).
Slope How much the outcome changes for each one-unit increase in the predictor. Here, minutes of call time per 10-fold increase in light.
p-value How likely a result at least this strong would be if there were really no effect. Small values (below 0.05) are usually called significant.
R-squared The share of the variation in the outcome that the model explains. 0 means none and 1 means all of it.
Adjusted R-squared R-squared corrected for how many predictors are in the model, so adding useless predictors does not make it look better.
Residual The gap between an actual data point and the value the model predicted for it.
Diagnostic plots Plots of the residuals that show whether a model’s assumptions (such as normal residuals and constant spread) are reasonable.
Log transformation Replacing values with their logarithm. It squeezes very large values together, which helps with skewed data like light.
Outlier A data point far from the rest. It can pull a fitted line toward it.
Pseudoreplication Treating repeated measurements from the same place as if they were independent, which makes results look more certain than they are.
ANCOVA A model that compares groups (here, seasons) while also including a continuous predictor (light).
Interaction When the effect of one variable depends on another. Here, whether the effect of light is different in the breeding and non-breeding seasons.
AIC A score for comparing models that rewards good fit but penalizes extra complexity. Lower is better.
PRESS A measure of how well a model predicts data points it was not fitted to. It adds up the squared prediction errors when each point is left out in turn. Lower is better.
Observational study A study that compares things as they already are, without the researchers changing anything. It cannot prove cause and effect.
Mixed model A regression that accounts for repeated measurements of the same bird or site. It goes beyond the methods used in this report.
Dependent variable The outcome you measure and want to explain. Here, the time of the first call (onset).
Independent variable The variable used to explain or predict the outcome. Here, light pollution.
Null hypothesis The default idea that there is no effect. Here, that light has no effect on onset time (slope = 0).
Confounding variable Something other than the variable of interest that also affects the outcome and can distort the result. Here, season could be one.
Skewed data Data where most values are bunched at one end and a few are very large or very small, so the histogram is lopsided.
Median The middle value when the data are sorted. Half the values are above it and half below.
Q-Q plot A plot that compares the residuals to what a normal (bell-shaped) distribution would give. If the points follow the line, the residuals are close to normal.
Leverage How far a point’s predictor value is from the others. Points with high leverage can pull the fitted line toward them.
F-test A test that asks whether a model, or a term in a model, explains more of the variation than would be expected by chance.
Degrees of freedom A number related to how much independent information the data contain. It is reported in brackets with test results, like F1,1684.
Repeated measures Measuring the same bird, site or subject more than once, so the measurements are not fully independent.
Random effect A model term that accounts for groups, such as individual birds or sites, that appear many times in the data.
Linear mixed model A linear regression that includes random effects, used for continuous outcomes such as the time a bird starts calling.
Generalized linear mixed model A mixed model for outcomes that are not continuous measurements, such as yes or no, or counts.
Maximum likelihood A way of fitting a model by choosing the values that make the observed data most likely.
Effect size How big an effect is, not just whether it is statistically significant. Here, minutes of difference in call time.
Confidence interval A range of values that likely contains the true value. A 95% interval would contain it in about 95 of 100 repeats of the study.
Standard error How much an estimate, such as a slope, would be expected to vary if the study were repeated.
Experiment A study where the researchers change something (such as the light) and compare it to a group where nothing changed.
Onset The time of a bird’s first call of the day, measured here in minutes from sunrise.
Radiance A satellite measure of how bright a place is at night.

AI Usage Statment

Claude (Sonnet 5.5) was used in this assignment to help with ggplot arguments for plot formatting, colours and layout, to explain statistical concepts from lectures before they were used, and for the occasional grammar and spell-checking. The topic, the anchor article, the dataset, the species and the analysis plan were all chosen by me. I take responsibility for the content of the report, including any errors.