Skip to content

Conversation

@AnthoniaAina
Copy link
Owner

Submitting Assignment 1

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

Added comments to the code and modified the script

What did you learn from the changes you have made?

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

How were these changes tested?

A reference to a related issue in your repository (if applicable)

Checklist

  • I can confirm that my changes are working as intended

Copy link

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please give answers to the questions in the assignment. Thank you.

@AnthoniaAina
Copy link
Owner Author

AnthoniaAina commented Jan 8, 2026 via email

@anjali-deshpande-hub
Copy link

Yes please! Can you write the answers to Q1, Q2 and Q3 below the questions.

For Q1, you can list the stages. For example:
Step 1: Setting Up the DataFrame
Function Used: pd.DataFrame
Sample Size: 1000 individuals
Sampling Frame: ...
Procedure: ...
Underlying Distribution: ...

Step 2: Infecting a Random Subset of Individuals
Function Used: np.random.choice
Sample Size: 10% of the population (100 individuals), as defined by the ATTACK_RATE.
Sampling Frame: ...
Procedure:...
Underlying Distribution: ...

Step 3:

Step 4:

Copy link

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

Following are the list of discrepancies found:
Q1: Step 1 - Its not sampling. It creates the target population. Its population definition: Fixed 200 wedding + 800 brunch attendees
Step 3 - Sample size - ~20 total from 100 infected via Bernoulli(p=0.20), frame = infected only
Step 4- Its not cluster sampling. Its deterministic - All infected at events with ≥2 primary traces get traced.
Step 5 - Not a sampling stage, it estimates distribution

@AnthoniaAina
Copy link
Owner Author

AnthoniaAina commented Jan 12, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants