Skip to content

Comments

completed the assignment#1

Open
Fooroogh-RM wants to merge 2 commits intomainfrom
assignment-1
Open

completed the assignment#1
Fooroogh-RM wants to merge 2 commits intomainfrom
assignment-1

Conversation

@Fooroogh-RM
Copy link
Owner

@Fooroogh-RM Fooroogh-RM commented Jan 4, 2026

git add 02_activities/assignments/a1_sampling_and_reproducibility.ipynb

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

added explanations and one line to the code

What did you learn from the changes you have made?

to increase reproducibility.

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

no other approach

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

yes. the graph kept changing and was difficult to interpret

How were these changes tested?

on VS

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

Checklist

  • I can confirm that my changes are working as intended

git add 02_activities/assignments/a1_sampling_and_reproducibility.ipynb
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.

Great start! Can you split your Q1 answer into these 4 specific sampling stages?

Step 1: Setting Up the DataFrame
Function Used: pd.DataFrame
Sample Size: 1000 individuals
Sampling Frame: The entire population of event attendees, consisting of two event types: weddings and brunches.
Procedure:
The script creates a DataFrame representing 1000 individuals attending events.
200 individuals are assigned to weddings, and 800 to brunches.
Underlying Distribution: Deterministic allocation (200 weddings, 800 brunches).

Step 2: Infecting Random Subset
Function: np.random.choice(...)
Frame? Sample size? (hint: ATTACK_RATE × 1000)

Step 3: Primary Contact Tracing
Function: np.random.rand(...)
Frame? Expected sample size?

Step 4: Secondary Contact Tracing
Functions: value_counts() + threshold
Random or deterministic?

Q3: Can you describe the changes you see when you add seed to the code?

@anjali-deshpande-hub
Copy link

A friendly reminder to complete the requested review changes. Thanks!

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