Topic, audience, and purpose are the three factors that determine the formality of a discussion.
A discussion of a subject is a piece of writing or a lecture in which someone talks about it in detail. That discussion deals with a particular topic, and has a targeted audience. Furthermore, it has a specific purpose either to explain, describe, or interpret a topic you had researched about, or even to deal with a problem.