{"id":25535576,"url":"https://github.com/shaikats/python-assignment","last_synced_at":"2026-05-09T10:24:57.018Z","repository":{"id":277039123,"uuid":"931134677","full_name":"Shaikats/Python-Assignment","owner":"Shaikats","description":"Simulation and Modeling Lab assignments using Python, NumPy, Matplotlib, and Jupyter Notebook.","archived":false,"fork":false,"pushed_at":"2025-02-19T08:58:25.000Z","size":271,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T09:35:00.092Z","etag":null,"topics":["jupyter-notebook","matplotlib","numpy","python","simulation-modeling"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shaikats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T19:16:28.000Z","updated_at":"2025-02-19T08:58:28.000Z","dependencies_parsed_at":"2025-02-11T20:37:02.156Z","dependency_job_id":null,"html_url":"https://github.com/Shaikats/Python-Assignment","commit_stats":null,"previous_names":["shaikats/python-assignment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaikats%2FPython-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaikats%2FPython-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaikats%2FPython-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaikats%2FPython-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shaikats","download_url":"https://codeload.github.com/Shaikats/Python-Assignment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774627,"owners_count":19694790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jupyter-notebook","matplotlib","numpy","python","simulation-modeling"],"created_at":"2025-02-20T04:22:02.618Z","updated_at":"2026-05-09T10:24:57.004Z","avatar_url":"https://github.com/Shaikats.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💻 Simulation \u0026 Modeling Lab – Assignment Repository\n\n## 👤 **Personal Information**\n**Name:** Shahriar Hossain Shaikat  \n**ID:** 2215151034  \n**University:** UITS (University of Information Technology and Sciences)  \n**Department:** Computer Science and Engineering (CSE)  \n**Batch:** 51  \n**Section:** 7A2  \n\n## 📖 **Course Details**\n**Course Code:** CSE 413  \n**Course Name:** Simulation and Modeling Lab  \n**Course Teacher:** Audity Ghosh  \n\n---\n## 📂 **Assignments**\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003e📊 Assignment 1: Data Visualization and Matrix Operations\u003c/strong\u003e\u003c/summary\u003e\n\n### 📝 Tasks\n1. Generate two vectors with 15 random floats, plot them, and label axes.\n2. Create a 4x4 random matrix, visualize as a heatmap, and label rows/columns.\n3. Generate two 4x4 matrices, perform arithmetic operations, visualize with bar plots.\n\n### 📌 Concepts Covered\n- Random number generation\n- Data visualization with Matplotlib\n- Matrix operations with NumPy\n- Heatmap visualization\n- Bar plot representation of matrix computations\n\n📂 **[View Assignment 1](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-01.ipynb)**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003e🎲 Assignment 2: Random Matrix Generation\u003c/strong\u003e\u003c/summary\u003e\n\n### 📝 Tasks\n1. Use NumPy to create a 3×3 matrix of random integers between 1 and 50.  \n2. Run the code twice:  \n   - Without setting a seed, allowing random values to change each time.  \n3. Observe and explain the differences in outputs (in a different cell as text).\n\n### 📌 Concepts Covered\n- Random integer matrix generation\n- Effects of using fixed seeds in random number generation\n\n📂 **[View Assignment 2](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-02.ipynb)**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003e📊 Assignment 3: Statistical Analysis and Hypothesis Testing\u003c/strong\u003e\u003c/summary\u003e\n\n### 📝 Tasks\n1. **Task 1:** Calculate the t-statistic and p-value for a sample of data and a hypothesized mean.\n2. **Task 2:** Interpret the results and visualize the sample mean against the hypothesized mean using a bar plot with error bars.\n\n### 📌 Concepts Covered\n- T-statistic and p-value calculation\n- Hypothesis testing\n- Data visualization (Bar plot, Error bars)\n\n📂 **[View Assignment 3](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-03.ipynb)**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003e🎲 Assignment 4: Normal Distribution and Two-Sample t-Test\u003c/strong\u003e\u003c/summary\u003e\n\n### 📝 Tasks\n1. **Task 1:** Randomly generate 50 values from a normal distribution with a chosen mean (μ1) and standard deviation.\n2. **Task 2:** Randomly generate 50 values from a normal distribution with a different mean (μ2) and standard deviation.\n3. **Task 3:** Perform a two-sample t-test to check if the means of the two samples are significantly different.\n4. **Task 4:** Visualize the comparison using a boxplot.\n\n### 📌 Concepts Covered\n- Normal distribution sampling\n- Two-sample t-test (Welch's test)\n- Boxplot visualization\n\n📂 **[View Assignment 4](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-04.ipynb)**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003e📊 Assignment 5: One-Sample Kolmogorov-Smirnov Test on Daily Temperatures\u003c/strong\u003e\u003c/summary\u003e\n\n### 📝 Tasks\n1. Load the dataset of daily temperatures.\n2. Extract temperature scores for analysis.\n3. Center and scale the data for normal comparison.\n4. Perform One-Sample K-S Test.\n5. Output the hypothesis test result, p-value, and KS statistic.\n6. Plot the empirical CDF vs the normal CDF.\n7. Write a conclusion.\n\n### 📌 Concepts Covered\n- Kolmogorov-Smirnov test\n- Hypothesis testing for distribution fitting\n- Empirical vs theoretical cumulative distribution comparison\n\n📂 **[View Assignment 5](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-05.ipynb)**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003e📊 Assignment 6: Monte Carlo Simulation \u0026 Queueing System Analysis\u003c/strong\u003e\u003c/summary\u003e\n\n### 📝 Tasks\n#### ✍️ Situation 2 (Monte Carlo Simulation):\nSimulate inventory behavior of LatinOrg Inc. over 60 weeks.\n- a) Estimate average order size.\n- b) Calculate average total cost of having the product.\n\n#### ⌚ Single Server Queueing:\n1. Perform a simulation for 200 customers with λ=3 and μ=4. Compare waiting time and server utilization.\n2. Simulate a system with λ=8 and μ=6. Discuss impact of server overload.\n3. Modify queue with limited capacity (max 10 customers). Analyze performance impact.\n\n### 📌 Concepts Covered\n- Monte Carlo Simulation\n- Inventory cost modeling\n- Queue theory (M/M/1)\n- Server utilization, queue length, and system performance\n\n📂 **[View Assignment 6](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-06.ipynb)**\n\n\u003c/details\u003e\n\n## 📂 **Assignment Links**  \n\n[![Assignment 1](https://img.shields.io/badge/🔗%20Assignment%201%20-Click%20Here-blue?style=for-the-badge)](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-01.ipynb)  \n[![Assignment 2](https://img.shields.io/badge/🔗%20Assignment%202%20-Click%20Here-blue?style=for-the-badge)](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-02.ipynb)  \n[![Assignment 3](https://img.shields.io/badge/🔗%20Assignment%203%20-Click%20Here-blue?style=for-the-badge)](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-03.ipynb)  \n[![Assignment 4](https://img.shields.io/badge/🔗%20Assignment%204%20-Click%20Here-blue?style=for-the-badge)](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-04.ipynb)  \n[![Assignment 5](https://img.shields.io/badge/🔗%20Assignment%205%20-Click%20Here-blue?style=for-the-badge)](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-05.ipynb)  \n[![Assignment 6](https://img.shields.io/badge/🔗%20Assignment%206%20-Click%20Here-blue?style=for-the-badge)](https://github.com/Shaikats/Python-Assignment/blob/main/assignment-06.ipynb)  \n\n---\n\n## 🎯 **What I Learned**\n- How to generate and manipulate random numerical data in Python.\n- Effective use of Matplotlib for visualizing mathematical operations.\n- Understanding of matrix operations and their effects.\n- Hypothesis testing with t-statistics, p-values, and K-S test.\n- Best practices for structuring a professional GitHub repository.\n- Inventory simulation and queue performance modeling with Monte Carlo.\n\n---\n\n## ⚡ **Run This in Google Colab**\n\n1. Download the `.ipynb` File or Clone the repository:\n    ```bash\n    git clone https://github.com/shaikats/Simulation-and-Modeling-Lab.git\n    ```\n2. Open [Google Colab](https://colab.research.google.com/).\n3. Click on **\"File\" \u003e \"Upload Notebook\"** and select the `.ipynb` file, or create a new notebook and Paste the Code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikats%2Fpython-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaikats%2Fpython-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikats%2Fpython-assignment/lists"}