Open
Conversation
anjali-deshpande-hub
approved these changes
Dec 12, 2025
anjali-deshpande-hub
left a comment
There was a problem hiding this comment.
Well done! Everything looks good except one small thing.
I saw that you chose a random sample of 40 and then bootstrapped the subset instead of using the entire dataset, which wasn't required. Bootstrapping a random sub-sample of the population inflates uncertainty because your initial 40 may not fully represent the whole dataset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I inputted my own code and written answers in the designated sections of the
assignment_3.ipnybnotebook. Specifically, I applied k-means clustering on the wine dataset from Scikit Learn to identify patterns among the features and applied bootstrapping on the same dataset to estimate the mean color intensity of the wine. I also answered questions in prose regarding standardization, pattern recognition, ideal cluster numbers, confidence intervals, and estimate stability/reliability.What did you learn from the changes you have made?
I learned how to run an algorithm to visualize pair-wise associations for features in a dataset, as well as how to apply a clustering and bootstrapping algorithm in Python. Most of my statistical background is in R so it was neat seeing the parallels in how these techniques are coded.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
There was no other approach that I was thinking of using for answering these questions, as these were relatively straightforward prompts.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
I did not encounter any challenges apart from confusion as to why the
set.seed()function was placed after defining the variable for the bootstrap means in the original assignment notebook. I was also confused as to whether the instructors wanted an array of bootstrap means or if they wanted a point estimate that would be the average of all bootstrap means. I just assumed the latter option given that an f-string was used.How were these changes tested?
I re-ran the cells after adding an additional line of code, and iteratively revised the code as needed.
A reference to a related issue in your repository (if applicable)
Checklist