B.F. Skinner developed the theory of operant conditioning based on Edward Thorndike's law of effect. Operant conditioning is a learning process where voluntary behaviors are strengthened if followed by reinforcement or weakened if followed by punishment. Skinner used operant chambers to study how animals learn through consequences. Different reinforcement schedules, like continuous or partial reinforcement, produce different learning and performance rates. Accidental reinforcement can also cause superstitious behaviors. Punishment should only be used under certain circumstances. Operant conditioning principles can be applied to areas like education, work, and parenting.