Skip to content

Current path

Prompt Engineering
Level: Intermediate33 lessons
Progress0/33 · 0%

Practical Applications

Information and Data Analysis

Define the data, analytical question, metrics, assumptions, and desired output before requesting conclusions.

In this lesson

Why this matters

For data analysis, define the question, metrics, and missing-value behavior. Separate calculated observations from causal explanations; a pattern does not prove causation. Use computation tools when numerical accuracy matters.

How to apply it

  1. Define the task and desired outcome.
  2. Add only context or rules that affect success.
  3. Specify an output form or checkable criterion when needed.
  4. Test on realistic input and revise when a failure pattern appears.

Practical example

Weak example:

text
Weak version of the same task: حلل المبيعات وأعطني أهم شيء.

The weak version leaves an important part of the task or its boundaries to guesswork. The improved version adds information tied directly to success without treating length or complexity as a goal.

Improved example:

text
Improved version: احسب إجمالي كل شهر ونسبة التغير؛ لا تملأ المفقود؛ اعرض جدولًا ثم أكبر تغيرين مع الصفوف المستخدمة.

Short practice

Apply the lesson concept to this task: صمم تحليلًا شهريًا بثلاثة مقاييس وقاعدة للمفقود.

Check your understanding

Check: لماذا نفصل الوصف عن السبب؟
Answer: لأن البيانات قد تثبت نمطًا دون إثبات سببه.

Summary

Keep this concept as one tool rather than a magic formula. Tie it to the goal and success criteria, then build on it in the next lesson.