Computer Science Grade 12 20 min

Research Design

Research Design

Tutorial Preview

1

Introduction & Learning Objectives

Learning Objectives Formulate a testable hypothesis for a given computer science problem. Differentiate between independent, dependent, and confounding variables in a computational experiment. Design a controlled experiment to evaluate the performance of an algorithm or system. Compare and contrast experimental, quasi-experimental, and observational research designs. Identify potential threats to internal and external validity in a research study. Select appropriate metrics for measuring system performance, user experience, or algorithm efficiency. How does a company like Netflix *know* that changing a button's color from red to blue will increase user engagement? 🤔 They don't guess; they use research design! This lesson will introduce you to the structured proce...
2

Key Concepts & Vocabulary

TermDefinitionExample HypothesisA precise, testable statement about the expected outcome of a study. It proposes a relationship between variables.Null Hypothesis (H0): 'There is no significant difference in average execution time between QuickSort and MergeSort on arrays of 10,000 integers.' Alternative Hypothesis (H1): 'MergeSort will have a significantly lower average execution time than QuickSort on arrays of 10,000 integers.' Independent Variable (IV)The variable that the researcher manipulates or changes to observe its effect on another variable.In a study comparing two search algorithms, the Independent Variable is the 'type of search algorithm' used (e.g., Binary Search vs. Linear Search). Dependent Variable (DV)The variable that is measured or tested...
3

Core Syntax & Patterns

The Controlled Experiment Pattern 1. Formulate Hypothesis -> 2. Randomly Assign to Control/Experimental Groups -> 3. Manipulate Independent Variable for Experimental Group -> 4. Measure Dependent Variable for all groups -> 5. Analyze Results Use this pattern when you can directly control and manipulate the independent variable to determine a cause-and-effect relationship. It is the gold standard for testing hypotheses, such as whether a new caching strategy improves server response time. The A/B Testing Design Pattern 1. Define Goal Metric (e.g., click-through rate) -> 2. Create Control (A) and Variant (B) -> 3. Randomly serve A or B to users -> 4. Collect data until statistical significance is reached -> 5. Implement the winning version. A specific t...

4 more steps in this tutorial

Sign up free to access the complete tutorial with worked examples and practice.

Sign Up Free to Continue

Sample Practice Questions

Challenging
A company wants to prove its new AI pair programmer, 'CodePal,' increases productivity. They give CodePal to their 10 senior developers and compare their output to the 10 junior developers who do not have CodePal. They find the senior developers are 50% more productive. What is the most critical combination of flaws in this research design?
A.Selection bias and a major confounding variable (developer experience).
B.Lack of a dependent variable and an invalid hypothesis.
C.The sample size is too small and the study lacks external validity.
D.Confusing correlation with causation and using an inappropriate statistical test.
Challenging
You have created a new lossless compression algorithm, 'ZipZap'. To conduct a robust experimental study proving its superiority over the standard 'Gzip', which set of variables and controls is most crucial?
A.IV: Compression algorithm (ZipZap vs. Gzip); DV: User satisfaction; Control: Run tests on different computers.
B.IV: Compression algorithm (ZipZap vs. Gzip); DVs: Compression ratio and execution time; Control: Use a standardized, diverse dataset and identical hardware.
C.IV: File size; DV: Compression algorithm used; Control: Use only text files.
D.IV: Hardware configuration; DVs: Compression ratio and algorithm name; Control: Use only the ZipZap algorithm.
Challenging
An observational study surveys 1000 users of a new app, 'ZenApp', and 1000 users of an old app, 'TaskMaster', finding ZenApp users report higher happiness. Why does this design's lack of random assignment severely threaten the internal validity of the conclusion that 'ZenApp causes happiness'?
A.The sample size of 2000 is not large enough to draw any conclusions.
B.Happiness is a subjective metric and cannot be a dependent variable.
C.Users self-selected which app to use, introducing potential confounding variables related to user personality or lifestyle.
D.The study should have been an A/B test instead of a survey.

Want to practice and check your answers?

Sign up to access all questions with instant feedback, explanations, and progress tracking.

Start Practicing Free

More from Research Methods

Ready to find your learning gaps?

Take a free diagnostic test and get a personalized learning plan in minutes.