Ryan C Cooper
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ```python import numpy as np import matplotlib.pyplot as plt from numpy.random import default_rng plt.style.use('fivethirtyeight') ``` # HW_05 - Customer wait time In the [waiting for bus](./bus_wait.ipynb) example, we saw a difference between how long we expect the bus interval to be vs how long we _experience_ a bus interval to be. Now, consider creating parts on demand for customers. We'll take an example of [folding a paper airplane](https://hackmd.io/@cooperrc/HkISHYNrC/edit). We need some data to start: 1. Follow the paper airplane instructions and make one airplane 2. Edit the instructions to make it easier to follow 3. With your new process: time yourself making one airplane at-a-time and make 5 or 6 airplanes 4. With one hand, try to make a paper airplane and time the process (time process this at least 2 times) ## What is this data meant to show We, engineers, often prescribe processes and procedures that seem to make sense, but can ignore the people that need to do the work. The process of create-try-edit-repeat should be an integral part of your writing and design process. The one-handed folding procedure could simulate many scenarios: - someone multitasking - someone with an injury/unuseable hand - anything else? When we consider a process, its important to think about the different people that are required to make the process happen. ## Next steps With your times recorded, you can use the average and standard deviations to find the times when parts will be ready as a function of time. Use the difference between the predicted and observed cumulative distribution functions to predict how long your customers will have to wait on paper airplanes. ```python fold_01 = np.array([45, 55, 30, 35, 40]) fold_02 = np.array([75, 90]) print(np.mean(fold_01), np.std(fold_01)) print(np.mean(np.hstack([fold_01, fold_02])), np.std(np.hstack([fold_01, fold_02]))) ``` 41.0 8.602325267042627 52.857142857142854 20.503857277724748 ```python N_assemblies = 1000 avg_part_time = 52.9 #np.mean(fold_01) part_ready = np.arange(1, N_assemblies+1)*avg_part_time rng = default_rng(42) std_part_time = 20.5 #np.std(fold_01) part_ready += rng.normal(loc = 0, scale = std_part_time, size = N_assemblies) part_ready.sort() plt.hist(np.diff(part_ready), density=True) plt.xlabel('time between parts (sec)') ``` Text(0.5, 0, 'time between parts (sec)') ![output_3_1](https://hackmd.io/_uploads/Sy-KqfGI0.png) ```python part_time_diff = np.diff(part_ready) count, bins_count = np.histogram(part_time_diff, bins=50) pdf = count / sum(count) cdf = np.cumsum(pdf) plt.plot(bins_count[1:], cdf) plt.hlines([0, 0.25, 0.5, 0.75, 1], 0, 100, alpha = 0.2, colors = 'r') plt.title('Cumulative Distribution of part intervals') plt.ylabel('relative count') plt.xlabel('seconds between parts') ``` Text(0.5, 0, 'seconds between parts') ![output_4_1](https://hackmd.io/_uploads/BJWs5MMIA.png) ```python num_people = 500 people_arrival = rng.random(num_people)*N_assemblies*avg_part_time ``` ```python person_wait = np.zeros(len(people_arrival)) obs_part_interval = np.zeros((len(part_ready), 2)) for i, part_time in enumerate(part_ready[:-1]): people_get_part = np.size(people_arrival[ np.logical_and(people_arrival>=part_time, people_arrival<part_ready[i+1])]) obs_part_interval[i, 0] = part_ready[i+1] - part_time obs_part_interval[i, 1] = people_get_part ``` ```python obs_part_interval = obs_part_interval[obs_part_interval[:, 0].argsort()] ``` ```python plt.plot(bins_count[1:], cdf, label = 'CDF measured' ) cdf_obs = np.cumsum(obs_part_interval[:, 1])/num_people plt.plot(obs_part_interval[:, 0], cdf_obs, 'r-', label = 'CDF observed') plt.hlines([0, 0.25, 0.5, 0.75, 1], 0, 100, alpha = 0.2, colors = 'r') plt.title('Cumulative Distribution of part intervals') plt.ylabel('relative count') plt.xlabel('minutes between parts') ``` Text(0.5, 0, 'minutes between parts') ![output_8_1](https://hackmd.io/_uploads/ryehqMMLR.png) This report examines the customer wait time in a simulated paper airplane production environment. The primary focus is on understanding the variability in production times and its impact on customer wait times. This simulation is a proof-of-concept for manufacturing process analysis. In this report, we create and modify the process for making paper airplanes. We measure the time taken to complete paper airplanes under two conditions two-handed assembly and one-handed assembly. One-handed assembly simulates multitasking or physical disability. First, a baseline was created by making one paper airplane according to standard instructions. The guidelines were then revised to improve their readability and clarity. Then, using the revised instructions, five to six airplanes were built, with each assembly timed to collect data on the new procedure. The assemblies were timed 5 and 2 times for two-handed and one-handed procedures. ---- _End of Youtube edits_ ---- Initial Data Collection: I recorded the times taken to fold paper airplanes in five iterations: 138, 128, 126, 107, and 104 seconds. The average time per airplane was calculated to be approximately 120.6 seconds with a standard deviation of 13 seconds. The code uses a base value of 1000 assemblies for when the airplanes would be ready. The time for each airplane was determined as ff×2.00217 where ff is the airplane’s sequence number. To simulate realistic production conditions, there is normally distributed noise in the part ready times with a standard deviation of 13 seconds (converted to minutes). Then, the simulated 500 customers arrived randomly over the production period. Each customer’s arrival time was generated uniformly across the total production time. The interval between consecutive airplane completions and the number of customers arriving within each interval is calculated. Each customer’s wait time was determined by the difference between their arrival time and the next available airplane completion time. CDF of Measured Part Intervals: The intervals between airplane completions were used to calculate a probability density function (PDF) and a CDF, providing a distribution of part intervals over time. The observed part intervals were sorted, and the cumulative number of customers receiving airplanes within these intervals was used to calculate the observed CDF. I compared the measured and observed CDFs to evaluate the accuracy of the production predictions and understand the impact of variability on customer wait The paper airplane folding experiment underscores a fundamental principle in engineering design: the importance of considering the human factor in process development. It reveals that theoretical efficiency can lead to different practical outcomes. Engineers must understand the human context in which their creations operate, ensuring designs are not only technically sound but also universally beneficial. By incorporating this holistic approach, engineers ensure their designs are robust, user-friendly, and adaptable to diverse user needs. Embracing comprehensive design thinking not only leads to better systems but also fosters innovation and inclusivity, proving indispensable in practical applications. This method ensures that engineering solutions are effective in real-world settings, meeting the diverse requirements of all users and making processes more accessible and efficient. ```python ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully