<?xml version="1.0" encoding="utf-8" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:tt="http://teletype.in/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"><title>Kamrun Nahar</title><author><name>Kamrun Nahar</name></author><id>https://teletype.in/atom/iknahar</id><link rel="self" type="application/atom+xml" href="https://teletype.in/atom/iknahar?offset=0"></link><link rel="alternate" type="text/html" href="https://teletype.in/@iknahar?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=iknahar"></link><link rel="next" type="application/rss+xml" href="https://teletype.in/atom/iknahar?offset=10"></link><link rel="search" type="application/opensearchdescription+xml" title="Teletype" href="https://teletype.in/opensearch.xml"></link><updated>2026-05-18T07:40:23.241Z</updated><entry><id>iknahar:scatter-plots</id><link rel="alternate" type="text/html" href="https://teletype.in/@iknahar/scatter-plots?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=iknahar"></link><title>3.2 Scatter Plot</title><published>2023-05-31T13:04:24.869Z</published><updated>2023-05-31T13:22:30.944Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img2.teletype.in/files/57/d7/57d74f7e-ed75-49cd-a6ec-1d41438cb4a6.png"></media:thumbnail><category term="math-for-data-science-masterclass" label="Math for Data Science Masterclass"></category><summary type="html">&lt;img src=&quot;https://img3.teletype.in/files/2f/c6/2fc64620-5959-4cee-ba7c-6638fba7b763.jpeg&quot;&gt;There is trend line in the scatter plots. And the formula of a line in alzebra is:</summary><content type="html">
  &lt;figure id=&quot;I6Gq&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img3.teletype.in/files/2f/c6/2fc64620-5959-4cee-ba7c-6638fba7b763.jpeg&quot; width=&quot;1200&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;yNFk&quot;&gt;There is trend line in the scatter plots. And the formula of a line in alzebra is:&lt;/p&gt;
  &lt;p id=&quot;TxXX&quot;&gt;y = mx + c&lt;/p&gt;
  &lt;p id=&quot;XmtJ&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;Qw0y&quot;&gt;Here, &lt;/p&gt;
  &lt;figure id=&quot;NQeb&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/12/af/12afd433-0e42-4d6d-926e-678e639bd05b.png&quot; width=&quot;242&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;IT7R&quot;&gt;m is the slope, &lt;/p&gt;
  &lt;p id=&quot;ijAP&quot;&gt;m (higher value) - the increase is faster&lt;/p&gt;
  &lt;p id=&quot;2jkn&quot;&gt;m (lower value) - the increase is slower, the change is not rapid&lt;/p&gt;
  &lt;p id=&quot;6Dvt&quot;&gt;m (negative) - the value is going downward&lt;/p&gt;
  &lt;p id=&quot;Mr5B&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;T12o&quot;&gt;m value 7 means, every 1 item you add on the x axis, you should add 7 unit more to the y axis.  &lt;/p&gt;

