Here is the design of a clinical trial:

Official Title: The Acute Effect of Aerobic Exercise on Sleep in Patients With Depression: a Randomized Controlled Trial

Included conditions:
- Depression
- Sleep
- Sleep Disorder
- Sleep Disturbance
- Sleep Fragmentation
- Sleep Initiation and Maintenance Disorders
- Insomnia
- Insomnia, Psychophysiological
- Insomnia Due to Other Mental Disorder
- Insomnia Related to Another Mental Condition

Study Armgroups:
- {'label': 'Aerobic exercise', 'type': 'EXPERIMENTAL', 'description': 'Patients allocated to the intervention group will perform a single bout of supervised aerobic exercise. The starting time will be approximately 1630 hrs. The exercise mode will be a bicycle ergometer. After a warm-up period, during which the intensity is gradually increased, an intensity of 80% of the individual anaerobic threshold will be maintained for 30 minutes. The intensity level was chosen based on clinical experience that this corresponds to an approximate rate of perceived exertion of 13 (on a scale from 6-20) in this population.', 'interventionNames': ['Behavioral: Aerobic exercise, bicycle ergometer']}
- {'label': 'Control', 'type': 'NO_INTERVENTION', 'description': 'Individuals allocated to the control group will be placed in a room with analogous conditions to the exercise group concerning light, temperature and absence of music at the same time as individuals performing the exercise intervention. The control group will be asked to remain seated and read magazines.'}

Interventions:
- {'type': 'BEHAVIORAL', 'name': 'Aerobic exercise, bicycle ergometer', 'description': 'Exercise performed below individual anaerobic threshold for 30 minutes', 'armGroupLabels': ['Aerobic exercise']}

Primary Outcomes:
- {'measure': 'Change from baseline in sleep efficiency (%) at follow-up assessed by polysomnography', 'description': 'Calculated as (total sleep time / total recording time) \\* 100. Higher values represent a better outcome. A one-way ANCOVA will be computed with baseline sleep efficiency (%) and minimization factors as covariates, intervention as the independent variable, and follow-up sleep efficiency (%) as the dependent variable.', 'timeFrame': 'Baseline (night 1) and follow-up (night 2)'}

Please estimate the sample size based on the assumption: 
The study assumes a power of 0.8, a two-sided alpha of 0.05, and a correlation coefficient (ρ) of 0.5. The dropout rate is estimated at 7%.
Sample size calculation
          The theoretical rationale for the analysis of the primary outcome, using an ANCOVA model, is outlined above (see the âPolysomnography (baseline and follow-up)â section). Furthermore, minimization necessitates adjustment for minimization factors [186]. Sample size calculation was performed according to the procedure defined by Borm et al. [187]. The allocation ratio is 1:1. The expected treatment effect is based on the work of Passos et al. [63], who found a standardized mean difference in sleep efficiency of 0.53. The estimate is based on this publication because it is the only one known to the authors which (1) evaluated the acute effect of (2) a similar intervention (i.e., moderate aerobic exercise) (3) in individuals with sleep disorders. Due to the well-documented ceiling and floor effects [188], meta-analyses concerning predominantly healthy individuals (explicitly excluding individuals with mental disorders) [54] are of no use. Meta-analyses including individuals with sleep complaints are limited to the analysis of the chronic effects of exercise on sleep [55, 189]. With a power of 0.8 and a two-sided alpha of 0.05, 57 subjects would be required for each group using a t-test. According to the method of Borm et al., this sample size can be multiplied by a âdesign factorâ of (1 â Ï2), where Ï is the correlation coefficient between baseline and follow-up outcome [187]. Despite contacting other researchers, the authors are not aware of any previous study which have analyzed this aspect. Hence, we need to make an estimate. Recommended values for imputation of Ï vary between 0.5 (if variances are equal at pre- and post-measurements, Ï is at least 0.5) and 0.7 [190, 191]. We use a conservative estimate and let Ïâ=â0.5. This leads to a design factor of 0.75 (1 â 0.52Â =â0.75). Hence, the sample size needed per group is 43 (57 Ã 0.75â=â42.75). Due to the short-term nature of this study, we expect approximately half the dropout rate of trials investigating the chronic effects of exercise in patients with depression [192]. Thus, we anticipate 7% dropouts. Therefore, the total sample size is 92 (2 Ã 43 Ã 1.07â=â92).