The choice of empirical therapy is based on several factors including the patient's age, clinical presentation, local resistance patterns, and the most likely pathogens. For instance, in neonates, common pathogens include Group B Streptococcus and Escherichia coli, whereas in older children, Streptococcus pneumoniae and Mycoplasma pneumoniae may be more prevalent.