</content></entry><entry><id>iknahar:data-visualization</id><link rel="alternate" type="text/html" href="https://teletype.in/@iknahar/data-visualization?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=iknahar"></link><title>3.1 Visualization of Data</title><published>2023-05-31T10:12:26.297Z</published><updated>2023-05-31T13:02:49.060Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img1.teletype.in/files/8c/49/8c499615-d174-4f04-8386-fb5e280b0229.png"></media:thumbnail><category term="math-for-data-science-masterclass" label="Math for Data Science Masterclass"></category><summary type="html">&lt;img src=&quot;https://img1.teletype.in/files/86/d0/86d04022-136e-46eb-bba3-1cfe6281a550.jpeg&quot;&gt;Visualizing data is a key aspect of data science!</summary><content type="html">
  &lt;figure id=&quot;RZtH&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/86/d0/86d04022-136e-46eb-bba3-1cfe6281a550.jpeg&quot; width=&quot;1200&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;vnTL&quot;&gt;Visualizing data is a key aspect of data science!&lt;/p&gt;
  &lt;p id=&quot;m3El&quot;&gt;It’s important to be able to convey information to others, especially people who may not have the full technical knowledge or understanding to view the raw data or statistical analysis.&lt;/p&gt;
  &lt;p id=&quot;bVUj&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;faFS&quot;&gt;As we continue learning about data visualization, you should always keep in mind:&lt;/p&gt;
  &lt;section style=&quot;background-color:hsl(hsl(24,  24%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;3zcO&quot;&gt;“What is the information I want to share or story I am trying to tell? How does this visualization help in conveying that information to others?”&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;lIS6&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;eWFA&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;RXl4&quot;&gt;&lt;strong&gt;Data visualization is especially crucial in organizations because often decisions are made based on a final visualization or interpretation of the data.&lt;/strong&gt;&lt;/p&gt;
  &lt;figure id=&quot;vVu3&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh5.googleusercontent.com/__T0i18beBE0nYVQRe6GwPhDwZH-kYxZUOVm0fjqNxbJe8t8UaN6q5i5wXxIANd_TCU8T-H0ujUl_3hlq9HO2_Eg1B4kjtzPSevt7ks5K6L8BhqwrO1EgrHAqabfdB_t1F8zoQkU3Earc1Wp3-aBfoUj=nw&quot; width=&quot;1013&quot; /&gt;
  &lt;/figure&gt;
  &lt;section style=&quot;background-color:hsl(hsl(323, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h2 id=&quot;UcXW&quot;&gt;&lt;strong&gt;Remember that the purpose of data science at an enterprise level is to use it to make key decisions and improve products or services!&lt;/strong&gt;&lt;/h2&gt;
  &lt;/section&gt;
  &lt;p id=&quot;jXoE&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;X6zO&quot;&gt;To understand which data visualization to use, let’s have a quick tour of the different data visualizations categories we’ll cover in this section:&lt;/p&gt;
  &lt;ul id=&quot;aEpm&quot;&gt;
    &lt;li id=&quot;wGvp&quot;&gt;&lt;a href=&quot;#yXqp&quot;&gt;Scatter Plots&lt;/a&gt;&lt;/li&gt;
    &lt;li id=&quot;UNET&quot;&gt;&lt;a href=&quot;#lLbd&quot;&gt;Line Plots&lt;/a&gt;&lt;/li&gt;
    &lt;li id=&quot;Oifq&quot;&gt;&lt;a href=&quot;#hcbd&quot;&gt;Distribution Plots&lt;/a&gt;&lt;/li&gt;
    &lt;li id=&quot;lyAu&quot;&gt;&lt;a href=&quot;#TYvY&quot;&gt;Categorical Plots&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;p id=&quot;CT6t&quot;&gt;&lt;/p&gt;
  &lt;section style=&quot;background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;yXqp&quot;&gt;Scatter Plots&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;rXHH&quot;&gt;A typical scatter plot will represent 2 dimensions (data features). For example, the height vs. weight of a group of people. A scatter plot can &lt;u&gt;&lt;em&gt;reveal&lt;/em&gt;&lt;/u&gt; relationships between two data features.  &lt;/p&gt;
  &lt;p id=&quot;2jTY&quot;&gt;&lt;strong&gt; Imagine the following data set:&lt;/strong&gt;&lt;/p&gt;
  &lt;figure id=&quot;HxCb&quot; class=&quot;m_column&quot; data-caption-align=&quot;center&quot;&gt;
    &lt;img src=&quot;https://lh5.googleusercontent.com/xoF0JJEenavntQ8rIOxJnr_G8B7CGVpY4qyLYDDGF68HYN_Ft5wQSEchMogq3SGIY5oDAI7FlLoHBXH9v0D7w20XiWt_aucAGdWjTe1azfohG0cFWxyKgpkn-nVWwhKuhql03T3lSRUJEsRc6i3Ph-nO=nw&quot; width=&quot;690&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;DjLj&quot;&gt;&lt;strong&gt;Is there a relationship between tip and bill? &lt;/strong&gt;&lt;/p&gt;
  &lt;p id=&quot;3lHk&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;KeM2&quot; data-align=&quot;center&quot;&gt;x Axis এ টোটাল বিল &lt;/p&gt;
  &lt;p id=&quot;HQyu&quot; data-align=&quot;center&quot;&gt;y- axis এ টিপ চিহ্নিত করি। &lt;/p&gt;
  &lt;figure id=&quot;8Xjm&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img3.teletype.in/files/e9/ab/e9ab51ed-23a4-4465-b3e7-0a0096025fb5.png&quot; width=&quot;418&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;48cY&quot;&gt;ডাটা বসিয়ে আমরা দেখতে পাই এমনঃ&lt;/p&gt;
  &lt;figure id=&quot;fdWS&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/be/90/be90efb0-0641-4ba8-a312-043e5c7a298a.png&quot; width=&quot;399&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;dAxE&quot;&gt;এখান থেকে আমরা বলতে পারিঃ &lt;strong&gt;Tip tends to increase as Total Bill increases. &lt;/strong&gt;&lt;/p&gt;
  &lt;p id=&quot;Us4w&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;5f3z&quot;&gt;Now, &lt;/p&gt;
  &lt;p id=&quot;8bcw&quot;&gt;We can add a trend line (or regression line, or best fit line, or least squares line). &lt;/p&gt;
  &lt;figure id=&quot;oF48&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img3.teletype.in/files/ab/55/ab551f2b-b426-4441-9d88-634b8391ffc5.png&quot; width=&quot;404&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;bYRN&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;70Vq&quot;&gt;ট্রেন্ড লাইনটি স্ক্যাটার প্লটের ডেটা পয়েন্টগুলির উপরে আঁকা হয় এবং এর উদ্দেশ্য হলো ডেটার সাধারণ প্রবণতা বা প্রবণতার উপরে নজর দেয়া। এটি ভবিষ্যতের ডেটা পয়েন্টগুলি উপর নজর রাখতে বা আনুমানিক প্রতিষ্ঠান করতে ব্যবহৃত হয় যা দেখা যায় পর্যাপ্ত প্রবণতায়।&lt;/p&gt;
  &lt;p id=&quot;FvdW&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;fmGj&quot;&gt;&lt;/p&gt;
  &lt;figure id=&quot;PhSr&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img3.teletype.in/files/a6/c8/a6c8b945-6aae-4e33-8f8e-9491147470d0.png&quot; width=&quot;721&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;LZMr&quot;&gt;In most plotting libraries or software, you can set the alpha value to a decimal between 0 and 1, where 0 represents completely transparent and 1 represents fully opaque. By reducing the alpha value, you can make the stacked scatter points appear more transparent, allowing underlying points or patterns to be visible.&lt;/p&gt;
  &lt;p id=&quot;sJKJ&quot;&gt;Here&amp;#x27;s an example using Python&amp;#x27;s Matplotlib library:&lt;/p&gt;
  &lt;pre id=&quot;37Fa&quot;&gt;import matplotlib.pyplot as plt&lt;/pre&gt;
  &lt;pre id=&quot;NJ1w&quot;&gt;# Generate example data
x = [1, 2, 3, 4, 5]
y = [10, 20, 30, 40, 50]
stacked_values = [5, 15, 25, 35, 45]&lt;/pre&gt;
  &lt;pre id=&quot;Y3oz&quot;&gt;# Plotting scatter points with transparency
plt.scatter(x, y, c=&amp;#x27;blue&amp;#x27;, alpha=0.5)
plt.scatter(x, stacked_values, c=&amp;#x27;red&amp;#x27;, alpha=0.5)&lt;/pre&gt;
  &lt;pre id=&quot;MtJh&quot;&gt;plt.xlabel(&amp;#x27;X&amp;#x27;)
plt.ylabel(&amp;#x27;Y&amp;#x27;)
plt.title(&amp;#x27;Stacked Scatter Points with Transparency&amp;#x27;)&lt;/pre&gt;
  &lt;pre id=&quot;wlj5&quot;&gt;plt.show()
&lt;/pre&gt;
  &lt;p id=&quot;YUjp&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;YMwJ&quot;&gt;In this example, two scatter plots are created: one for the original data points (blue) and another for the stacked points (red). The &lt;code&gt;alpha&lt;/code&gt; parameter is set to 0.5 for both scatter plots, making them semi-transparent.&lt;/p&gt;
  &lt;p id=&quot;33fD&quot;&gt;Adjust the &lt;code&gt;alpha&lt;/code&gt; value according to your desired level of transparency.&lt;/p&gt;
  &lt;p id=&quot;niYp&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(55,  86%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;lLbd&quot;&gt;Line Plots&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;vjJz&quot;&gt;Sometimes we already know there should be a continuous relationship between points along an axis. This is where we can use a simple line to indicate a known relationship between points along a data feature.&lt;/p&gt;
  &lt;figure id=&quot;8g7p&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh4.googleusercontent.com/nPm9ti3LKbvSWAiCRtbKQGioow_8eLgH8pvjV0ybd7_tgGy4aQr8ylWL3XkXgxkmcOT5kdQ_bSOa3eMqsbz-Y6mIOLs2HqWcnijXhmDtkjvE-ymHS5GTBFF6L-mTaOqpgT2p1r2g9-KYOLe3JmUHQQQD_A=nw&quot; width=&quot;796&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;DMQF&quot;&gt;&lt;strong&gt;For example, in our previous example, it would not make sense to draw a line between the points!&lt;/strong&gt;&lt;/p&gt;
  &lt;p id=&quot;d9zs&quot;&gt;কারণ শনিবারের লাঞ্চে আসা লোকটার সাথে রবিবার রাতে ডিনারে আসার লোকটার সাথে কোন সম্পর্ক নাই এই জন্যই এই পার্টিকুলার case এর জন্য লাইন প্লট একদমই ইউজ করা উচিত না। &lt;/p&gt;
  &lt;p id=&quot;pkDi&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;rHH9&quot;&gt;So when is a line plot appropriate?&lt;/p&gt;
  &lt;p id=&quot;uxRq&quot;&gt;When we already know for certain there is a continuous relationship between data points along a feature. For example, timestamps. We know for certain there are continuous times in between each time stamped point.&lt;/p&gt;
  &lt;figure id=&quot;7Dlc&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh5.googleusercontent.com/b8aWVsFAgAW4EMneVWJu_IxrbzaqPktzdCHde0mhP6nEdl3u8OWg-JjmtdCkbNHP4ypDwQTbX4_NAVXJrE1ueMlzDzqHiaW-X7WoMcDGGbOW_OT0WUh813GiDTY5bxx4RjcDhJOAmyKBJAptl3PsrF5i=nw&quot; width=&quot;357&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;EzDP&quot;&gt;We know flights occurred between years! &lt;/p&gt;
  &lt;figure id=&quot;6BvP&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh6.googleusercontent.com/0jjvtcSnTb5jvS0ljje1-KE_cIBNImZWC89JtFhEJrSLaFOzjnD2oE57zL7Pm8A1vGY4oEETvX-i0uZZrJHLOIMILoGvlc2-D8m4zZhX4BYhkYvUahwSoLzCwKQxwPaO8V7qcmvM_o9KM4RfbV8Ukamu2Q=nw&quot; width=&quot;810&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;CU0n&quot;&gt;&lt;strong&gt;A line indicates that continuous knowledge.&lt;/strong&gt;&lt;/p&gt;
  &lt;figure id=&quot;Sr5p&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh5.googleusercontent.com/GsUGPFzp2GAC7Xf_I5V_o_nV4SfJ5UkLdzVznIqS_cP1orCyb9XhzFYHyXE0SLqM5BPhC_wcB-nZXaydlBx8rwsvc0VOQ1XfO0p6OFd6aXOP5lGSSrxxBs4YW4oAT-YYa9cOLGdoZC6xuxjesz9E783c3Q=nw&quot; width=&quot;810&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;WBZG&quot;&gt;Line plots also make it easy to stack features:&lt;/p&gt;
  &lt;figure id=&quot;j93N&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh4.googleusercontent.com/RT61Rez5UeWRmTbylkGzViCXTtrpwuIGsmWsaS6_bKYjy9_gGKoQhDUFbD9Rf1r0ZhOC2KBsa1QBu5YuYjI0LjeyWAizxtTbalAmI6k49w2LDXdJf5ZZ87boWYcRVamgE4MnS-4ZETeO62Ez9i0eCqr6Lg=nw&quot; /&gt;
  &lt;/figure&gt;
  &lt;section style=&quot;background-color:hsl(hsl(55,  86%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;hcbd&quot;&gt;Distribution Plots&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;s4O4&quot;&gt;Distribution plots allow us to visualize the dispersion of data across a feature or variable. One of the most common ways to do this is through a histogram.&lt;/p&gt;
  &lt;figure id=&quot;bl5H&quot; class=&quot;m_custom&quot;&gt;
    &lt;img src=&quot;https://lh5.googleusercontent.com/xoF0JJEenavntQ8rIOxJnr_G8B7CGVpY4qyLYDDGF68HYN_Ft5wQSEchMogq3SGIY5oDAI7FlLoHBXH9v0D7w20XiWt_aucAGdWjTe1azfohG0cFWxyKgpkn-nVWwhKuhql03T3lSRUJEsRc6i3Ph-nO=nw&quot; width=&quot;690&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;yjn6&quot;&gt;&lt;strong&gt;What is the distribution of Total Bill amounts?&lt;/strong&gt;&lt;/p&gt;
  &lt;p id=&quot;rh6t&quot;&gt;We could answer this through some statistical metrics:&lt;/p&gt;
  &lt;p id=&quot;XuMg&quot;&gt;Mean Total Bill is $18.79 with a standard deviation is $8.9 with a min value of $3.07 and max value of $50.81.&lt;/p&gt;
  &lt;p id=&quot;U6Df&quot;&gt;A histogram will count the number of occurrences within a range and then create a bar of the height of the count of the occurrences within the range.&lt;/p&gt;
  &lt;p id=&quot;AEg2&quot;&gt;&lt;u&gt;&lt;em&gt;Note how the x-axis feature is continuous, this must be the case for a histogram!&lt;/em&gt;&lt;/u&gt;&lt;/p&gt;
  &lt;figure id=&quot;S5Mi&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh4.googleusercontent.com/t9wUKbx-oKtJcn8mvpyYgn7E3Xc7aba4mM5W2j3VPIEJLzLjJOoovS0PeJyS95q3Qr1q667ScNbM0c_lBIhU1E3r-LQ_GHtsEm-1Tt2MgIzhOGc7reeTm7AatEcK7tABKolPknagWV7rn9MqaT7L4V_aOw=nw&quot; width=&quot;1351&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;Q3kc&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;aynU&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;UVWl&quot;&gt;There are many more types of plots to display distribution, such as box-and-whisker plots and KDE (Kernel Density Estimation) plots, but by far the most common you will encounter is the histogram.&lt;/p&gt;
  &lt;p id=&quot;Sjbh&quot;&gt;&lt;/p&gt;
  &lt;ol id=&quot;dqm7&quot;&gt;
    &lt;li id=&quot;36k3&quot;&gt;Distribution plots:&lt;/li&gt;
    &lt;ul id=&quot;pH7W&quot;&gt;
      &lt;li id=&quot;1Xp5&quot;&gt;Suppose you have a dataset that contains customer ratings for three different product categories: electronics, clothing, and home appliances. The ratings range from 1 to 5, where 1 represents low satisfaction and 5 represents high satisfaction.&lt;/li&gt;
      &lt;li id=&quot;OBc5&quot;&gt;To analyze the distribution of ratings for each product category, you can create histograms for each category.&lt;/li&gt;
      &lt;li id=&quot;JYvT&quot;&gt;The histogram for the electronics category may show that a large proportion of customers gave ratings of 4 and 5, indicating higher satisfaction. It may also reveal a few customers who gave lower ratings, potentially indicating areas for improvement.&lt;/li&gt;
      &lt;li id=&quot;9Y0t&quot;&gt;The histogram for the clothing category might show a more evenly distributed set of ratings, indicating moderate satisfaction across different customer preferences.&lt;/li&gt;
      &lt;li id=&quot;BM6Z&quot;&gt;The histogram for the home appliances category could display a skewed distribution, indicating that most customers are highly satisfied, with fewer giving lower ratings.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/ol&gt;
  &lt;p id=&quot;uta8&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;cm1p&quot;&gt;2. Categorical plots:&lt;/p&gt;
  &lt;ol id=&quot;RaHq&quot;&gt;
    &lt;ul id=&quot;oUVI&quot;&gt;
      &lt;li id=&quot;xIPY&quot;&gt;To further analyze the relationship between customer satisfaction and other categorical variables, such as gender and age group, you can create categorical plots.&lt;/li&gt;
      &lt;li id=&quot;smPP&quot;&gt;A bar plot can be used to show the average rating for each gender group. This plot may reveal that females tend to have slightly higher satisfaction ratings compared to males.&lt;/li&gt;
      &lt;li id=&quot;SkSg&quot;&gt;A count plot can be used to show the count of ratings for different age groups. It might indicate that younger customers (e.g., 18-25 age group) have a higher participation rate and a wider range of ratings compared to older customers.&lt;/li&gt;
      &lt;li id=&quot;wExm&quot;&gt;A categorical scatter plot can be used to examine the relationship between customer satisfaction ratings and the price range of products. Different markers or colors can represent different price ranges. This plot may show that customers who purchased products in the higher price range tend to give higher satisfaction ratings.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/ol&gt;
  &lt;p id=&quot;N1uN&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;oQik&quot;&gt;&lt;/p&gt;
  &lt;figure id=&quot;W7zE&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/86/92/869296f3-841a-4f4b-8114-41836bb08daf.png&quot; width=&quot;677&quot; /&gt;
  &lt;/figure&gt;
  &lt;section style=&quot;background-color:hsl(hsl(55,  86%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;TYvY&quot;&gt;Categorical Plots&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;FYzX&quot;&gt;Categorical plots simply display some metric per category. For example, a mean value per category or a count per category. There are many variations of these types of plots, but one of the most common is the simple bar plot.&lt;/p&gt;
  &lt;p id=&quot;IKN1&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;WpbZ&quot;&gt;&lt;strong&gt;Be careful not to confuse the bar plot for a histogram! While they may appear similar, carefully look at the x-axis feature. For a bar chart, the feature is categorical while for a histogram it is continuous!&lt;/strong&gt;&lt;/p&gt;

</content></entry><entry><id>iknahar:Variance-Standard_Deviation</id><link rel="alternate" type="text/html" href="https://teletype.in/@iknahar/Variance-Standard_Deviation?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=iknahar"></link><title>2.3 Measurements of Dispersion - Variance and Standard Deviation</title><published>2023-05-31T06:33:17.580Z</published><updated>2023-05-31T10:08:46.174Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img2.teletype.in/files/51/84/5184ee1b-978d-4585-bb73-052e84f144d1.png"></media:thumbnail><category term="math-for-data-science-masterclass" label="Math for Data Science Masterclass"></category><summary type="html">&lt;img src=&quot;https://img2.teletype.in/files/1e/11/1e11bcc8-cb98-4eb4-9c6c-4d469bbc3fc7.jpeg&quot;&gt; এভারেজ থেকে ডেটা গুলো কতটা ছড়ানো - সেই হিসাব</summary><content type="html">
  &lt;figure id=&quot;n0GR&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/1e/11/1e11bcc8-cb98-4eb4-9c6c-4d469bbc3fc7.jpeg&quot; width=&quot;1200&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;NmmX&quot;&gt; এভারেজ থেকে ডেটা গুলো কতটা ছড়ানো - সেই হিসাব&lt;/p&gt;
  &lt;figure id=&quot;kPBG&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/f5/45/f5458b48-1462-4689-89bf-8ae2248661ed.png&quot; width=&quot;520&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;cP64&quot;&gt;Variance value less means - the data is close together, and higher value means they are scattered in significant differences .&lt;/p&gt;
  &lt;p id=&quot;NZph&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;k7Rb&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;QUZD&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;5y4G&quot;&gt;Some questions I had asked chatGPT:&lt;/p&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;V5AD&quot;&gt;The reason for squaring the deviations in the variance calculation instead of using the absolute value is primarily based on mathematical and statistical considerations. Squaring the deviations offers several advantages:&lt;/p&gt;
  &lt;ol id=&quot;VxdI&quot;&gt;
    &lt;li id=&quot;iGDW&quot;&gt;Emphasizing Larger Deviations: Squaring the deviations amplifies the effect of larger deviations, giving them more weight in the calculation of variance. This is desirable as larger deviations often represent more significant deviations from the mean and contribute more to the overall spread of the data.&lt;/li&gt;
    &lt;li id=&quot;igvu&quot;&gt;Mathematical Properties: Squaring the deviations allows for convenient mathematical properties in the variance formula. For example, the squared deviations can be summed, which simplifies calculations and enables the use of various statistical techniques and formulas.&lt;/li&gt;
    &lt;li id=&quot;hE8F&quot;&gt;Relation to Other Statistical Measures: Squaring the deviations in the variance calculation is linked to other important statistical measures, such as the standard deviation. The standard deviation, which is the square root of the variance, is widely used in statistical analysis due to its mathematical properties and interpretation.&lt;/li&gt;
  &lt;/ol&gt;
  &lt;p id=&quot;rUkp&quot;&gt;It&amp;#x27;s important to note that the choice of using squared deviations in the variance calculation is a convention within statistics. Different measures of dispersion, such as the mean absolute deviation (MAD), use absolute differences instead. The choice of using squared deviations is based on mathematical convenience and the desire to capture the emphasis of larger deviations in assessing the spread of data.&lt;/p&gt;
  &lt;p id=&quot;ZG6k&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(55,  86%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;OZ9h&quot;&gt;&lt;em&gt;Can you give me real life example with data to prove your above mention points? Use numbers please?&lt;/em&gt;&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;GlXT&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;fEm4&quot;&gt;- Certainly! Let&amp;#x27;s consider the following dataset representing the heights of individuals (in centimeters):&lt;/p&gt;
  &lt;p id=&quot;0IFF&quot;&gt;Dataset: 165, 170, 175, 180, 185&lt;/p&gt;
  &lt;p id=&quot;9R7R&quot;&gt;We will calculate the variance using both squared deviations and absolute deviations to demonstrate their differences.&lt;/p&gt;
  &lt;ol id=&quot;10BO&quot;&gt;
    &lt;li id=&quot;uvcB&quot;&gt;Squared Deviations: First, we calculate the mean height: Mean = (165 + 170 + 175 + 180 + 185) / 5 = 175&lt;/li&gt;
  &lt;/ol&gt;
  &lt;p id=&quot;qjpi&quot;&gt;Next, we calculate the squared deviation for each data point: (165 - 175)^2 = 100 (170 - 175)^2 = 25 (175 - 175)^2 = 0 (180 - 175)^2 = 25 (185 - 175)^2 = 100&lt;/p&gt;
  &lt;p id=&quot;RRG2&quot;&gt;Now, we find the variance by taking the average of the squared deviations: Variance = (100 + 25 + 0 + 25 + 100) / 5 = 50&lt;/p&gt;
  &lt;ol id=&quot;VrZR&quot;&gt;
    &lt;li id=&quot;BTNF&quot;&gt;Absolute Deviations: Using absolute deviations, we calculate the deviation for each data point: |165 - 175| = 10 |170 - 175| = 5 |175 - 175| = 0 |180 - 175| = 5 |185 - 175| = 10&lt;/li&gt;
  &lt;/ol&gt;
  &lt;p id=&quot;MtiE&quot;&gt;To find the mean absolute deviation (MAD), we average the absolute deviations: MAD = (10 + 5 + 0 + 5 + 10) / 5 = 6&lt;/p&gt;
  &lt;p id=&quot;aXoo&quot;&gt;By comparing the squared deviations (variance) and the absolute deviations (MAD), we can observe the differences:&lt;/p&gt;
  &lt;ul id=&quot;aaRC&quot;&gt;
    &lt;li id=&quot;BF3q&quot;&gt;Emphasizing Larger Deviations: Squaring the deviations in the variance calculation places more emphasis on larger deviations. In this example, heights farther from the mean (175) contribute more to the variance. The squared deviations of 100 and 100 for heights of 165 and 185, respectively, reflect this increased emphasis.&lt;/li&gt;
    &lt;li id=&quot;F2Ok&quot;&gt;Mathematical Properties: The use of squared deviations enables the variance to be calculated by summing the squared deviations and dividing by the number of data points, simplifying calculations. It also allows for various statistical properties and techniques to be applied.&lt;/li&gt;
    &lt;li id=&quot;yYDV&quot;&gt;Relation to Other Statistical Measures: The variance is a crucial component in calculating the standard deviation, which is the square root of the variance. The standard deviation is widely used in statistics to measure the spread of data and is based on the squared deviations.&lt;/li&gt;
  &lt;/ul&gt;
  &lt;p id=&quot;Ijil&quot;&gt;In summary, the use of squared deviations in the variance calculation provides several statistical advantages, including the emphasis of larger deviations, mathematical properties, and relation to other statistical measures.&lt;/p&gt;
  &lt;p id=&quot;6048&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(55,  86%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;r6YZ&quot;&gt;&lt;em&gt;Can you calculate the standard deviation from the above mentioned data and compare it with MAD and write the significance of standard deviation from the data set? The impact of Standard deviation over MAD.&lt;/em&gt;&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;Ioh2&quot;&gt;Certainly! Let&amp;#x27;s calculate the standard deviation from the given dataset and compare it to the mean absolute deviation (MAD).&lt;/p&gt;
  &lt;p id=&quot;BPzL&quot;&gt;Dataset: 165, 170, 175, 180, 185&lt;/p&gt;
  &lt;ol id=&quot;ybgQ&quot;&gt;
    &lt;li id=&quot;N0AS&quot;&gt;Calculate the Mean: Mean = (165 + 170 + 175 + 180 + 185) / 5 = 175&lt;/li&gt;
    &lt;li id=&quot;os1i&quot;&gt;Calculate the Squared Deviation for each data point: (165 - 175)^2 = 100 (170 - 175)^2 = 25 (175 - 175)^2 = 0 (180 - 175)^2 = 25 (185 - 175)^2 = 100&lt;/li&gt;
    &lt;li id=&quot;SWqx&quot;&gt;Calculate the Variance: Variance = (100 + 25 + 0 + 25 + 100) / 5 = 50&lt;/li&gt;
    &lt;li id=&quot;ZXrR&quot;&gt;Calculate the Standard Deviation: Standard Deviation = √Variance = √50 ≈ 7.071&lt;/li&gt;
    &lt;li id=&quot;yAs2&quot;&gt;Calculate the Absolute Deviation for each data point: |165 - 175| = 10 |170 - 175| = 5 |175 - 175| = 0 |180 - 175| = 5 |185 - 175| = 10&lt;/li&gt;
    &lt;li id=&quot;6rQm&quot;&gt;Calculate the Mean Absolute Deviation (MAD): MAD = (10 + 5 + 0 + 5 + 10) / 5 = 6&lt;/li&gt;
  &lt;/ol&gt;
  &lt;p id=&quot;PU0M&quot;&gt;Now, let&amp;#x27;s compare the Standard Deviation and MAD:&lt;/p&gt;
  &lt;ul id=&quot;oy5a&quot;&gt;
    &lt;li id=&quot;09M0&quot;&gt;Standard Deviation (7.071): The standard deviation measures the average amount by which each data point deviates from the mean. It takes into account the squared deviations, providing a measure of the spread of the data. In this example, the standard deviation of approximately 7.071 indicates that, on average, the data points deviate from the mean by about 7.071 centimeters.&lt;/li&gt;
    &lt;li id=&quot;cLKm&quot;&gt;Mean Absolute Deviation (MAD) (6): The MAD represents the average absolute deviation of each data point from the mean. It is less influenced by extreme values and provides a robust measure of dispersion. In this example, the MAD of 6 indicates that, on average, the data points deviate from the mean by about 6 centimeters.&lt;/li&gt;
  &lt;/ul&gt;
  &lt;p id=&quot;tQO2&quot;&gt;Significance of Standard Deviation: The standard deviation is widely used in statistics because it provides a measure of dispersion that takes into account the spread of the data while considering the algebraic signs of deviations. It helps understand the variability and spread of a dataset and is often used in conjunction with the mean to summarize and compare datasets. The standard deviation allows for more accurate assessment of the magnitude of deviations from the mean compared to MAD, which is based on absolute deviations.&lt;/p&gt;
  &lt;p id=&quot;LheZ&quot;&gt;The standard deviation is particularly useful when dealing with datasets that follow a normal distribution or when comparing datasets that have similar units or scales. It is also a fundamental component in many statistical techniques and hypothesis testing. Its squared nature allows for mathematical properties and facilitates the calculation of confidence intervals and significance testing.&lt;/p&gt;
  &lt;p id=&quot;PWCT&quot;&gt;While the MAD is a robust measure of dispersion that is less sensitive to outliers, the standard deviation provides additional insights into the variability and spread of the data, accounting for the magnitude and direction of deviations from the mean.&lt;/p&gt;
  &lt;p id=&quot;Fr0H&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(55,  86%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;q9UD&quot;&gt;&lt;em&gt;You wrote &amp;quot;In summary, the use of squared deviations in the variance calculation provides several statistical advantages, including the emphasis of larger deviations, mathematical properties, and relation to other statistical measures.&amp;quot; can you explain which mathematical properties you are talking about? And also which relation to other statistical measures?&lt;/em&gt;&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;Fcoe&quot;&gt;Certainly! Here are the mathematical properties and relations to other statistical measures associated with the use of squared deviations in variance calculation:&lt;/p&gt;
  &lt;ol id=&quot;Qgln&quot;&gt;
    &lt;li id=&quot;2nU3&quot;&gt;Simplified Calculation: Squaring the deviations in the variance formula allows for the convenient mathematical property of being able to sum the squared deviations. This simplifies the calculation process, as we can add up the squared deviations and divide by the number of data points to find the variance.&lt;/li&gt;
    &lt;li id=&quot;tYO3&quot;&gt;Linearity of Variance: The variance has the property of linearity. This means that if we have two sets of data and we combine them, the variance of the combined dataset is equal to the sum of the variances of the individual datasets. This property facilitates the analysis of variance in many statistical techniques and hypothesis testing.&lt;/li&gt;
    &lt;li id=&quot;HNtp&quot;&gt;Standard Deviation: The variance is the squared value of the standard deviation. The standard deviation is widely used as a measure of dispersion, and its calculation involves taking the square root of the variance. The standard deviation inherits the mathematical properties and relations of the variance.&lt;/li&gt;
    &lt;li id=&quot;x2by&quot;&gt;Covariance and Correlation: The variance is closely related to covariance and correlation. Covariance measures the linear relationship between two variables, while correlation measures the strength and direction of the linear relationship. Both covariance and correlation involve squared deviations and are related to the variance through mathematical formulas.&lt;/li&gt;
    &lt;li id=&quot;BfJj&quot;&gt;Statistical Inference: The use of squared deviations in the variance calculation is fundamental to many statistical inference techniques. It plays a crucial role in hypothesis testing, confidence interval estimation, and model building. These techniques rely on the properties of variance to make inferences about population parameters and assess the reliability of statistical estimates.&lt;/li&gt;
  &lt;/ol&gt;
  &lt;p id=&quot;HKIb&quot;&gt;By squaring the deviations, the variance incorporates mathematical properties such as linearity, facilitates the calculation of other statistical measures like standard deviation, covariance, and correlation, and supports various statistical inference techniques. These properties and relationships make the variance a widely used and important statistical measure.&lt;/p&gt;
  &lt;p id=&quot;ft2U&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;ekvg&quot;&gt;&lt;a href=&quot;https://chat.openai.com/share/1fbb8455-ce54-4810-86b3-b801846abac0&quot; target=&quot;_blank&quot;&gt;https://chat.openai.com/share/1fbb8455-ce54-4810-86b3-b801846abac0&lt;/a&gt; (off topic)&lt;/p&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;CIKt&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(199, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h2 id=&quot;wge9&quot;&gt;Quartiles and IQR&lt;/h2&gt;
  &lt;/section&gt;
  &lt;p id=&quot;41ET&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;0ACQ&quot;&gt;Median - and Quartile is similar. &lt;/p&gt;
  &lt;p id=&quot;Uu9v&quot;&gt;কোয়াটেলের কনসেপ্টওয়ার সোজা।  মিডিয়ান যেরকম একটা একটা রেঞ্জ অফ ডাটা থেকে মাঝখানের খুঁজে বের করে ঠিক সেরকম কোয়ারটাইল ও মিডিয়ানের মতোই কিছুটা শুধুমাত্র কোয়ারটাইল এর ক্ষেত্রে আমরা এটাকে তিনটা ভাগে ভাগ করতে পারি। &lt;/p&gt;
  &lt;p id=&quot;gCwR&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;wjR0&quot;&gt;আমরা নিচে দেখতে পাচ্ছি যে কিছু ডাটা রয়েছে যেগুলোতে হয়েছে ১৮ টি গলফ স্কোর।  &lt;/p&gt;
  &lt;figure id=&quot;aPzs&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/8c/f2/8cf23db8-d0f9-47df-afe1-842291c377b8.png&quot; width=&quot;959&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;gWxc&quot;&gt;আমরা জানি এখানে মিডিয়ান হচ্ছে মাঝখানের 69 ও 69- দুইটা  69 এর গড়। তাই মিডিয়াম বের করতে হলে আমরা দুইটা সিক্সটি নাইন কে যোগ করে দুই দিয়ে ভাগ করে  ৬৯ পাবো। এ জন্য আমাদের ভ্যালুটা হচ্ছে মাঝের দুইটা সিক্সটি নাইনের গড়। &lt;/p&gt;
  &lt;p id=&quot;dSsm&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;Msg7&quot;&gt;হিসাব করার সময় আমরা তিনটা কর্টাইল নিয়ে হিসাব করি একটা হচ্ছে ফার্স্ট কোয়ার্টাল, একটা সেকেন্ড কোয়ার্টাল,  থার্ড কোয়ার্টাল।&lt;/p&gt;
  &lt;p id=&quot;c7uA&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;KZlu&quot;&gt;এখানে ৭৫ যে সে হচ্ছে সবচেয়ে ভালো. ৬৬ হচ্ছে সবচেয়ে খারাপ গলফেয়ার তাই আমি যদি মাঝখান বরাবর নিতে চাই সিক্সটি নাইন হচ্ছে গিয়ে আমাদের মিডিয়াম এখন যদি আমি এই ডাটাকে তিন ভাগে ভাগ করি তাহলে আমি প্রথম দিকে পাই ফার্স্ট কোয়ার্টার যেটাকে আমি লোয়ার কোয়ারটাইলেও বলতে পারি। &lt;/p&gt;
  &lt;p id=&quot;yhU0&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;K0Yt&quot;&gt;Q1 = প্রথম অংশের মিডিয়ান হচ্ছে ফার্স্ট কোয়ার্টাইল। একে লোয়ার কোয়ার্টাইল ও বলে।  It is the 25th percent of the data. [ 25th % of the data will fall below lower quarties, and 75th % of the data will fall in the upper quartile] &lt;/p&gt;
  &lt;p id=&quot;C5YD&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;99RL&quot;&gt;Q2 = সেকেন্ড কোয়ার্টাইল = মিডিয়ান (50th percent of the data) [  ৫0th % অফ মিডিয়ান এর মানে হচ্ছে গিয়ে এর শুরুর 50 ভাগ পড়বে লোয়ার পার্টে এবং পরের ৫০ ভাগ করবে আপার part এ।  এজন্যই এটা ফিফটিত পারসেন্ট অফ মিডিয়ান। &lt;/p&gt;
  &lt;p id=&quot;QqAe&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;pUT2&quot;&gt;Q3 = Third Quartile, Upper Quartile, or 75th percent of the quartile. &lt;/p&gt;
  &lt;p id=&quot;5iao&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;z3G8&quot;&gt;5 number summary === min, Q1, median, Q3, Max (gives ideas of the center and the spread at the same time)&lt;/p&gt;
  &lt;section style=&quot;background-color:hsl(hsl(323, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;J7MA&quot;&gt;By examining the five-number summary, we can gain insights into the shape of the distribution. For example:&lt;/p&gt;
    &lt;ul id=&quot;4KpM&quot;&gt;
      &lt;li id=&quot;igl7&quot;&gt;If the minimum and maximum are close together, the data may be tightly clustered, indicating a smaller variance.&lt;/li&gt;
      &lt;li id=&quot;VVuF&quot;&gt;If Q1 and Q3 are close to the median, the data may be symmetrically distributed.&lt;/li&gt;
      &lt;li id=&quot;WvAC&quot;&gt;If Q3 is much higher than Q1 and the median, it suggests a positively skewed distribution.&lt;/li&gt;
      &lt;li id=&quot;RzyP&quot;&gt;If Q1 is much higher than Q3 and the median, it suggests a negatively skewed distribution.&lt;/li&gt;
      &lt;li id=&quot;NV7p&quot;&gt;The range between Q1 and Q3 (also known as the interquartile range, or IQR) provides information about the spread of the middle 50% of the data.&lt;/li&gt;
    &lt;/ul&gt;
    &lt;p id=&quot;JZYj&quot;&gt;By considering these measures together, the five-number summary allows us to assess the dispersion, skewness, and central tendency of a dataset, giving us a sense of the distribution and variance.&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;UZ4D&quot;&gt;IQR = Q3- Q1 &lt;/p&gt;
  &lt;p id=&quot;pJhu&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;Rddw&quot;&gt;We can determine the outliars as well by using the Q1 and Q3 values. &lt;/p&gt;
  &lt;section style=&quot;background-color:hsl(hsl(263, 48%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;xLU7&quot;&gt;If any value goes beyond: (Q1-1.5XIQR) to (Q3+1.5XIQR) they can be considered as outliers. &lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;LJx3&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;qXUl&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;WMX5&quot;&gt;Questions to GPT:&lt;/p&gt;
  &lt;section style=&quot;background-color:hsl(hsl(55,  86%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;UB0V&quot;&gt;&lt;em&gt;why quartile is called quartile? what is the relationship of this with 4&lt;/em&gt;&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;1wWc&quot;&gt;Quartiles are called quartiles because they divide a dataset into four equal parts or quarters. Each quartile represents a specific portion of the dataset, splitting it into approximately 25% of the data.&lt;/p&gt;
  &lt;p id=&quot;67gB&quot;&gt;There are three quartiles commonly used in statistics: the first quartile (Q1), the second quartile (Q2), and the third quartile (Q3). Q2 is also known as the median. These quartiles help analyze the distribution and dispersion of data.&lt;/p&gt;
  &lt;p id=&quot;9x3P&quot;&gt;The first quartile (Q1) represents the value below which 25% of the data falls. It divides the lowest 25% of the data from the rest. The second quartile (Q2) is the median, representing the value below which 50% of the data falls, splitting the dataset into two equal halves. The third quartile (Q3) represents the value below which 75% of the data falls, dividing the upper 25% of the data from the rest.&lt;/p&gt;
  &lt;p id=&quot;P53L&quot;&gt;The quartiles are commonly used in statistical analysis to understand the spread of data, identify outliers, and analyze the distribution of a dataset. They provide a way to summarize the distribution of data into four equal parts, offering insights into the relative positions and variability of values within a dataset.&lt;/p&gt;
  &lt;p id=&quot;WTJq&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(236, 74%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;dVlk&quot;&gt;Interquartile Range formula of a data set in excel&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;gpIR&quot;&gt;To calculate the interquartile range (IQR) of a data set in Excel, you can use the following formula:&lt;/p&gt;
  &lt;pre id=&quot;NzGo&quot;&gt;=QUARTILE.INC(data_range,3)-QUARTILE.INC(data_range,1)&lt;/pre&gt;
  &lt;p id=&quot;pXpe&quot;&gt;Here&amp;#x27;s how the formula works:&lt;/p&gt;
  &lt;ol id=&quot;97kF&quot;&gt;
    &lt;li id=&quot;8hbH&quot;&gt;&lt;code&gt;QUARTILE.INC(data_range, 1)&lt;/code&gt; represents the first quartile (25th percentile) of the data set.&lt;/li&gt;
    &lt;li id=&quot;Qx2z&quot;&gt;&lt;code&gt;QUARTILE.INC(data_range, 3)&lt;/code&gt; represents the third quartile (75th percentile) of the data set.&lt;/li&gt;
    &lt;li id=&quot;GBRF&quot;&gt;Subtracting the first quartile from the third quartile gives you the interquartile range.&lt;/li&gt;
  &lt;/ol&gt;
  &lt;p id=&quot;QNan&quot;&gt;Make sure to replace &amp;quot;data_range&amp;quot; in the formula with the actual range of data you want to calculate the interquartile range for.&lt;/p&gt;
  &lt;p id=&quot;iNBN&quot;&gt;For example, if your data is in cells A1 to A10, the formula would be:&lt;/p&gt;
  &lt;pre id=&quot;OgwG&quot;&gt;=QUARTILE.INC(A1:A10,3)-QUARTILE.INC(A1:A10,1)&lt;/pre&gt;
  &lt;p id=&quot;7Uaa&quot;&gt;This formula will give you the interquartile range of the data set in Excel.&lt;/p&gt;
  &lt;p id=&quot;cypv&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(236, 74%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;Itcw&quot;&gt;&lt;em&gt;A business is trying to analyze its sales data from the past year. The data shows the amount of money made from each sale, sorted in ascending order. The business wants to find the three points that divide the dataset into four equal parts, in order to better understand the distribution of its sales. The data in USD is shown below: [10, 12, 15, 18, 20, 21, 22, 24, 25, 27, 28, 30, 32, 35, 38, 40, 42, 45, 50] What is the Interquartile Range for this data set?&lt;/em&gt;&lt;/p&gt;
  &lt;/section&gt;
  &lt;p id=&quot;pcFE&quot;&gt;To find the interquartile range (IQR) for the given data set, we need to calculate the first quartile (Q1) and the third quartile (Q3).&lt;/p&gt;
  &lt;p id=&quot;0W7L&quot;&gt;First, let&amp;#x27;s determine the position of the quartiles. Since we have 19 data points, we can use the following formulas:&lt;/p&gt;
  &lt;p id=&quot;7tCp&quot;&gt;Position of Q1 = (n + 1) / 4 = (19 + 1) / 4 = 5 Position of Q3 = 3 * (n + 1) / 4 = 3 * (19 + 1) / 4 = 15&lt;/p&gt;
  &lt;p id=&quot;1r6l&quot;&gt;Next, let&amp;#x27;s find the values corresponding to these positions in the sorted data set:&lt;/p&gt;
  &lt;p id=&quot;9KlV&quot;&gt;Q1 = The value at position 5 = 20 Q3 = The value at position 15 = 38&lt;/p&gt;
  &lt;p id=&quot;aohc&quot;&gt;Finally, we can calculate the interquartile range (IQR) by subtracting Q1 from Q3:&lt;/p&gt;
  &lt;p id=&quot;fqP3&quot;&gt;IQR = Q3 - Q1 = 38 - 20 = 18&lt;/p&gt;
  &lt;p id=&quot;zl9Q&quot;&gt;Therefore, the interquartile range for the given data set is 18 USD.&lt;/p&gt;
  &lt;hr /&gt;

</content></entry><entry><id>iknahar:Measurements-of-Central-Tendency-Mean-Median-Mode</id><link rel="alternate" type="text/html" href="https://teletype.in/@iknahar/Measurements-of-Central-Tendency-Mean-Median-Mode?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=iknahar"></link><title>2.2 Measurements of Central Tendency - Mean, Median, and Mode</title><published>2023-05-29T12:14:48.982Z</published><updated>2023-05-31T06:30:37.252Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img2.teletype.in/files/52/9f/529f04bc-9f2c-4f00-9643-94a9a262cfd0.png"></media:thumbnail><category term="math-for-data-science-masterclass" label="Math for Data Science Masterclass"></category><summary type="html">&lt;img src=&quot;https://img1.teletype.in/files/42/77/4277befd-00a2-41c4-bcb4-343332ce2661.png&quot;&gt;মিন আর মিডিয়ান বোঝার জন্য সবচেয়ে সহজ যে কনসেপ্টটা, যদি আমার কাছে এমন পাঁচজন থাকে যাদের বয়স ৮, ৬, ৬, ১০, ৮৫ এবং আমি যদি একটা মুভি প্লে করতে ছাই। মুভিটা কত বছর বয়সীদের জন্য উপযুক্ত হতে হবে? </summary><content type="html">
  &lt;figure id=&quot;npwM&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/42/77/4277befd-00a2-41c4-bcb4-343332ce2661.png&quot; width=&quot;1200&quot; /&gt;
  &lt;/figure&gt;
  &lt;hr /&gt;
  &lt;figure id=&quot;rqWg&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/1a/cf/1acf6d7a-9dde-4d15-a9cd-63110d8cb8cd.png&quot; width=&quot;1151&quot; /&gt;
  &lt;/figure&gt;
  &lt;hr /&gt;
  &lt;figure id=&quot;r1di&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/58/48/5848bb1e-5505-4d8d-805e-68d152af39d4.png&quot; width=&quot;1154&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;Zppp&quot;&gt;মিন আর মিডিয়ান বোঝার জন্য সবচেয়ে সহজ যে কনসেপ্টটা, যদি আমার কাছে এমন পাঁচজন থাকে যাদের বয়স ৮, ৬, ৬, ১০, ৮৫ এবং আমি যদি একটা মুভি প্লে করতে ছাই। মুভিটা কত বছর বয়সীদের জন্য উপযুক্ত হতে হবে? &lt;/p&gt;
  &lt;p id=&quot;QVim&quot;&gt;আমি যদি এদের বয়সের এভারেজ করি তাহলে আমি পাই তেইশ।  &lt;/p&gt;
  &lt;p id=&quot;yFny&quot;&gt;এই ডাটা সেটে বাচ্চারা আছে চারজন এবং একজন বয়স্ক লোক আছে।  ফলে এইখানের এভারেজ হচ্ছে ২৩ কিন্তু এর মানে এই না যে আমি তেইশ বছর বয়সীদের উপযুক্ত মুভি প্লে করলে  সবাই এনজয় করবে।  সেই ক্ষেত্রেই আসবে মিডিয়ানের কনসেপ্ট। &lt;/p&gt;
  &lt;p id=&quot;sG58&quot;&gt;মিডিয়ান হচ্ছে সবগুলো বয়স সাজিয়ে মাঝ বরাবর যেই বয়সটা পাওয়া যায়। &lt;/p&gt;
  &lt;p id=&quot;Tktn&quot;&gt;এই ক্ষেত্রে  মিডিয়ান হচ্ছে আট বছর কারণ সবগুলো ডাটা সাজিয়ে মাঝের বয়সটাকে আমরা পাচ্ছি ৮ বছর। এজন্যই যদি আমরা কার্টুন নেটওয়ার্ক চালাই তাহলে আট বছর বয়সী ইনজয় করবে, ছয় বছর বয়সী এনজয় করবে, ১০ বছর বয়সী ছেলেটা ইনজয় করবে, অ্যান্ড most likely ৮৫ বছর বয়সের নানুও এনজয় করবে।&lt;/p&gt;
  &lt;p id=&quot;pJNO&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;figure id=&quot;CmvK&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/c2/f5/c2f583c1-32f4-4a16-91be-9462b3be45e5.png&quot; width=&quot;675&quot; /&gt;
  &lt;/figure&gt;
  &lt;figure id=&quot;EgBU&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img3.teletype.in/files/6c/ad/6cad7ecf-418a-4c9a-9455-8ef955dc3645.png&quot; width=&quot;376&quot; /&gt;
  &lt;/figure&gt;

</content></entry><entry><id>iknahar:Core-Data-Concepts</id><link rel="alternate" type="text/html" href="https://teletype.in/@iknahar/Core-Data-Concepts?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=iknahar"></link><title>2.1 Core Data Concepts</title><published>2023-05-29T10:17:12.212Z</published><updated>2023-05-29T12:08:25.450Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img3.teletype.in/files/e4/a1/e4a1c63e-9257-4862-bd0a-46d4f601196f.png"></media:thumbnail><category term="math-for-data-science-masterclass" label="Math for Data Science Masterclass"></category><summary type="html">&lt;img src=&quot;https://img2.teletype.in/files/5b/0f/5b0f7a12-1b2b-4365-aaa4-0ed77d390130.png&quot;&gt;Let's explore some core concepts and the vocabulary used to describe them:</summary><content type="html">
  &lt;figure id=&quot;6v71&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/5b/0f/5b0f7a12-1b2b-4365-aaa4-0ed77d390130.png&quot; width=&quot;600&quot; /&gt;
  &lt;/figure&gt;
  &lt;section style=&quot;background-color:hsl(hsl(0,   0%,  var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;p id=&quot;4hOI&quot;&gt;Let&amp;#x27;s explore some core concepts and the vocabulary used to describe them:&lt;/p&gt;
  &lt;/section&gt;
  &lt;ul id=&quot;s7C0&quot;&gt;
    &lt;li id=&quot;lUoI&quot;&gt;&lt;a href=&quot;#M72o&quot;&gt;Continuous&lt;/a&gt; vs. &lt;a href=&quot;#s8i2&quot;&gt;Discrete&lt;em&gt; (Categorical)&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li id=&quot;99RV&quot;&gt;&lt;a href=&quot;#SvoB&quot;&gt;Nominal &lt;/a&gt;vs. &lt;a href=&quot;#mVqI&quot;&gt;Ordinal&lt;/a&gt;&lt;/li&gt;
    &lt;li id=&quot;S2td&quot;&gt;&lt;a href=&quot;#DEFo&quot;&gt;Structured vs. Unstructured&lt;/a&gt;&lt;/li&gt;
    &lt;li id=&quot;elTz&quot;&gt;&lt;a href=&quot;#4mBE&quot;&gt;Population vs. Sample&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;p id=&quot;LFdU&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(199, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h3 id=&quot;s8i2&quot;&gt;Discrete Data:&lt;/h3&gt;
  &lt;/section&gt;
  &lt;p id=&quot;KklI&quot;&gt;&lt;br /&gt;Can only take certain values, there are no values &amp;quot;in-between&amp;quot; values.&lt;br /&gt;Car models: Toyota, Tesla, Ferrari। &lt;/p&gt;
  &lt;figure id=&quot;pYeE&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh6.googleusercontent.com/xjIBGmxCFeiPte0t__9uyLbzFCGneQF86kuic1IqPAYmtActu9hVPZFfmGGAI6btNxw2UzkemlIW7cGYyFXfoheD1Dknns-VjjckNZRjJnqLNPp9QuxKy8RAX6E9WxLGxeVBz6hHIwH-CmFOu61_g0bNCg=nw&quot; width=&quot;1264&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;gKLH&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;v5Xd&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;B77m&quot;&gt;অর্থাৎ যদি আমার ভেলুর মধ্যে এমন ভ্যালু থাকে যেগুলো ভগ্নাংশ হয় না মানে অর্ধেক Toyota বা অর্ধেক টেসলা এরকম তো গাড়ি হয় না এর কারণেই গাড়ির ভ্যালু বা গাড়ির নাম একটা Discrete ডাটা টাইপ। &lt;/p&gt;
  &lt;p id=&quot;SToB&quot;&gt;সেই একই কারণে ঘরের সিঁড়ির সংখ্যা কিংবা পরিবারের সদস্যদের সংখ্যাও ডিসক্রিট ডাটা টাইপ। &lt;/p&gt;
  &lt;figure id=&quot;4gZc&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/cf/2e/cf2eabe3-8351-4103-b30e-4fbc298f6798.png&quot; width=&quot;1230&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;Uv9i&quot;&gt;There can be no 3.5 in the dice. &lt;/p&gt;
  &lt;p id=&quot;criA&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;3ynP&quot;&gt;&lt;/p&gt;
  &lt;section style=&quot;background-color:hsl(hsl(199, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h3 id=&quot;M72o&quot;&gt;Continuous Data:&lt;/h3&gt;
  &lt;/section&gt;
  &lt;p id=&quot;RP2I&quot;&gt;Can take any value, there are an &amp;quot;infinite&amp;quot; amount of values in-between any two values if you are able to get precise enough.&lt;/p&gt;
  &lt;figure id=&quot;yTdq&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/59/d0/59d020e0-dda9-449c-a054-a30ae2164ee3.png&quot; width=&quot;1230&quot; /&gt;
    &lt;figcaption&gt;Notice how someone could be in between that at 172.5 cm tall.&lt;/figcaption&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;kxn5&quot;&gt;Remember that while continuous data is numeric (160kg), discrete data can be numericl (dice roll of 2) or a string (&amp;quot;Blue&amp;quot;). Keep in mind that sometimes the context and framing of a dataset will decide whether you should think of data as continuous or discrete.&lt;/p&gt;
  &lt;p id=&quot;iPmZ&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;trxp&quot;&gt;&lt;/p&gt;
  &lt;figure id=&quot;Dbgu&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/d2/24/d224f251-e43f-4f08-9822-82742ea6d117.png&quot; width=&quot;1180&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;xYRg&quot;&gt;&lt;em&gt;&lt;strong&gt;&lt;u&gt;But what if the context is physics and the visible spectrum of light in wavelengths?&lt;/u&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
  &lt;figure id=&quot;jrYq&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/48/75/4875890a-58a3-4c4a-aedb-08ad645936d6.png&quot; width=&quot;1280&quot; /&gt;
  &lt;/figure&gt;
  &lt;section style=&quot;background-color:hsl(hsl(199, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;figure id=&quot;ui2K&quot; class=&quot;m_column&quot;&gt;
      &lt;img src=&quot;https://lh6.googleusercontent.com/jxFmDK-xHGKSuQK26l40dKxkMZpA3-CUUeL3gpH_yXXf4Vott3fzHHGiIDSi_5WiPSucKhH7Rc7uaLcGGnnFPiXEirNbcM2eH4LPXeEf3eU2daL6KulUFjYgWEHvGV4Zb1Pc1vVEgm8I7ZKaHpAa4mpAAg=nw&quot; width=&quot;1280&quot; /&gt;
    &lt;/figure&gt;
  &lt;/section&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;a4n0&quot;&gt;Do not confuse numeric and ordered discretel data with continuous data!&lt;/p&gt;
  &lt;figure id=&quot;gXej&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/16/f2/16f259dc-a7fe-4129-845e-b8dbcf25d591.png&quot; width=&quot;1276&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;IOMc&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(199, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h3 id=&quot;SvoB&quot;&gt;Nominal vs. Ordinal: &lt;/h3&gt;
  &lt;/section&gt;
  &lt;p id=&quot;cGgW&quot;&gt;Nominal data is classified without a natural order or rank. For categories Of discrete anirnals: dogs, cats, lizards, horses, etc...&lt;/p&gt;
  &lt;p id=&quot;JC7m&quot;&gt; নমিনাল চেনা খুবই সহজ। আমার ডাটা যদি এমন হয় যেখানে আমি একটা কালেকশন অফ এনিমেল নিয়েছি যেমনঃ কুকুর, বিড়াল, ঘোড়া, টিকটিকে।  তখন আমাকে যদি বলি,  বিড়াল ভালো না কুকুর ভালো? আবার টিকটিকি খারাপ নাকি ঘোড়া খারাপ? আবার ঘোড়ার মধ্যে আর কুকুরের মধ্যে কে ভালো?  এই ভালো মন্দের কোন স্ট্যান্ডার্ড প্যারামিটার নাই এই জন্যই এগুলোকে বলা হয় নমিনাল। &lt;/p&gt;
  &lt;p id=&quot;MkS8&quot;&gt;A good test for nominal data is if it can be clearly sorted or not. Nominal data can not be sorted.  আপনার ডাটাকে যদি কোন না কোনভাবে সাজানোর না যায় তাহলে সেই ডাটাই নমিনাল ডাটা। &lt;/p&gt;
  &lt;p id=&quot;nadq&quot;&gt;&lt;/p&gt;
  &lt;section style=&quot;background-color:hsl(hsl(199, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h3 id=&quot;mVqI&quot;&gt;Ordinal Data: &lt;/h3&gt;
  &lt;/section&gt;
  &lt;p id=&quot;Tse4&quot;&gt;Ordinal শব্দের মধ্যেই তো অর্ডার শব্দটা চলে আসছে তারমানে Ordinal  ডাটা গুলোকে অর্ডার wise ভাগ করা বা সাজানো যায়। Sort করা যায়&lt;/p&gt;
  &lt;p id=&quot;sYMe&quot;&gt;&lt;/p&gt;
  &lt;figure id=&quot;wKmr&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/b9/c2/b9c2516f-8108-4590-a26b-54c194fdbb84.png&quot; width=&quot;683&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;IWfN&quot;&gt;Hot, or Mild কিংবা কোল্ড এর ডাটা গুলোকে শর্ট করা যায়। যেমন ঢাকায় গত এক সপ্তাহে সর্বোচ্চ তাপমাত্রা কত ছিল? সর্বনিম্ন কত ছিল? এই হিসাবে কিন্তু সাতদিনের তাপমাত্রা থেকে একটা সাজানো বা sorting করতে পারব। এই কারণেই ওয়েদারের ডাটা হচ্ছে অর্ডিনাল। &lt;/p&gt;
  &lt;p id=&quot;Hvl5&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(199, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h3 id=&quot;DEFo&quot;&gt;Structured vs. Unstructured&lt;/h3&gt;
  &lt;/section&gt;
  &lt;p id=&quot;HSOp&quot;&gt;We also need to understand that not all data is formatted nicely in a table or spreadsheet, and in some cases we don&amp;#x27;t even want it in a structured format!&lt;/p&gt;
  &lt;p id=&quot;Uinm&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;dbyJ&quot;&gt;Structured data is highly specific and is stored in a predefined format. For example: Excel spreadsheets, JSON files, XML files, or SQL databases follow a predefined format.&lt;/p&gt;
  &lt;p id=&quot;qwcX&quot;&gt;Unstructured data is not in a particular format. For example video, or text data doesn&amp;#x27;t need to follow any particular predefined sturctured format.&lt;/p&gt;
  &lt;p id=&quot;tttC&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;uW6n&quot;&gt;  Be careful not to confused computer encoded file formats with &amp;quot;formatted data&amp;quot;! Just because text is in a PDF format doesn&amp;#x27;t make it structured data.&lt;/p&gt;
  &lt;p id=&quot;PLgX&quot;&gt;Unstructured ডাটা নিয়ে কাজ করার কঠিন হলেও কিছু কিছু example এমন আছে যখন Unstructured ডাটাই আমাদের কাজে লাগে। &lt;/p&gt;
  &lt;p id=&quot;H67p&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;gkIb&quot;&gt;For example: DALLE-2 from OpenAI&lt;/p&gt;
  &lt;figure id=&quot;oNgf&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://lh3.googleusercontent.com/gRIRtgfgVe49lwilC3L90ZyaFT2qs8OvghLBrx29stwOiQjzXrLUP9HM5UtFEa2t-DompPMvDIEvgyRc2dXhvcy6-a1E2heRHL4P5hcpYP8RbWqqvpcgwZyYx_qQQ79Vypz6xMLEX5qgeJT7btpyjz_EzQ=nw&quot; width=&quot;1208&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;7HDb&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(199, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h3 id=&quot;4mBE&quot;&gt;Population vs. Sample&lt;/h3&gt;
  &lt;/section&gt;
  &lt;p id=&quot;l1Qy&quot;&gt;Population:&lt;/p&gt;
  &lt;p id=&quot;fyJL&quot;&gt; পপুলেশন আর স্যাম্পল এর concept বোঝার জন্য কনটেক্স বোঝাটা খুব জরুরী।  যদি কন্টেক্সট হয় একটা ক্লাস কে কেন্দ্র করে তাহলে ওই ক্লাসের সব স্টুডেন্ট হবে পপুলেশন।  কিন্তু যদি কন্টেক্স হয় পুরো স্কুল কে কেন্দ্র করে তাহলে কোন একটা ক্লাসের সব স্টুডেন্ট কখনোই পপুলেশন হবে না। &lt;/p&gt;
  &lt;p id=&quot;kkyd&quot;&gt;Often however it is not possible to record data on an entire population. In this case we rely on a sample from the population, which is a subset of the members of the group.&lt;/p&gt;
  &lt;p id=&quot;IwFk&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;6s7A&quot;&gt;Later on we&amp;#x27;ll discover that sample sizes are a well studied science. For example: How many students should we survey for a school of 1,000 students to get a representative sample?&lt;/p&gt;
  &lt;p id=&quot;DH1a&quot;&gt; একটা স্কুলের ১০০০ ছাত্রছাত্রীর একটা সার্ভে যদি আমি করতে যাই সে ক্ষেত্রে এক দুইজনের স্যাম্পল নিলে কি হবে? &lt;/p&gt;
  &lt;p id=&quot;mFzU&quot;&gt;- হবে না। &lt;/p&gt;
  &lt;p id=&quot;kZyN&quot;&gt; আবার ১০০০ ছাত্র-ছাত্রী সবাইকে সার্ভে করাও তো সম্ভব না। &lt;/p&gt;
  &lt;p id=&quot;QK2S&quot;&gt;সার্ভের জন্য স্যাম্পল সাইজ ডিটারমাইন্ড করার জন্য কিছু সাইন্স আছে সেটার জন্য এই আর্টিকেলটা পড়ে দেখতে পারি। &lt;/p&gt;
  &lt;p id=&quot;eRTE&quot;&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Sample_size_determination&quot; target=&quot;_blank&quot;&gt;https://en.wikipedia.org/wiki/Sample_size_determination&lt;/a&gt;&lt;/p&gt;

</content></entry><entry><id>iknahar:intro-to-math-for-ds</id><link rel="alternate" type="text/html" href="https://teletype.in/@iknahar/intro-to-math-for-ds?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=iknahar"></link><title>1. Intro to Math for Data Science  </title><published>2023-05-29T09:49:10.367Z</published><updated>2023-05-29T09:50:28.503Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img1.teletype.in/files/8a/60/8a60bc11-9d7b-4041-97db-d000d59ee9a7.png"></media:thumbnail><category term="math-for-data-science-masterclass" label="Math for Data Science Masterclass"></category><summary type="html">&lt;img src=&quot;https://img3.teletype.in/files/65/2d/652dcbc0-ef19-424f-9848-5b1a5f66bf8b.jpeg&quot;&gt;In this course, we'll cover:</summary><content type="html">
  &lt;figure id=&quot;TGf8&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img3.teletype.in/files/65/2d/652dcbc0-ef19-424f-9848-5b1a5f66bf8b.jpeg&quot; width=&quot;1200&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;ZVdA&quot;&gt;In this course, we&amp;#x27;ll cover:&lt;/p&gt;
  &lt;ul id=&quot;HoJp&quot;&gt;
    &lt;li id=&quot;y0l4&quot;&gt;Understanding Data Concepts&lt;/li&gt;
    &lt;li id=&quot;nOW9&quot;&gt;Measurements of Dispersion and Central Tendency&lt;/li&gt;
    &lt;li id=&quot;f5iZ&quot;&gt;Different ways to visualize data&lt;/li&gt;
    &lt;li id=&quot;cXuY&quot;&gt;Permutations&lt;/li&gt;
    &lt;li id=&quot;yKAY&quot;&gt;Combinatorics&lt;/li&gt;
    &lt;li id=&quot;o6Ty&quot;&gt;Bayes&amp;#x27; Theorem&lt;/li&gt;
    &lt;li id=&quot;nqOK&quot;&gt;Random Variables&lt;/li&gt;
    &lt;li id=&quot;UXnR&quot;&gt;Joint Distributions&lt;/li&gt;
    &lt;li id=&quot;spI8&quot;&gt;Covariance and Correlation&lt;/li&gt;
    &lt;li id=&quot;dDPr&quot;&gt;Probability Mass and Density Functions&lt;/li&gt;
    &lt;li id=&quot;rsRW&quot;&gt;Binomial, Bernoulli, and Poisson Distributions&lt;/li&gt;
    &lt;li id=&quot;lNsr&quot;&gt;Normal Distribution and Z-Scores&lt;/li&gt;
    &lt;li id=&quot;7IFw&quot;&gt;Sampling and Bias&lt;/li&gt;
    &lt;li id=&quot;llmr&quot;&gt;Central Limit Theorem&lt;/li&gt;
    &lt;li id=&quot;AqRO&quot;&gt;Hypothesis Testing&lt;/li&gt;
    &lt;li id=&quot;vyHH&quot;&gt;Linear Regression&lt;/li&gt;
    &lt;li id=&quot;wgfR&quot;&gt;and much more!&lt;/li&gt;
  &lt;/ul&gt;

</content></entry><entry><id>iknahar:KamrunNahar-DataAnalytics-withPandas-1</id><link rel="alternate" type="text/html" href="https://teletype.in/@iknahar/KamrunNahar-DataAnalytics-withPandas-1?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=iknahar"></link><title>1. Getting Started?? With Pandas.</title><published>2023-03-26T05:50:10.823Z</published><updated>2023-03-26T17:51:16.390Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img1.teletype.in/files/4c/76/4c763b26-a2be-494b-8020-4a13da5b6306.png"></media:thumbnail><category term="data-analysis-with-pandas-amp-python" label="Data Analysis with Pandas &amp;amp; Python"></category><summary type="html">&lt;img src=&quot;https://cdn.sanity.io/images/oaglaatp/production/8898c481fb41f4f3ae01a6b7a9f6442ecbea0841-1200x800.png?w=1200&amp;h=800&amp;auto=format&quot;&gt;Fuel up your anaconda ( shoftware bundle of python)</summary><content type="html">
  &lt;figure id=&quot;9p2o&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://cdn.sanity.io/images/oaglaatp/production/8898c481fb41f4f3ae01a6b7a9f6442ecbea0841-1200x800.png?w=1200&amp;h=800&amp;auto=format&quot; width=&quot;1200&quot; /&gt;
  &lt;/figure&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(170, 33%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h2 id=&quot;ZsPU&quot;&gt;Install Anaconda&lt;/h2&gt;
  &lt;/section&gt;
  &lt;p id=&quot;dfdO&quot;&gt;Fuel up your anaconda ( shoftware bundle of python)&lt;/p&gt;
  &lt;p id=&quot;wqNj&quot;&gt;Installed? How would you know? Find this-&lt;/p&gt;
  &lt;figure id=&quot;EX3R&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/78/42/7842651c-9d88-4254-b76d-e6c6f5d80089.png&quot; width=&quot;359&quot; /&gt;
  &lt;/figure&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;SG1V&quot;&gt;To update Anaconda to the latest version:&lt;/p&gt;
  &lt;pre id=&quot;cYVz&quot; data-lang=&quot;python&quot;&gt;conda update conda&lt;/pre&gt;
  &lt;hr /&gt;
  &lt;hr /&gt;
  &lt;section style=&quot;background-color:hsl(hsl(170, 33%, var(--autocolor-background-lightness, 95%)), 85%, 85%);&quot;&gt;
    &lt;h2 id=&quot;YxUb&quot;&gt;Create Environment&lt;/h2&gt;
  &lt;/section&gt;
  &lt;p id=&quot;E1Lj&quot;&gt;conda info --envs [asking condas for information about environments. environment is the flag and that is why followed by two dash --] &lt;/p&gt;
  &lt;figure id=&quot;3x77&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/49/96/499683ef-8934-449d-9104-3d928d6070dc.png&quot; width=&quot;495&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;gHzN&quot;&gt;the asteric sign is saying that currently active environment is the base. &lt;/p&gt;
  &lt;p id=&quot;0iDr&quot;&gt;If we install any packages, it will be installed in the &lt;em&gt;base &lt;/em&gt;environment.&lt;/p&gt;
  &lt;p id=&quot;AVcE&quot;&gt;&lt;/p&gt;
  &lt;hr /&gt;
  &lt;p id=&quot;LvuG&quot;&gt;Create New Envs first&lt;/p&gt;
  &lt;pre id=&quot;niqT&quot;&gt;conda create --name pandas_playground&lt;/pre&gt;
  &lt;figure id=&quot;8gVd&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/8e/62/8e6261f8-ac17-472d-b6a0-274eeb0d3952.png&quot; width=&quot;663&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;IHSF&quot;&gt;To activate we need one last command&lt;/p&gt;
  &lt;figure id=&quot;b2zA&quot; class=&quot;m_custom&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/71/7b/717b644e-da07-4930-aa62-16e0c9b44d9e.png&quot; width=&quot;404&quot; /&gt;
  &lt;/figure&gt;
  &lt;pre id=&quot;bS5o&quot;&gt;conda activate pandas_playground&lt;/pre&gt;
  &lt;p id=&quot;9orE&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;22g5&quot;&gt;Activated:&lt;/p&gt;
  &lt;figure id=&quot;YYoo&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/36/25/36257387-c665-41fc-87f8-eadc89caeacc.png&quot; width=&quot;390&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;Xbkt&quot;&gt;&lt;/p&gt;
  &lt;p id=&quot;yznj&quot;&gt;Install Pandas Packages:&lt;/p&gt;
  &lt;pre id=&quot;MHhv&quot;&gt;conda install pandas jupyter bottleneck numexpr matplotlib&lt;/pre&gt;

</content></entry></feed>