<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hisyam S. Prabowo on Medium]]></title>
        <description><![CDATA[Stories by Hisyam S. Prabowo on Medium]]></description>
        <link>https://medium.com/@hisyamprabowo?source=rss-436e247fcbda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gswsaAiIBizn4yyPjz2UXw.png</url>
            <title>Stories by Hisyam S. Prabowo on Medium</title>
            <link>https://medium.com/@hisyamprabowo?source=rss-436e247fcbda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:46:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hisyamprabowo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Spatial Concordance Between Fire Detections and Oil Palm Concessions in Kalimantan 2026]]></title>
            <link>https://medium.com/@hisyamprabowo/spatial-concordance-between-fire-detections-and-oil-palm-concessions-in-kalimantan-2026-a6dbe45ee655?source=rss-436e247fcbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6dbe45ee655</guid>
            <category><![CDATA[forest-fires]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[arcgis]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Hisyam S. Prabowo]]></dc:creator>
            <pubDate>Sun, 13 Sep 2026 16:19:41 GMT</pubDate>
            <atom:updated>2026-09-13T16:19:41.224Z</atom:updated>
            <content:encoded><![CDATA[<p>National Disaster Mitigation Agency (BNPB) reported 38,310.89 hectares of land burned throughout West Kalimantan from January to August 2026, blanketing communities in thick haze, disrupting flights and school activities, and raising concerns over public health.</p><blockquote>by <a href="https://jakartaglobe.id/">Jakartaglobe.id</a> , “In Photos: Indonesia Forest Fires Blanket Sumatra and Kalimantan in Thick Haze”.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*psbiNIDKPUMsQnw_.jpg" /><figcaption>Figure 1. Source (Reuters/Ajeng Dinar Ulfiana)</figcaption></figure><h3>Introduction</h3><p>Kalimantan entered the 2026 dry season under a very strong El Niño signal, and between January and July WALHI recorded 34,262 hotspots and 33,837 hectares burned across the island, designating it the epicentre of the disaster [1], [2]. A purely climatological account of the season is nonetheless incomplete. Drought is necessary but not sufficient for landscape scale fire, which additionally requires ignition and a substrate capable of sustaining combustion; the more consequential question is why particular portions of the landscape had become so combustible [3]. Permitting expansion across peat hydrological units from the mid-2000s incentivised clearance by burning and canal drainage that desiccated the peat profile, converting a saturated carbon store into fire-prone substrate [2]. This shifts the explanatory burden from meteorology to tenure, and makes the licensed concession rather than the province or the watershed the analytically relevant unit.</p><p>The purpose of this analysis is to measure the correlation between fire occurrence and oil palm concession extent across Kalimantan during the 2026 season. It is undertaken for three reasons.</p><p><strong>The relationship is asserted but not quantified in public evidence.</strong> Indonesian law assigns responsibility for fire within a licensed area to the permit holder, and enforcement in 2026 proceeded on that basis, with 30 companies sealed across seven provinces covering 20,448.83 hectares of burned concession land by 4 September [4]. Yet the underlying factual claim is disputed: the Minister of Environment asserted at the 2026 National Environmental Consultation that no fires had occurred within corporate concessions, a claim WALHI rejected in open forum on the basis of satellite analysis, drone mapping and field verification [5]. Both parties draw on openly available detections. The disagreement concerns not the existence of the data but the method by which detections are attributed to tenure units precisely the condition under which a transparent, reproducible spatial workflow carries evidentiary value.</p><p><strong>The relationship is not collinear.</strong> Provincial oil palm area does not reproduce the provincial ranking of fire density: Central Kalimantan holds the largest estate yet the visually dominant detection cluster lies in West Kalimantan, while East Kalimantan combines a substantial estate with a comparatively sparse pattern.</p><p><strong>The problem is intrinsically geospatial.</strong> Fire arrives as georeferenced points with confidence attributes; concessions arrive as polygons with tenure attributes. Any defensible answer requires that these be brought into a common coordinate reference system and joined on geometry, then normalised by area so that large polygons are not mistaken for high incidence ones.</p><p>The analysis draws on three tenure and land-cover layers assembled in ArcGIS: oil palm concessions from Global Forest Watch (2024), oil palm concessions from Bappenas (2021), and deforestation extent for Kalimantan derived from the Indonesia Deforestation 2015–2020 dataset. The two concession sources differ materially in mapped extent, and that divergence is treated as an analytical asset rather than an inconvenience: reporting the overlap statistic against both sources tests whether any conclusion survives a change of tenure boundary, which is the central weakness of single-source overlap claims in this domain.</p><p>The analysis is confined to the 2026 season across the five Kalimantan provinces. It seeks to establish where fire occurred relative to licensed tenure, it does not seek to establish who ignited it, and spatial coincidence is not treated as evidence of causation or intent.</p><h3>Observed Distribution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVEopJ6MRqDTS_uZZvb16A.png" /><figcaption>Figure 2. Regions in Kalimantan affected by the forest fire.</figcaption></figure><p>The distribution is strongly concentrated. West Kalimantan alone accounts for 72% of detections, a share almost four times that of Central Kalimantan and eight times that of East Kalimantan.</p><h3>Normalisation Against Concession Area</h3><p>A raw share of detections is not by itself informative about concession exposure, since provinces differ substantially in the extent of licensed oil palm. Normalising each province’s detection share by its share of the charted concession estate yields a location quotient, where a value of 1.00 denotes detections proportionate to concession area, values above 1.00 denote over-representation, and values below denote under-representation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-R6jaHDVHxIv0QcYuoB3Lg.png" /></figure><p>Province shares computed across the three provinces represented in the detection composition (5.8 million hectares combined), hence that the two distributions share a common universe. The result inverts the ranking. Central Kalimantan holds the largest licensed estate yet registers only half the detections its area would imply. East Kalimantan is more strongly under-represented still, at roughly a third. West Kalimantan, despite holding the second largest province, records more than twice the detections proportionality would predict.</p><h3>Cross-Reference Against Bappenas 2021 Palm Oil Concession Layer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ELKyTqto5uBEZj9JsofJXQ.png" /><figcaption>Figure 3. BAPPENAS Palm Oil Concessions across Kalimantan 2021</figcaption></figure><p>The Bappenas 2021 layer, symbolised by concentration, places its densest clusters in a broad band across southern part of Central Kalimantan, on the South Kalimantan coastal plain and in the Kutai region of East Kalimantan, whilst West Kalimantan renders predominantly in pale tones. Under this delineation West Kalimantan carries nearly three-quarters of detections despite presenting among the least concentrated concession landscapes on the island, whereas southern Central Kalimantan holds the densest band mapped and registers only 18.8 per cent.</p><h3><strong>Divergence Global Watch Forest Layer 2024</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dRr9nWqiIEtqpgExlM7MyA.png" /><figcaption>Figure 4. Global Watch Forest, Palm Oil Concessions across Kalimantan 2024</figcaption></figure><p>The Global Forest Watch 2024 layer maps substantially more extensive concession coverage than Bappenas 2021. Global Forest Watch renders near-continuous concession coverage across the West Kalimantan lowlands and the full length of its western seaboard, extending through southern Central Kalimantan, South Kalimantan and the East and North Kalimantan coastal strips; Bappenas maps markedly sparser and more fragmented coverage over broadly the same regions. The consequence is that the two sources support opposite readings of an identical fire distribution. Under Global Forest Watch, West Kalimantan’s 72.3 per cent share of detections coincides with a densely licensed landscape and is consistent with a positive fire concession association. Under Bappenas, the same share falls on one of the island’s least concession-dense provinces and reads as the inversion described previously.</p><p>Alongside the polygon geometry, both dashboard states expose a licensed-operator inventory, and its structure is informative in its own right. The distribution is markedly top-heavy at the head and flat thereafter. PTPN XIII, the state plantation enterprise, holds 191,281 hectares approximately 2.09 times the holding of the next-largest operator, PT. Bonti Permai Jayaraya at 91,662 hectares after which the ranking descends gradually through PT. Sangata Andalan Utama (79,237 ha), PT Sumber Mitra Jaya (74,491 ha) and PT. Palmakharisma Sekawan (69,005 ha) to a long tail in which the 19th-ranked entity, PT. Mitra Inti Sejati Plantation, still holds 36,766 hectares. The nineteen largest operators together account for approximately 1.17 million hectares, or some 11.6 per cent of the reported total, indicating that the licensed area is not dominated by a small number of proprietors but distributed across a broad corporate base. Two features of the inventory qualify its use. Entities named for Sumatra, PT. Bakri Sumatera Plantation (49,031 ha) and PT. Sumatra Makmur Lestari (48,964 ha), appear in a Kalimantan-facing inventory, corroborating the national rather than island-restricted extent. PT. Smart Corporation is reported at 51,795 hectares in the unfiltered state against 37,238 hectares in the filtered state, a reduction of 14,557 hectares consistent with holdings falling outside the filter extent and accounting for part of the 640,622 hectares difference between the two totals.</p><p>A side note concerns entity currency rather than geometry. PTPN XIII, recorded here as the largest single holder, no longer exists as an independent legal entity. In December 2023 the Perkebunan Nusantara holding consolidated thirteen subsidiaries into commodity-based subholdings, with PTPN V, VI and XIII merged into PTPN IV as surviving entity to form the oil palm subholding PTPN IV PalmCo, alongside the spin-off of PTPN III (Persero) into PTPN IV. The 191,281 hectares attributed to PTPN XIII therefore now sit under PalmCo and its operating units. The consequence for this analysis is that the operator field records the licensee at the time of permit issuance rather than the entity currently accountable for the land, so an accountability claim addressed to a named operator may be addressed to a company that has been dissolved. Reconciling the inventory against present corporate structure mapping legacy licensees to surviving entities and their subsidiaries is a prerequisite for any operator-level finding.</p><p>This divergence constitutes the principal methodological result of the present stage. The location quotients were computed from a single set of provincial areas; because those areas cannot be assumed to hold under the alternative delineation, the quotients are source-conditional rather than properties of the landscape. Any overlap statistic derived from one layer alone would therefore be an artefact of source selection as much as a measurement of the phenomenon precisely the vulnerability to which single-source concession analyses in this domain are exposed, and a plausible mechanism by which parties working from the same fire data reach opposed conclusions. The point-in-polygon operation must accordingly be run against both layers independently, with the result reported as a range across sources and treated as robust only where the sign of the relationship is preserved.</p><h3><strong>Spread of Deforestation 2015–2020</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CRlCR2tVUlJGbkRZst1D-w.png" /><figcaption>Figure 5. Deforestation in Kalimantan between 2015–2020</figcaption></figure><p>The deforestation layer renders as a fine-grained, widely distributed scatter rather than the block geometry of either concession source, which is consistent with clearance proceeding incrementally along access corridors rather than as licensed-unit conversion. Its heaviest concentrations fall in the West Kalimantan lowlands, particularly along the Kapuas corridor and the north-western coastal plain, through the southern half of Central Kalimantan; along the eastern corridor of East Kalimantan around the Kutai and Berau systems; and in a pronounced band on the North Kalimantan coastal strip. The interior highlands along the Central-East Kalimantan divide remain comparatively intact. This distribution tracks the 2026 fire pattern more closely, West Kalimantan is simultaneously the most heavily cleared province in the layer and the province carrying 72.3 per cent of detections, whereas the correspondence between fire and licensed area was weak under Global Forest Watch and inverted under Bappenas.</p><p>The implication is that prior land-cover change may be the better spatial predictor of 2026 fire than tenure status, and that the operative mechanism is proximity to the conversion frontier rather than presence within a licensed boundary. Three constraints bound the inference. The layer covers 2015–2020 whilst the fire data are 2026, so the relationship is lagged by at least six years and clearance after 2020 is invisible to it. The comparison is visual and unnormalised, a defensible statement requires deforested area per province set against detection counts. Deforestation and concessions are not independent variables cleared land frequently lies within licensed boundaries, thus the two cannot be treated as competing explanations until the three-way overlap is computed. That computation, rather than further visual comparison, is the operation that would separate them.</p><blockquote><strong>note</strong>: the deforestation dataset is obtained from BPS. The layer’s embedded credit line additionally names SYSTEMIQ-processed inputs generating “Indonesia Deforestation 2015–2020” after Margono, Potapov, Turubanova, Stolle and Hansen, which is the originating scientific product.</blockquote><h3>Composite Overlay of Fire and Concession Sources</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yaATX6gijXdE9AoWckuGIw.png" /><figcaption>Figure 6. Multi-layered display of NASA FIRMS fire spots and Palm Oil Concessions from Global Forest Watch</figcaption></figure><p>Superimposing the MODIS detections on both concession layers gives the first direct view of spatial coincidence. Three patterns are legible. In West Kalimantan the correspondence is visually tight: the dense detection cluster sits on and immediately around the near-continuous concession polygons of the western lowlands and the south-western coastal plain, with few points falling on unlicensed ground. In Central Kalimantan the relationship is weaker in the opposite sense, concession coverage extends in a broad band across the southern half of the province, but detections are sparse relative to that coverage and are distributed along it rather than concentrated within it. Along the East and North Kalimantan coastal strips the coincidence is again reasonably close, with detection clusters falling on the coastal concession blocks around the Berau and Nunukan. The interior highlands contain neither concessions nor detections.</p><p>That last observation is the most important constraint on what follows, because it is a confounder rather than a finding. Both variables are absent from the interior, hence any correlation computed across the whole of Kalimantan will be inflated by a large body of territory in which neither is present, and will partly measure the shared avoidance of upland terrain rather than any association between fire and tenure. A defensible test must either restrict the universe to comparable lowland and peat strata or compare observed coincidence against a null model of randomly distributed points within that restricted area. Two further limits apply to the visual reading.</p><h3>Summary</h3><p>Fire detections in the 2026 season are heavily concentrated in West Kalimantan, which holds 72.3 per cent of the composition against 18.8 per cent in Central Kalimantan and 8.9 per cent in East Kalimantan. Normalised against provincial concession area, the ranking inverts: location quotients of 2.10, 0.50 and 0.32 respectively span a factor of approximately 6.6, and Central Kalimantan, the province with the largest licensed area, records half the detections proportionality would predict.</p><p>What that inversion means, however, depends on which tenure source is used, and this is the principal result of the present stage. Bappenas 2021 maps West Kalimantan as sparsely licensed, under which its 72.3 per cent share reads as a strong inversion; Global Forest Watch 2024 maps the same province as densely licensed, under which the identical share reads as a positive fire concession association. Two defensible sources support opposite answers to the research question. Any overlap statistic drawn from one layer alone would therefore be partly an artefact of source selection, a plausible mechanism for how parties working from the same fire data arrive at opposed public conclusions.</p><p>The deforestation layer offers a better-fitting alternative explanation. Clearance during 2015-2020 renders as fine-grained scatter concentrated in the West Kalimantan lowlands, southern Central Kalimantan and the eastern corridors, and this distribution tracks the 2026 fire pattern more closely than either concession layer does. The tentative implication is that proximity to the conversion frontier, rather than presence within a licensed boundary, may be the operative variable. Because cleared land frequently lies inside concessions, the two cannot yet be treated as competing explanations.</p><p>Spatial coincidence identifies where fire occurred upon registered palm oil concessions, not who ignited it, fire within a concession may be set by third parties or by encroachers, or may have spread from adjacent land and permit-holder responsibility is a normative allocation rather than a finding of causation. The defensible output is accordingly a count of detections coinciding with licensed area, reported per operator with source, vintage and precision caveats attached, phrased as coincidence rather than causation, and read as an indication of where verification effort might be directed, in the manner of the official indications now under investigation.</p><p>On the question of corporate involvement, external evidence establishes the phenomenon at the level of the licensed sector without reaching any individual operator. Independent monitoring places roughly 68,324 of the 285,914 hectares burned nationally between January and July inside industrial concessions, close to a quarter of the total, with oil palm the largest single category. The Environment Ministry had sealed 21 entities across seven provinces as at 2 September 2026, on suspicion of deliberate ignition, of which seven lie in West Kalimantan, the province that also carries 72.3 per cent of the detections examined here. That convergence is independent corroboration and notably is not the pattern the Central dominant island-wide reporting would predict. It does not, however, connect any licensed operator recorded to an enforcement action: the sealed entities are unnamed in available reporting, and the present analysis has established tenure, not conduct. The involvement hypothesis set out remains a hypothesis, and the operation that would test it has yet to be run.</p><p>What follows is therefore not further visual comparison but the point-in-polygon operation itself, run against both concession sources independently and reported as a range, within a stratified environment, and extended to the three-way intersection with prior deforestation.</p><h3><strong>References</strong></h3><p>[1] BMKG, in Detik, 21 August 2026. [2] Mongabay Indonesia, “Ketika Kebakaran Hutan dan Lahan Menggila di Kalimantan”, 6 August 2026. [3] The Conversation Indonesia, “Karhutla Kalimantan adalah drama berulang”, August 2026. [4] Kompas Regional, 4 September 2026. [5] AFU.id, “Walhi-Jumhur Ribut Soal Data Karhutla di Lahan Konsesi”, 21 August 2026.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6dbe45ee655" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[e-Library Management System ERD Design]]></title>
            <link>https://medium.com/@hisyamprabowo/e-library-management-system-erd-design-ecf65eaffad5?source=rss-436e247fcbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecf65eaffad5</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[erd]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Hisyam S. Prabowo]]></dc:creator>
            <pubDate>Mon, 15 Jul 2024 09:23:28 GMT</pubDate>
            <atom:updated>2024-07-15T09:23:28.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2q_HjvK5I7tgQw5i3Eq1A.jpeg" /></figure><h4>Mission Statement</h4><p>The mission of the e-library application is to manage multiple libraries efficiently, ensuring smooth operations in book lending, holding, and penalties while maintaining a comprehensive catalogue of books and user activities. The application aims to enhance the user experience by providing a robust platform for book borrowing, reviewing, and tracking user penalties.</p><h4>Description</h4><p>The e-library application is designed to handle various aspects of library management, including user registrations, book loans, holds, reviews, and penalties. It supports multiple libraries, each with a diverse collection of books categorized by different genres. The system ensures proper tracking of book quantities, user activities, and penalties for late returns.</p><h4>Features</h4><ol><li><strong>User Management: </strong>Tracks user details, membership types, and join dates.</li><li><strong>Book Catalog:</strong> Manages book details, including categories, titles, authors, genres, publishers, and ISBNs.</li><li><strong>Library Management: </strong>Handles multiple libraries, including their addresses, contact information, and websites.</li><li><strong>Loan Management: </strong>Keeps track of book loans, due dates, return dates, and loan groups.</li><li><strong>Hold Management: </strong>Manages holds on books, including hold dates and expiry dates.</li><li><strong>Penalty Management: </strong>Calculates penalties for late returns and maintains penalty records.</li><li><strong>Book Reviews: </strong>Allows users to review books and rate them.</li><li><strong>Category definition: </strong>Allow Categorizing for each books registered</li><li><strong>Registry Management: </strong>Records books registered in each library</li></ol><h4>Limitations</h4><ol><li><strong>Data Redundancy:</strong> Potential for data redundancy in user and book details across different libraries.</li><li><strong>Scalability:</strong> May require optimization for handling large volumes of data efficiently.</li><li><strong>Concurrency:</strong> Need for mechanisms to handle concurrent access to the database to ensure data consistency.</li></ol><h4>Database Design</h4><p>Table Definition for E-library Application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*OZZdNQej9AvF2dicqE7Djw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*_QHK-ggdKGEnW42OIfF8Yg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*49SHzQZYSCaBjTWjvNWMyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*cnxB5CDkelaFhVLSnL_c0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*oJ1mYo8gQ7mI1y6ERV_obw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*Xdk8ivddESVv-419mjbcXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*D7dWw2bujKUqSyuLFYq54A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*g7fHV_tVRlBPP3WgPhpjnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*6FSbJOIZ8pGvbG_wirwSSw.png" /></figure><p><strong>Relationships</strong></p><ul><li>The <strong>Libraries Table</strong>’s LibraryID column is a foreign key in the Loans Table and Registry Table.</li><li>The<strong> Books Table</strong>’s BookID column is a foreign key in the Loans Table, Holds Table, Registry Table, and Review Table.</li><li>The <strong>Users Table</strong>’s UserID column is a foreign key in the Loans Table, Holds Table, Penalty, and Review Table.</li><li>The <strong>Loans Table</strong>’s BookID column is a foreign key in the Books Table, and the UserID column is a foreign key in the Users Table.</li><li>The <strong>Holds Table</strong>’s BookID column is a foreign key in the Books Table, and the UserID column is a foreign key in the Users</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/0*916llGFYWsm6SHSw" /></figure><h3>Data Generation and Sources for E-Library Application</h3><h4>Data Sources and Methodology</h4><p>The data for the e-library application tables was generated using a combination of multiple sources and techniques to ensure a comprehensive and realistic dataset. The key sources and methods used include:</p><ol><li>Kaggle Datasets</li></ol><ul><li>Kaggle is a well-known platform that hosts a variety of datasets. Several relevant datasets were utilized to obtain realistic data for books, users, and libraries. These datasets provided a strong foundation for generating detailed and diverse data.</li></ul><p>2. Python Dummy Data Generation</p><ul><li>Python libraries such as Faker and NumPy were employed to generate dummy data for various fields in the tables. Faker was particularly useful for generating realistic names, addresses, and other personal information, while NumPy was used to create numerical data such as IDs and quantities.</li></ul><p>3. Excel Manipulation</p><ul><li>Microsoft Excel was used to further manipulate and refine the data. This included combining datasets from different sources, cleaning the data, and ensuring consistency across all tables. Excel’s powerful data manipulation capabilities allowed for efficient data merging, sorting, and validation.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecf65eaffad5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gender Prediction from Employment Characteristics Using Machine Learning]]></title>
            <link>https://medium.com/@hisyamprabowo/gender-prediction-from-employment-characteristics-using-machine-learning-7f86bd742d6c?source=rss-436e247fcbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f86bd742d6c</guid>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[gender]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Hisyam S. Prabowo]]></dc:creator>
            <pubDate>Thu, 25 Apr 2024 03:18:12 GMT</pubDate>
            <atom:updated>2024-04-25T09:18:28.191Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“I’ve always had a great work ethic, even when I was washing dishes.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*--A1mndIukJGqW3kJyT0TQ.png" /><figcaption>source: <a href="https://www.geeksforgeeks.org/employment-meaning-importance-basic-terms-of-employment-and-participation-of-people-in-employment/">Geeks for Geeks</a></figcaption></figure><h3>1. Abstract</h3><p>This study applies machine learning models to predict gender based on employment characteristics such as job position, salary, and education level. It explores the efficacy of various classification algorithms, optimizes them through hyperparameter tuning, and evaluates their performance using metrics like accuracy, precision, recall, F1-score, and AUC-ROC. This report details the methods, outcomes, and broader implications of using automated techniques to analyze and predict gender demographics within professional settings.</p><h3>2. Introduction</h3><p>Context and Motivation Machine learning has rapidly become a cornerstone in the extraction of meaningful insights from complex datasets. In professional settings, the intersection of gender with job positions and salaries provides a rich context for examining diversity and equity. This study is part of a broader project that applies classification models to discern patterns and potential discrepancies in employment data.</p><h4>2.1 Background</h4><p>The objective of this research is to apply classification algorithms to predict gender classes based on employment attributes, specifically job positions and salary. By analyzing these variables, the study aims to uncover the depth of gender representation across different professional levels and salary ranges. Understanding the major features affecting gender prediction is critical not only for the advancement of machine learning techniques but also for fostering workplace equality.</p><h4>2.2 Research Goals</h4><p>The goals of this project are twofold: to utilize machine learning models to predict gender based on job-related data accurately, and to identify the predominant factors that influence these predictions. Furthermore, the research intends to spotlight any underlying patterns that could suggest gender-based discrepancies within the dataset.</p><h3>3. Data Description</h3><p>Dataset Overview The dataset used in this study comprises 6690 entries, each representing an individual’s employment profile. The data spans six variables: Age, Gender, Education Level, Job Title, Years of Experience, and Salary. These entries are numerically indexed from 1 to 6704, indicating the presence of some missing indices which may suggest prior data cleaning or removal of records.</p><p><strong>Variables and Data Types:</strong></p><ul><li><strong>Age: </strong>A continuous variable measured in years and represented as a float64 type, suggesting the inclusion of fractional ages or a high precision of measurement.</li><li><strong>Gender:</strong> A categorical variable with textual labels, indicating the gender of each individual. Its non-null count suggests it is nearly complete, with only two entries missing.</li><li><strong>Education Level:</strong> Categorical data likely representing the highest education level attained, encoded as a numerical value (ordinal type), and nearly complete with only three missing entries.</li><li><strong>Job Title:</strong> A textual categorical variable describing the individual’s job designation. While this variable is essential for the analysis, it includes at least one missing value (as denoted by ‘nan’).</li><li><strong>Years of Experience: </strong>A continuous variable quantifying the individual’s professional experience in years, also nearly complete with three missing entries.</li><li><strong>Salary: </strong>A continuous variable representing annual income, which, like Age, is given in a float64 format to allow for high precision.</li></ul><h4>Preliminary Observations</h4><p>The dataset includes a variety of job titles from different sectors, indicated by the ‘Job Category’ column, such as IT, Sales and Marketing, and others. Position levels are numerically categorized, which may correlate with seniority or rank within the organization.</p><p>The range of ages, the spread of years of experience, and the variation in salary suggest a diverse dataset that could provide valuable insights into gender classification within a professional context. The education level is given as a numeric code, which would require an accompanying legend for interpretation.</p><h4>Missing Data</h4><p>Initial observations indicate that the dataset contains minimal missing values across the columns, with ‘Gender’ and ‘Salary’ having the least amount of complete data. The handling of these missing values will be critical to the accuracy of the predictive models.</p><h4>Integrity and Consistency</h4><p>The presence of consistent data types across entries indicates a high level of data integrity. However, the fact that the dataset has missing indices will require confirmation that no data is missing or incorrectly excluded during preprocessing steps.</p><h3>4. Data Preprocessing</h3><h4>4.1 Handling Missing Values</h4><p>Upon further inspection, the dataset contained several incomplete records with missing values across different variables. Specific entries were completely devoid of data (e.g., indices 173 and 261), while others were partially filled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*UEeXsCTi5pYuxymZiLD6KQ.png" /><figcaption>missing values across variables</figcaption></figure><p>Notably, a set of criteria was established to ensure the integrity and feasibility of the dataset:</p><ul><li><strong>Age Constraint:</strong> The minimum age was benchmarked at 17 years, implying that work experience (Years of Experience) for any individual should not exceed their age minimum 17 years.</li><li><strong>Gender Selection:</strong> The analysis focused on records with gender specified as ‘Male’ or ‘Female’, excluding any entries that did not conform to these categories.</li></ul><p><strong>Cleaning Strategy</strong> To address the missing data, the following strategy was employed:</p><ul><li><strong>Data Imputation: </strong>Initially, a decision matrix was applied to discern whether imputation would be appropriate for certain fields with minimal missing values.</li><li><strong>Record Exclusion:</strong> For entries with multiple missing fields, especially those lacking key variables like ‘Education Level’, ‘Job Title’, and ‘Salary’, the decision was made to exclude these from the dataset to maintain the quality and reliability of the model’s predictions. This was implemented through the application of a filter that identified any rows with missing values across the critical fields mentioned above, which were then removed from the dataset.</li></ul><p>The DataFrame was subsequently cleaned using the dropna method, effectively refining the dataset to only include complete records. This process resulted in a streamlined dataset with enhanced potential for producing valid gender classification results.</p><h4><strong>4.2 Handling Data Inconsistencies</strong></h4><p>In addition to dealing with missing values, our preprocessing workflow addressed inconsistencies in the data, particularly within the ‘Education Level’ variable. Initial exploration revealed multiple representations for similar education levels (e.g., ‘Bachelor’s’, ‘Bachelor’s Degree’, ‘PhD’, ‘phD’). To harmonize this data:</p><pre>for row,columns in salary_df.iterrows(): # iterrows to loop, rows or columns<br>  if columns[&#39;Education Level&#39;] == &quot;Bachelor&#39;s Degree&quot;:<br>    salary_df.at[row,&#39;Education Level&#39;] = &quot;Bachelor&#39;s&quot;<br>  elif columns[&#39;Education Level&#39;] == &quot;Master&#39;s Degree&quot;:<br>    salary_df.at[row,&#39;Education Level&#39;] = &quot;Master&#39;s&quot;<br>  elif columns[&#39;Education Level&#39;] == &quot;phD&quot;:<br>    salary_df.at[row,&#39;Education Level&#39;] = &quot;PhD&quot;</pre><ul><li>A unique set of values for ‘Education Level’ was identified to assess the extent of inconsistencies.</li><li>We iterated over each record using the iterrows() function to normalize the education levels to a consistent set of terms.</li><li>Conditions were applied to replace variations with standardized terms:</li><li>‘Bachelor’s Degree’ and ‘Bachelor’s’ were consolidated under ‘Bachelor’s’.</li><li>‘Master’s Degree’ and ‘Master’s’ were unified as ‘Master’s’.</li><li>Variants of ‘PhD’, including ‘phD’, were corrected to ‘PhD’.</li><li>The df.at[] functionality provided a precise mechanism for implementing these changes.</li></ul><h4>4.3 Post-Cleaning Verification</h4><p>Following the consistency checks and corrections, we re-examined the ‘Education Level’ variable to ensure that all entries conformed to the established standardized terms. The unique() function confirmed that only the desired categories (&#39;Bachelor&#39;s&#39;, &#39;Master&#39;s&#39;, &#39;PhD&#39;, &#39;High School&#39;) were present, reflecting a successful cleanup of the variable.</p><h4>4.4 Final Preprocessing Steps</h4><p>With the ‘Education Level’ standardized, the dataset now exhibits a uniform structure, facilitating more accurate and reliable analysis in the subsequent modeling phase. These preprocessing steps were pivotal in preparing the data for a classification model that could more accurately predict gender based on the provided employment characteristics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f86bd742d6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NYC Traffic Collisions Analysis and Visualisation]]></title>
            <link>https://medium.com/@hisyamprabowo/new-york-city-traffic-collisions-analysis-and-visualisation-183884382b37?source=rss-436e247fcbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/183884382b37</guid>
            <dc:creator><![CDATA[Hisyam S. Prabowo]]></dc:creator>
            <pubDate>Mon, 18 Mar 2024 08:04:08 GMT</pubDate>
            <atom:updated>2024-03-26T06:24:22.464Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWWb1Io2uVHbkp0ytdSjFg.png" /><figcaption>New York City’s Traffic on Peak Hour, <strong>NBC New York</strong></figcaption></figure><h3>Background</h3><blockquote>New York City, as one of the most densely populated and busiest metropolises in the world, grapples with a high volume of traffic each day. The bustling streets are often a site for motor vehicle collisions, posing significant risks to the safety of pedestrians, cyclists, and drivers alike. To mitigate these risks and enhance road safety, it is imperative to conduct a thorough analysis of traffic accidents.</blockquote><p>This report leverages data reported by the New York City Police Department (NYPD) from January 2021 to April 2023. Each record in this dataset represents an individual collision, providing comprehensive details such as the date, time, and location of the accident, the vehicles and victims involved, and contributing factors.</p><p>I have chosen to undertake a comprehensive analysis of this subject because it is an area where I have less familiarity. Facing this challenge intrigues me, as it presents an opportunity to expand my knowledge and skills.Through a meticulous examination of this data, I aim to uncover patterns and insights that could inform policy decisions and initiatives targeted at reducing traffic accidents in NYC.</p><h3>Dataset</h3><p>The dataset contains 238,421 records (rows) and 18 columns (variables). Each record represents an individual traffic collision event as reported by the NYPD between January 2021 to April 2023. The variables included in the dataset, along with their data types, are as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PSVI3urWukTk2wuOy7dqhg.png" /><figcaption>NYC Traffic Collisions 2021–2023 Dataset</figcaption></figure><ol><li><strong>Collision ID (int64):</strong> A unique identifier for each collision event. As an integer (int64), it can facilitate indexing and ensure that each record is distinct.</li><li><strong>Date (datetime):</strong> The date when the collision occurred.</li><li><strong>Time (datetime): </strong>The time when the collision occurred.</li><li><strong>Borough (object):</strong> The borough in NYC where the collision occurred. This categorical data is essential for geographical analysis and is represented as a string.</li><li><strong>Street Name (object): </strong>The name of the street where the collision took place. It’s a categorical variable that will be used for identifying hotspots for accidents.</li><li><strong>Cross Street (object):</strong> The nearest cross street to the collision’s location. This detail adds more geographical specificity and is also a categorical variable.</li><li><strong>Latitude (float64):</strong> The latitude coordinate of the collision’s location. As a float, it represents real numbers, allowing for precise location plotting.</li><li><strong>Longitude (float64):</strong> The longitude coordinate of the collision’s location, also a float for precision in mapping coordinates.</li><li><strong>Contributing Factor (object):</strong> A description of the factor contributing to the collision.</li><li><strong>Vehicle Type (object):</strong> The type of vehicle involved in the collision. This categorical variable can help identify if certain vehicle types are more frequently involved in collisions.</li><li><strong>Persons Injured (</strong>int64<strong>):</strong> The number of people injured in the collision.</li><li><strong>Persons Killed (</strong>int64<strong>) :</strong> The number of people killed in the collision.</li><li>The remaining variables detail the number of p<strong>edestrians, cyclists,</strong> and <strong>motorists injured and died</strong> (int64). These integers provide critical information for assessing the impact of collisions on different road users.</li></ol><h4><strong>Missing Value Handling</strong></h4><p>Given the significant number of records missing longitude and latitude, and fewer missing values for borough and street name, the next step is to consider strategies for filling in these missing longitude and latitude values.</p><p>The strategies might include:</p><ol><li><strong>Imputation based on available data</strong>: If there are other location-related columns (like borough, street name), we could use them to impute the missing Latitude and Longitude values.</li><li><strong>Using external data sources</strong>: We can use external datasets or APIs (like Google Maps API) to find Latitude and Longitude based on other information present in each row.</li><li><strong>Assigning to a central location</strong>: For some analyses, assigning missing coordinates to a central location within a known boundary (such as the center of the city or borough) might be acceptable, depending on the analysis’s goals and the geographic distribution of the data.</li><li><strong>Statistical imputation</strong>: Implementing a model to predict missing values based on the relationship between Latitude/Longitude and other variables in the dataset.</li></ol><ul><li><strong>Longitude: </strong>22,323 null values</li><li><strong>Latitude:</strong> 22,323 null values</li></ul><p>I decided to proceed with “<em>Average Coordinates within Each Borough”</em> For rows imputation, by calculating the average Latitude and Longitude for each Borough from the existing, non-null entries. Subsequently, assigned these average coordinates to missing values within the same borough and street name</p><p>This approach should effectively fill in the missing Latitude and Longitude values where possible, based on the recalculated borough averages. After completing this step, it&#39;s good practice to recheck the dataset to confirm that the intended imputations have been successfully applied and to ensure there are no remaining missing values in these critical columns.</p><pre>&#39;&#39;&#39;<br>We need to group Streets based on their Borough.<br>Hence, the empty borough can be filled based on their respective street name<br><br>&#39;&#39;&#39;<br>lat_long_group = pd.pivot_table(NYC_Collisions, index=[&#39;Borough&#39;,&#39;Street Name&#39;],<br>                                values = [&#39;Latitude&#39;,&#39;Longitude&#39;] , aggfunc = &#39;mean&#39;).reset_index()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*HozKRdQ4C-d9hoQBndaleg.png" /><figcaption>Grouped Borough and Street name , mean latitude and longitude</figcaption></figure><p>As we obtained the following output, perform the imputation on the Nan row of Latitude and Longitude matching their respective ‘Borough’ and ‘Street name’, as a result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*prwxke0ERoImp6Git-jkig.png" /><figcaption>Remaining missing longitude and latitude</figcaption></figure><p>From here we may drop the remaining missing longitude and latitude rows, to improve the accuracy in geomap analysis.</p><h3>Objectives</h3><p>The primary objective of this report is to analyze the NYC traffic accident data comprehensively to understand the dynamics and patterns that characterize road incidents within the city. The analysis is structured to achieve the following goals:</p><ol><li><strong>Trend Analysis</strong>: To identify the trends of traffic collisions each month and year, helping to discern any temporal patterns that may exist. Understanding these trends is crucial for recognizing periods of high risk and can guide the allocation of resources for traffic management and accident prevention.</li><li><strong>Monthly Collision Comparison</strong>: To compare the percentage of collisions per total accidents by month, aiming to uncover any specific patterns that emerge on a monthly basis. This comparison will provide insights into whether certain times of the year are more prone to accidents than others, potentially correlating with seasonal factors or city-wide events.</li><li><strong>Frequency Breakdown by Time</strong>: To break down the frequency of accidents by day of the week and hour of the day. This aspect of the analysis seeks to pinpoint the times when accidents are most likely to occur, offering valuable information for targeted safety campaigns and enforcement strategies.</li><li><strong>Geographical Analysis</strong>: To identify the street where the most accidents were reported. By pinpointing accident hotspots, this analysis aims to direct attention to areas in need of infrastructural improvements or enhanced traffic enforcement.</li><li><strong>Contributing Factors Analysis</strong>: To determine the most common contributing factors for the accidents reported. Understanding these factors is key to developing preventative measures that address the root causes of collisions, be it driver behavior, environmental conditions, or road design flaws.</li></ol><p>Through these analyses, the report aims to provide NYC Traffic Officers with actionable insights and recommendations to improve road safety in New York City, ultimately reducing the incidence and severity of traffic accidents.</p><h3>Analysis and Insights</h3><p>Initially we explore the <strong>trends of traffic collision by monthly and each year</strong>. Utilize the ‘Date’ variable to aggregate the number of collisions per month and per year. Plotting time series graphs will illustrate trends and allow for comparison between different time intervals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*ycsLCcyM6KPMiiAKww7C2g.png" /><figcaption>Trend of Traffic Collisions in 2021</figcaption></figure><p>The general trend of traffic incidents occurred in 2021, depicted significant rise from January to December. The year starts with a lower number of collisions in January just above 7500 incidents, followed by a significant increase that peaks in June at 10500 occurrence, suggesting a possible correlation with seasonal factors or city activities.</p><p>Subsequent to June, there’s a noticeable dip in July, followed by a plateau through September, indicating a period of relative stability in the number of collisions. A downward trend from October is observed, with December marking the lowest number of collisions, which might be attributed to the winter season and potentially less traffic due to holiday breaks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*etdOwmvn-rriAWRLWJtqoQ.png" /><figcaption>Trends of Traffic Collision in 2022</figcaption></figure><p>Moving to 2022 trend , the number of collisions begins relatively high in January, continued with a sharp decrease in February. A dramatic rise of 1500 incidents from February to March, with collisions plateauing through the summer months until a peak in August.</p><p>Following August, a significant drop into September and another peak in October, indicating variable factors influencing collision rates. The year ends with a steep decrease from November to December.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*dQK1jFCk1e-bOl3UXrq-UQ.png" /><figcaption>Trends of Traffic Collisions in 2023</figcaption></figure><p>As for 2023, it started off similar to previous years with just above 7,000 collisions, which then declines sharply to about 6,000 in February and continues to drop to approximately 4,000 in March. The year started with a relatively high number of collisions in January, slightly decreasing in February. However, there was an increase in March, suggesting a fluctuating pattern in the first quarter.</p><p>A significant drop in the number of collisions is observed in April, this may be due to incomplete data retrieval. The data from 2021, 2022 and 2023 suggest a similar pattern in the first 3 months, seasonal influence on collision numbers, with higher incidents occurring around the middle of the year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*iDgz4ygBKz8KrhGwfoWQJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*LB5oq3VasqNCoCDvigt6og.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*bhm-Ru8frNGJ5C3VT4A0bw.png" /></figure><p>The three bar charts illustrate the <strong>monthly percentage of traffic collisions</strong> per total accidents during that year. Occurred in New York City across three consecutive years: 2021, 2022, and 2023. From these visualizations, we can discern a pattern that unfolds over the years.</p><p>In the <strong>2021 chart</strong>, the percentage of collisions starts relatively low in January and progressively increases, peaking during the mid-year months of June, July, and August before it slightly tapers off towards the end of the year. This pattern suggests that there is a higher proportion of collisions during the summer months, which could be attributed to a variety of factors, including increased traffic due to tourism and outdoor activities, as well as possibly more relaxed driving attitudes during warmer weather.</p><p>The <strong>2022 chart</strong> displays a similar trend, with the percentage of collisions showing a modest increase from the start of the year, reaching a plateau during the mid-year months, and then declining towards the year’s end. Again, the mid-year months stand out as having a higher percentage of collisions, endorsing the trend observed in the previous year.</p><p>Furthermore on <strong>2023</strong>, which only includes data up to March, shows a sharp increase in the percentage of collisions in February and March compared to January. This early data hints that the trend may continue, with the potential for an increase in collision percentages as the year progresses into the warmer months.</p><p>Overall, when these charts are compared, they consistently indicate a rise in the proportion of collisions during the middle of the year. The trend over the three years corroborates the seasonal increase in collisions, which may suggest that the time of the year significantly influences the likelihood of traffic accidents in NYC. This insight could be crucial for traffic safety authorities to consider when planning preventive measures and safety campaigns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*2AjrTfPVilvGfo5UcRFekw.png" /></figure><p>Observing the frequency of accidents for each day of the week. Friday stands out as the day with the highest number of total accidents across 5 boroughs, depicted by the tallest bar, indicating that it is the peak day for collisions. It reaches significantly above 35000 incidents higher than the rest, which suggests a marked increase in accident frequency.</p><p>Contrastingly, Sunday shows the lowest number of accidents, as shown by the shortest bar in yellow. This implies that Sunday is the safest day in terms of accident frequency. Monday through Thursday demonstrate a fairly consistent pattern, with each day having a similar count of accidents.</p><p>This pattern might suggest that the end of the workweek sees increased travel and potentially more casual or leisure driving, which could contribute to the spike in accidents. Conversely, Sunday, which could be assumed to be a rest day for many, shows reduced traffic activity, hence the lower accident frequency. The consistency from Monday to Thursday may reflect routine workweek behavior. These trends could have implications for traffic management and the planning of enforcement measures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F8e8O90E76HYl7-tc_Xihw.png" /></figure><p>The peak of accident frequency occurs in the later afternoon, between 2 p.m. and 6 p.m., as depicted by the tallest bars in dark blue and purple. This time period likely coincides with the end of the school day and the evening rush hour, when there is high traffic volume due to people commuting from work and school.</p><p>After this peak, there is a noticeable decline in the frequency of accidents in the late evening hours, from 7 p.m. onwards. The bars in shades of teal indicate a gradual decrease as the night progresses. However, there is a slight uptick at around 9 p.m., which then diminishes into the late-night hours.</p><p>It’s interesting to note that a high number of accidents occurred around midnight, which is counterintuitive given that traffic volume is typically lower during these hours compared to daytime or early evening. Possibility of incidence caused by impaired driving due to alcohol or fatigue, which can increase the risk of accidents. Visibility is also reduced at night, and there may be fewer pedestrians and vehicles, which can sometimes lead to higher speeds and a greater severity of collisions when they do occur.</p><p>It would be important to analyze the specific conditions at midnight that contribute to this trend, such as the type of areas where these accidents occur (e.g., entertainment districts, highways), to better understand the causes and to develop targeted safety measures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jiiGMeShXS7Q9Dxm_rUEvw.png" /><figcaption>Distribution of Casualties Jan 2021 — Apr 2023</figcaption></figure><p>Based on traffic casualties trend, particularly injuries, have a tendency to rise around the middle of the year, which can be observed from the clusters of green dots that appear denser during these periods. This could potentially indicate a seasonal pattern where incidents leading to injuries increase during the warmer months. Factors such as increased travel, more active construction, or changes in driving behavior during summer months could contribute to this trend.</p><p>However, the frequency of fatalities, represented by the red dots, remains consistently low throughout the year without a noticeable increase during any particular season. It’s important to note that the visual representation does not show a significant seasonal variance in deaths; they are relatively sparse and distributed evenly across the timeline. The consistency in fatalities suggests that while the conditions leading to higher injury incidents in mid-year may not significantly affect the number of fatal accidents, the overall risk of traffic incidents still increases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93_7cpg8i8eG6J7MYN3Ktg.png" /><figcaption>Severity of Incidents in 24 Hour</figcaption></figure><p>Furthermore, unique insight may be perceived from <strong>Severity Distribution</strong>, which refers to the intensity or seriousness of the traffic accidents in terms of the outcomes for the individuals involved. Here’s how the graph depicts severity through two main outcomes:</p><p>Injury Casualty <strong>(Green dots)</strong>: These data points represent the number of persons who were injured in traffic accidents at various hours throughout the day. Injuries can range from minor to severe, but they are non-fatal in these instances. The higher the number of green dots at a particular hour, the more individuals were injured in accidents during that hour.</p><p>Death Casualty <strong>(Red dots)</strong>: These data points show the number of persons who were killed in traffic accidents. This is the most severe outcome of a collision, hence the use of the red color to signify the gravity of the outcome. Like the injury data, a higher number of red dots at a particular hour indicates more fatalities due to accidents during that hour.</p><p>The patterns observed can also provide insights into potential risk factors associated with time of day. For instance, if there is a spike in red dots at rush hours, it might suggest that the severity of accidents is higher when the roads are busiest. If red dots are more frequent late at night, this might be connected to factors such as reduced visibility or higher incidences of driving under the influence.</p><p>In summary, “severity” in this visualization is about the consequences of the accidents — with injury indicating a less severe outcome compared to death, which represents the most severe outcome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkTEnUBvxZagmnhoFKeDIw.png" /><figcaption>Boroughs and Incidents Causes Percentage</figcaption></figure><p>Moving on to the bigger picture, providing a comprehensive overview of NYC collision injuries by borough and the major causes of these injuries. The bar chart on the left indicates that Brooklyn has the highest number of incidents resulting in injury, with a staggering total of 39,358 persons injured. It is followed by Queens with 32,006 injuries, the Bronx with 21,059, Manhattan with 17,473, and Staten Island with the fewest at 5,731.</p><p>Before delving into the pie chart analysis, it would be beneficial to categorise each contributing factor into broader groups to simplify the analytical process. Following are the list of ‘<strong>Contributing Factor</strong>’ to be categorised into 10 groups; <em>Electronic-Related Distraction, Driving Under Influence (DUI), Careless Driving, Reckless / Dangerous Driving, Health-Related Issues, Environmental Factors, Vehicle Failure, Roadway Issues, Outside Interference, Unspecified.</em></p><pre>NYC_Collisions[&#39;Contributing Factor&#39;].unique()<br><br>       &#39;Pavement Slippery&#39;, &#39;Unspecified&#39;, &#39;Fell Asleep&#39;, nan,<br>       &#39;Pedestrian/Bicyclist/Other Pedestrian Error/Confusion&#39;,<br>       &#39;Other Vehicular&#39;, &#39;Passing Too Closely&#39;, &#39;Following Too Closely&#39;,<br>       &#39;Turning Improperly&#39;, &#39;Unsafe Speed&#39;,<br>       &#39;Driver Inattention/Distraction&#39;, &#39;Alcohol Involvement&#39;,<br>       &#39;Accelerator Defective&#39;, &#39;Failure to Yield Right-of-Way&#39;,<br>       &#39;Backing Unsafely&#39;, &#39;Passing or Lane Usage Improper&#39;,<br>       &#39;View Obstructed/Limited&#39;, &#39;Tire Failure/Inadequate&#39;,<br>       &#39;Driver Inexperience&#39;, &#39;Steering Failure&#39;,<br>       &#39;Reaction to Uninvolved Vehicle&#39;, &#39;Fatigued/Drowsy&#39;,<br>       &#39;Aggressive Driving/Road Rage&#39;, &#39;Traffic Control Disregarded&#39;,<br>       &#39;Unsafe Lane Changing&#39;, &#39;Drugs (illegal)&#39;, &#39;Passenger Distraction&#39;,<br>       &#39;Illness&#39;, &#39;Oversized Vehicle&#39;, &#39;Glare&#39;, &#39;Lost Consciousness&#39;,<br>       &#39;Outside Car Distraction&#39;, &#39;Obstruction/Debris&#39;, &#39;Animals Action&#39;,<br>       &#39;Traffic Control Device Improper/Non-Working&#39;,<br>       &#39;Pavement Defective&#39;, &#39;Brakes Defective&#39;,<br>       &#39;Other Electronic Device&#39;, &#39;Prescription Medication&#39;,<br>       &#39;Failure to Keep Right&#39;, &#39;Lane Marking Improper/Inadequate&#39;,<br>       &#39;Driverless/Runaway Vehicle&#39;, &#39;Physical Disability&#39;,<br>       &#39;Cell Phone (hand-Held)&#39;, &#39;Shoulders Defective/Improper&#39;,<br>       &#39;Tow Hitch Defective&#39;, &#39;Tinted Windows&#39;, &#39;Headlights Defective&#39;,<br>       &#39;Vehicle Vandalism&#39;, &#39;Listening/Using Headphones&#39;, &#39;Texting&#39;,<br>       &#39;Using On Board Navigation Device&#39;, &#39;Eating or Drinking&#39;,<br>       &#39;Windshield Inadequate&#39;, &#39;Other Lighting Defects&#39;,<br>       &#39;Cell Phone (hands-free)&#39;</pre><p>The pie chart on the right details the causes of injuries, revealing that <em>‘Careless Driving’ </em>is by far the majority cause, accounting for 54.74% of injuries which amounts to 60,341 individuals affected. This is followed by a significant number of injuries classified as <em>‘Unspecified’,</em> representing 21.94% of the total. <em>‘Reckless/Dangerous Driving’</em> is also a major factor, contributing to 17.79% of injuries.</p><p><em>‘Outside Interference’</em> and <em>‘Environmental Factors’</em> account for a smaller proportion of the injuries, with 2.92% and a comparatively negligible percentage, respectively. This suggests that driver behavior is the most critical area to address for improving road safety in New York City.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*vlekjeeS6cnJ3Ir3uICaug.png" /><figcaption>Majority Incidents Factor</figcaption></figure><p><strong>Top 3 Injury Factor and Casualty,</strong> presents a clear comparison of injury incidents across three categories of traffic participants: motorists, pedestrians, and cyclists. These incidents are further categorized based on the reported causes: Careless Driving, Unspecified, and Reckless/Dangerous Driving.</p><p>The most striking figure is the number of motorist casualties due to Careless Driving, towering at 39,864 incidents. This category alone surpasses the combined total of all other categories, underscoring the critical impact of careless driving on motorist safety. Pedestrian injuries due to Careless Driving are also significant, marked at 10,889, which is considerably higher than that of cyclists at 6,439, indicating that pedestrians are also substantially affected by this factor.</p><p>In contrast, Reckless/Dangerous Driving, while less frequent, still results in a considerable number of motorist injuries, with 17,147 reported cases. Notably, the impact on pedestrians and cyclists is drastically lower in this category, with 1,082 and 922 injuries respectively, suggesting that the consequences of reckless behavior are more contained to motorists themselves than to other road users. For incidents with Unspecified causes, the injury counts are 14,204 for motorists, 6,038 for pedestrians, and 2,908 for cyclists, showing a more balanced distribution among the groups compared to the other categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HiDU8MrP_O-ikZs3qSI-nA.png" /><figcaption>NYC Streets with Majority Incidents</figcaption></figure><p>As we analyse further, in the <strong>Top 20 Streets in New York City</strong> with the highest number of injury incidents, Brooklyn’s streets discovered with the most recorded injuries is Belt Parkway with a significant count of 1,778 persons injured, followed by Atlantic Avenue with 964 injuries. Brooklyn is particularly noteworthy as it occupies the top spot with Belt Parkway and has several other streets listed, indicating a higher concentration of injuries within this borough.</p><p>In contrast, Manhattan shows fewer streets on the list, with the FDR Drive leading with 1,045 injuries and Broadway showing 693. Queens has the street with the second-highest number of injuries, Long Island Expressway, at 1,274, closely followed by Grand Central Parkway with 956 injuries.</p><p>The Bronx’s major hotspot for injuries is the Major Deegan Expressway with 889 recorded injuries. The data implies that expressways and major thoroughfares in New York City are prominent locations for incidents leading to injuries, and there is a disparity in the number of injuries among different boroughs and streets.</p><h3><strong>GEOMAP Analysis</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NpezDOjeZ_j01-OFqZ94g.png" /><figcaption>Careless driving incidents in Brooklyn , April 2023</figcaption></figure><p>I decided to explore and visualize through geomapping. The maps use colored circles to represent the location and density of traffic incidents, providing a visual summary of accident distribution within these areas.</p><p>For the Bronx, the collisions are scattered across the borough, with some clusters indicating higher incident areas. Larger circles may represent higher collision frequencies or more severe incidents. The pattern indicates that traffic incidents are not confined to a single area but are widespread, with certain streets or intersections experiencing more frequent incidents.</p><p>The Brooklyn map shows a similar dispersion of collisions, with several areas displaying larger circles, again suggesting higher frequency or severity. Notably, Brooklyn’s map has a higher density of collisions along major roads and intersections, likely reflecting heavier traffic flow or more complex traffic conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jW_8NE5DpfRAzv96bhcTFA.png" /><figcaption>Driving under influence incidents in Bronx , 2021–2023</figcaption></figure><p>These geomaps are interactive visual tools for analyzing traffic collisions in the Bronx and Brooklyn. To read the maps:</p><ol><li><strong>Accident Indicators :</strong> Locations of collisions are marked with circles. The size and color of each circle correspond to the frequency and severity of accidents. Larger and darker colored circles, especially those in red, indicate areas with a higher number of accidents.</li><li><strong>Selectors and Filters </strong>: In the top corner of the maps, there are selectors that allow users to filter the data displayed. Users can choose specific dates to see when accidents occurred. Additionally, there are options to select the type of incident (like ‘Careless Driving’ or ‘DUI’) to see how different factors contribute to accidents.</li><li><strong>Borough Selection :</strong> Users can also filter the map by borough to isolate the data for the Bronx or Brooklyn, providing a focused view on the selected area.</li><li><strong>Interactivity :</strong> By interacting with the map, one can zoom in and out to get a macro or micro perspective, hover over or click on the circles to get more information on specific incidents, and scroll through time to observe patterns or changes in accident frequency over time.</li></ol><p>By utilizing these features, one can gain insights into the patterns and hotspots for traffic incidents within these boroughs, which can be critical for urban planning, policy-making, and public safety initiatives.</p><h3>Conclusion</h3><p>The comprehensive analysis of New York City’s traffic collision data from 2021 to 2023 reveals distinct patterns and insights into road safety in the metropolis. The seasonal trend observed in the percentage of collisions indicates a higher incidence rate during the warmer months, particularly in mid-year, suggesting that the increase in traffic volume, possibly due to tourism and recreational activities, correlates with a rise in traffic incidents.</p><p>This trend is coupled with the finding that Friday with the most frequent accidents, potentially due to a combination of end-of-week traffic congestion and increased leisure travel. Moreover, the evening hours are not the peak time for accidents as one might expect; rather, incidents are surprisingly high around midnight, majority affecting motorist caused by careless driving with nearly 40,000 cases and followed by reckless driving , hinting at factors like reduced visibility or late-night driving behaviors contributing to risk.</p><p>Interactive geomaps drove a conclusion that traffic incidents are widely distributed across the boroughs, with some streets and intersections experiencing a higher concentration of accidents. These data-driven insights underline the importance of targeted interventions, such as enhanced traffic enforcement on weekdays and during summer months, improved street lighting, and public awareness campaigns focused on nighttime driving safety.</p><p>The continuous monitoring and analysis of such data are imperative for developing effective strategies to enhance road safety and reduce traffic-related injuries and fatalities in New York City.</p><h3>Links</h3><p><strong>Dashboard | </strong><a href="https://public.tableau.com/app/profile/hisyam.prabowo/viz/NYCTrafficCollisions2021-2023/NYCMap"><em>https://public.tableau.com/app/profile/hisyam.prabowo/viz/NYCTrafficCollisions2021-2023/NYCMap</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=183884382b37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maven Toys Sales — Pacmann Project]]></title>
            <link>https://medium.com/@hisyamprabowo/maven-toys-sales-pacmann-project-2965b1a6600f?source=rss-436e247fcbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/2965b1a6600f</guid>
            <dc:creator><![CDATA[Hisyam S. Prabowo]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 00:55:31 GMT</pubDate>
            <atom:updated>2024-02-05T08:43:32.844Z</atom:updated>
            <content:encoded><![CDATA[<h3>Maven Toys Sales — Pacmann Project 1.0</h3><h3>Background</h3><p>Understanding the Fabric of Retail Through Toys: A Dive into Maven Toys’ Sales Data</p><p>In the dynamic landscape of retail, the insights drawn from sales data can shape the strategies that propel businesses towards success. Maven Toys, a distinguished name in the toy industry in Mexico, offers a fascinating opportunity to delve into such insights. My interest in discussing this topic is threefold:</p><ol><li><strong>Simplicity, Quality and Clarity</strong>: The Maven Toys Sales dataset is a robust yet straightforward representation of retail dynamics. With clean and well-structured data, spanning from January 2017 to September 2018, embodies this quality with its meticulously recorded sales, inventory, products, and store information. Iit becomes a canvas to illustrate the various strokes of retail analysis. This simplicity is not just an ease of use but a doorway to understanding complex patterns in consumer behavior and inventory management.</li><li><strong>Passion for the Product</strong>: My personal affinity for toys amplifies my enthusiasm for this analysis. It brings a sense of pleasure and nostalgia that fuels my dedication to exploring the data deeply and thoughtfully.</li></ol><p>We will navigate through various facets of the data, from identifying the best-selling categories to understanding store performance, examining profit margins to investigating inventory turnover, each step will take us closer to comprehending the complex yet captivating world of retail sales.</p><h3>Objectives</h3><p>To extract meaningful insights from the Maven Toys sales data, we will pursue the following objectives:</p><ol><li>Identify the<strong> Most Popular Product Categories by Sales Volume</strong> Across Different Store Locations: This will help understand consumer preferences and the effectiveness of product placement strategies in different types of locations (e.g., downtown, commercial, airport).</li><li>Analyze <strong>Sales Trends Over Time</strong> for Selected <strong>Product Categories</strong>: By examining the sales trends over the selected period, we can gauge the seasonality effects, market dynamics, and the success of marketing campaigns.</li><li>Determine the <strong>Most Profitable Products</strong>: Understanding which products offer the highest profit margins can inform inventory purchase decisions and highlight potential areas for pricing strategy adjustments.</li><li>Assess the<strong> Geographic Spread of Customer Base and Profitability</strong> by City: This analysis will reveal which geographic areas are most lucrative and whether there is alignment between the distribution of the customer base and profitability.</li><li>Compare <strong>Store Performance</strong> in Terms of Revenue and Profit Relative to Their Opening Dates: This will show how store maturity impacts financial performance and could guide future expansion strategies.</li><li>Evaluate the <strong>Correlation Between Store Location and Profit versus Revenue</strong>: This objective seeks to understand the influence of store location on financial outcomes, which can be critical for real estate and expansion planning.</li><li>Investigate the <strong>Correlation Between Store Open Date and Revenue</strong>: This analysis will discern if there is a tendency for older stores to generate higher revenue compared to newer ones, which can inform long-term business growth strategies and the potential longevity benefits of store locations. Understanding this relationship is crucial for forecasting revenue expectations based on store age and for making informed decisions about the potential lifecycle profitability of new stores.</li><li>Analyze <strong>Profit Generation by Product Category</strong> in <strong>Different Cities</strong>: Insight into which product categories are more profitable in certain cities can guide localized marketing efforts and inventory distribution.</li><li>Identify <strong>Slow-Moving Inventory</strong>: Pinpointing products with low inventory turnover rates can help in devising clearance strategies and preventing overstocking in the future.</li></ol><p>These objectives are pivotal for the strategic planning of Maven Toys. They provide actionable insights that can improve decision-making in areas like inventory management, marketing, and store development. Understanding these aspects will enable Maven Toys to optimize its operations, enhance customer satisfaction, and increase profitability.</p><h3>Dataset</h3><p>The dataset I have chosen to employ for this analysis is a comprehensive collection of sales data from Maven Toys, housed within the Maven Data Playground. This dataset is a treasure trove of retail sales information specific to the toy industry within Mexico, covering a significant period from January 2017 to September 2018. Below are the details and justifications for the selection of this dataset:</p><p>Information Contained:</p><ul><li><strong>Products Table</strong>: Features 35 different toys, including each product’s category, cost, and retail price.</li><li><strong>Stores Table</strong>: Details of 50 Maven Toys store locations, encompassing store name, type, location, and the date each store opened.</li><li><strong>Sales Table</strong>: Contains the heart of the dataset with over 800,000 sales transactions, recording units sold.</li><li><strong>Inventory Table</strong>: Provides over 1,500 records that represent the stock on hand of each product in each store as of October 1, 2018.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*ZGihMOtf1g_hR7f3yXWXsA.png" /><figcaption>Maven Toys Dataset: Sales and Inventory Table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hen_PO0LgcdY0YPKexGTwQ.png" /><figcaption>Maven Toys Dataset: Products and Stores Table</figcaption></figure><p><strong>Source of the Dataset</strong>: The dataset originates from <strong>Maven Data Playground</strong>, a repository that likely serves as a resource for data analysis practice, research, and educational purposes.</p><p><strong>Reason for Usage</strong>: This dataset is selected for its pristine, real-world representation of retail operations, particularly in the toy industry, which is both sizable and pertinent for a plethora of analytical objectives. Its well-maintained and granular nature allows for in-depth analysis of sales patterns, inventory management, profitability, and customer distribution, which are critical for strategic business decisions.</p><p>To answer the outlined objectives, the following features from the dataset are utilized:</p><ul><li><strong>Product Category and Name</strong>: To identify sales trends and profitability of product lines.</li><li><strong>Sales Units and Revenue</strong>: To evaluate the popularity and financial impact of different products and categories.</li><li><strong>Store Location and Type</strong>: For assessing geographical and locational influences on sales and customer distribution.</li><li><strong>Store Open Date</strong>: To correlate store age with revenue generation.</li><li><strong>Inventory Records</strong>: To identify slow-moving inventory by analyzing stock levels and turnover rates.</li></ul><p>By leveraging these features, we aim to uncover patterns and insights that can drive Maven Toys’ strategic direction and operational efficiencies. The dataset is not only a foundation for descriptive analysis but also serves as a basis for predictive modeling and prescriptive analytics, thereby encapsulating a full spectrum of data-driven decision-making tools.</p><h3>Insights</h3><h4>1. Sales Transactions by Product Category and Location</h4><p>The bar chart displays the sales volume broken down by product categories across various store locations. We can observe that all product category thrives well in Downtown areas, specifically Art &amp; Crafts perform significantly well in Downtown and Commercial areas, indicating a strong market presence in these high-footfall locations. Toys, on the other hand, show consistent sales across all locations, but with a notable peak in Downtown areas, suggesting their broad appeal and possible impulse purchase tendencies in busy areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NDMNQwr5QhcHVxgh98O3NA.png" /><figcaption>Sales Volume (Units Sold) Grouped By Product Category per Location</figcaption></figure><h4>2. Product Sales Over Time</h4><p>The time series data for product sales from January 2017 to September 2018 reveals distinct trends and seasonality. Electronics show a declining trend, possibly indicating a saturation in the market or a shift in consumer preferences.</p><p>Art &amp; Crafts exhibit a steady increase, peaking around the end of 2017, which might correlate with holiday seasons or special promotions. Games and Sports &amp; Outdoors categories display fluctuations that could correspond to seasonal interests, such as holidays and sports events.</p><p>The Toys category has a notable spike in early 2017, which then stabilizes, suggesting a possible release of a popular product or a successful marketing campaign during that period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*JWUbrw8Pxr1tMJn1yfp4hQ.png" /><figcaption>Art &amp; Crafts Units Sold Trend</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*0Cek5DAsi_MFqkHc7684eg.png" /><figcaption>Electronics Units Sold Trend</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*MdfZzdVGvM-i0DDgmNqLFg.png" /><figcaption>Games Units Sold Trend</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*YpJypzNgwR165yPoiEqqJg.png" /><figcaption>Sport &amp; Outdoors Units Sold Trend</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*wa_vJeEmVZxhgeHTeUG49Q.png" /><figcaption>Toys Units Sold Trend</figcaption></figure><h4>3. Most Profitable Products</h4><p>The treemap highlights the most profitable products, with Jenga leading at a 70.1% profit margin. This high margin could be due to low production costs or a premium pricing strategy. The visualization suggests that traditional games and simple toys like Mini Basketball Hoop and Playfoam maintain substantial profit margins, indicating that these products, which likely have enduring popularity and potentially low manufacturing costs, are strong contributors to profitability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*E_pjMp8Ji90RSK-W2UaYNg.png" /></figure><h4>4. Profit vs. Revenue</h4><p>Whilst comparing profit and revenue, there is a clear indication that not all high-revenue stores are equally profitable. For instance, Ciudad de Mexico 2 generates substantial sales but has a comparatively lower profit margin. This discrepancy could point to higher operating costs or pricing strategies that prioritize volume over margin.</p><p>Stores like Guadalajara 3 manage to balance a high revenue with a high profit, indicating efficient operations or a favorable market position. Surprisingly the highest revenue and profit recorded is in Ciudad de Mexico 2 Airport, signifies large number of traveller bought toys as gifts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*KgGllhjQq1PnS1EI4VeJIQ.png" /></figure><h4>5. Store Open Date vs. Revenue</h4><p>The relationship between store open date and revenue does not show a straightforward correlation. Some older stores like Toluca 1, opened in December 2007, outperform newer stores in revenue, whereas some newer stores like Guadalajara 4, opened in October 2015, also show strong sales figures. This pattern suggests that factors other than store age, such as location, store size, and local competition, significantly influence revenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*Fi2-3DtZxVRcQ-oSVwZjGA.png" /></figure><h4>6. Customer Distribution Mapping</h4><p>The customer distribution map across different cities in Mexico shows that certain cities like Guadalajara and Monterrey have a higher concentration of customers, as well as high sales and profit figures. This geographical insight suggests that Maven Toys has a strong market presence in these cities, and they could be prime locations for further investment and marketing focus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tQQenIwAsXEnxmBNXV7zEA.png" /></figure><h4>7. Profit Product per City</h4><p>The scatter plot showcases the profitability of various product categories across different cities. The visualization indicates that Electronics and Toys are generates higher profit accumulation, in major cities like Ciudad de Mexico and Guadalajara, suggesting a strong consumer preference for these categories in larger urban centers.</p><p>The distribution of dots represents the varying profitability across cities, with certain products performing exceptionally well in specific locations. This variation implies that regional preferences and demographics significantly impact profitability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WwJuO-OxwNweKULJBesehQ.png" /></figure><h4>8. Slow Moving Inventory</h4><p><strong>Slow Moving Inventory</strong>: This is likely a binary classification where “Yes” indicates products that are moving slowly (i.e., not selling quickly or sitting in inventory for a long time) and “No” represents products that have a satisfactory turnover rate.</p><p><strong>Average Inventory Turnover Rate</strong>: This number is a crucial metric in inventory management that measures how often inventory is sold and replaced over a certain period. A lower turnover rate suggests that inventory is selling more slowly, which can tie up capital and increase storage costs. Conversely, a higher turnover rate indicates that inventory is selling quickly, which is generally positive as it suggests high demand and efficient use of capital.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*bIfwCsma4CeZAcxNK8IivA.png" /></figure><p>the context of this visualization:</p><ul><li>Products like <strong>Animal Figures and Dominoes</strong>, which are marked as having slow-moving inventory and show a <strong>low average inventory turnover rate (0.032)</strong>, are concerning as they indicate stock that is not being sold and replaced frequently.</li><li>On the other hand, items like the <strong>Hot Wheels 5-Pack and Playfoam</strong> have a <strong>higher turnover rate (3.245)</strong>, indicating they are sold and restocked more frequently, which is an indicator of good sales performance. Anything above 3.00 turnover rate is considered good turnover rate in industries standard.</li></ul><p>This information can help to:</p><ul><li>Develop targeted strategies to clear out slow-moving stock, such as discounts or promotions.</li><li>Re-evaluate their purchasing decisions to avoid overstocking items that have historically low turnover rates.</li><li>Potentially investigate underlying causes for low sales, such as customer demand shifts, pricing issues, or visibility in stores.</li><li>Adjust inventory levels to match sales patterns, thereby reducing holding costs and optimizing the use of storage space.</li></ul><blockquote><strong><em>Insights and Recommendations:</em></strong></blockquote><ul><li>For products with high profitability in specific cities, Maven Toys should consider increasing marketing efforts and stock availability in those regions to maximize sales.</li><li>Maven Toys may also benefit from analyzing demographic and customer preference data to tailor product offerings in each city, ensuring that supply aligns with demand.</li><li>For slow-moving items, the company could implement strategies such as discount sales, bundling with popular items, or targeted marketing campaigns to clear inventory and improve turnover rates.</li><li>Maven Toys should closely monitor inventory levels, especially for slow-moving products, to avoid overstocking and reduce holding costs.</li><li>Consider utilizing the strong brand presence and customer base in high-performing cities to boost sales in adjacent areas with lower sales figures. Tailored marketing campaigns, roadshows, and cross-promotion discounts can be effective strategies.</li><li>Maven Toys could analyze customer demographics and purchasing behaviors in high-performing cities to replicate successful strategies in neighboring cities with similar demographic profiles.</li></ul><h3>Conclusion</h3><p>Throughout our analysis of Maven Toys’ sales data, we have uncovered several key insights that can guide strategic decisions across the business.</p><p><strong>Key Insights:</strong></p><ul><li><strong>Product Popularity and Location Synergy: </strong>Art &amp; Crafts and Toys categories exhibit strong sales in Downtown and Commercial areas. This suggests a synergy between these products and high-traffic urban locations.</li><li><strong>Sales Trends and Seasonality: </strong>There is a clear seasonality in sales, with certain categories like Art &amp; Crafts peaking during holiday seasons. Conversely, Electronics show a downward trend, signaling a potential shift in consumer preference or market saturation.</li><li><strong>Profitability Focus:</strong> Traditional games like Jenga and simple toys such as Mini Basketball Hoops maintain high-profit margins, indicating their cost-effective production and sustained popularity.</li><li><strong>Profit vs. Revenue Dynamics: </strong>There is not always a direct correlation between revenue and profitability across stores, with some high-revenue stores not necessarily being the most profitable, highlighting the importance of cost control.</li><li><strong>Store Maturity and Revenue:</strong> The age of the store does not necessarily correlate with higher revenues, suggesting that other factors such as location and market penetration are more significant.</li><li><strong>Geographic Market Strengths:</strong> Cities like Guadalajara and Monterrey demonstrate strong sales and profit, indicating a solid customer base and market presence in these areas.</li><li><strong>Product and City Profitability Match:</strong> Some products perform significantly better in certain cities, which can inform targeted marketing and inventory strategies.</li><li><strong>Slow-Moving Inventory Identification</strong>: Products such as Playfoam and Dart Gun have been identified as slow-moving, indicating a need for strategic discounting or marketing efforts to improve turnover.</li></ul><p><strong>Recommendations:</strong></p><ul><li><strong>Targeted Marketing and Inventory Allocation</strong>: Leveraging the popularity of Art &amp; Crafts and Toys in high-traffic areas, Maven Toys should consider targeted marketing promotions and inventory allocation to maximize sales.</li><li><strong>Adaptation to Market Trends</strong>: The decline in Electronics sales necessitates a strategy reassessment for this category, possibly involving new product introductions or pivoting towards trending items.</li><li><strong>Profit Margin Optimization</strong>: Focus on stocking and promoting high-margin products while reviewing pricing strategies to enhance overall profitability.</li><li><strong>Cost Efficiency</strong>: For high-revenue but lower-profit stores, implement cost-saving measures and analyze pricing strategies to boost profit margins.</li><li><strong>Localized Strategies</strong>: Tailor product offerings and promotions to match the unique consumer preferences in each city.</li><li><strong>Inventory Management</strong>: Implement clearance sales or promotions for slow-moving items to free up capital and storage space.</li></ul><p>By acting on these recommendations, Maven Toys can align its operational strategy with the insights gained from this analysis, driving towards improved customer satisfaction, enhanced market presence, and increased profitability.</p><h3><strong><em>References</em></strong></h3><p><em>ABC Supply Chain (2022) ‘SLOB Inventory — Slow Moving &amp; Obsolete’</em>. Available at: <a href="https://abcsupplychain.com/slob-inventory-slow-moving-obsolete/">https://abcsupplychain.com/slob-inventory-slow-moving-obsolete/</a> (Accessed: 02 February 2024).</p><p><em>LatLong.net (2012) ‘Puebla, Puebla State, Mexico’.</em> Available at: <a href="https://www.latlong.net/place/puebla-puebla-state-mexico-27630.html">https://www.latlong.net/place/puebla-puebla-state-mexico-27630.html</a> (Accessed: 02 February 2024).</p><p><em>Just Analytics (2018) ‘Identifying Slow Moving Inventory’. </em>Available at: <a href="https://www.justanalytics.com/blog/erp-analytics/identifying-slow-moving-inventory">https://www.justanalytics.com/blog/erp-analytics/identifying-slow-moving-inventory</a> (Accessed: 02 February 2024).</p><p>Tableau Community (no date) ‘Idea — Detail’. Available at: <a href="https://community.tableau.com/s/idea/0874T000000H9lCQAS/detail">https://community.tableau.com/s/idea/0874T000000H9lCQAS/detail</a> (Accessed: Date of Access).</p><p><em>Maven Analytics (2021) ‘Data Playground’.</em> Available at: <a href="https://mavenanalytics.io/data-playground?page=7&amp;pageSize=5">https://mavenanalytics.io/data-playground?page=7&amp;pageSize=5</a> (Accessed: 20 October 2023).</p><p><em>Tableau Community (2019) ‘Average inventory values’.</em> Available at: <a href="https://community.tableau.com/s/question/0D54T00000C6amBSAR/average-inventory-values">https://community.tableau.com/s/question/0D54T00000C6amBSAR/average-inventory-values</a> (Accessed: 03 February 2024).</p><p><em>Tableau Community (2019) ‘Calculating moving stock quantity’.</em> Available at: <a href="https://community.tableau.com/s/question/0D54T00000C6jyTSAR/calculating-moving-stock-quantity">https://community.tableau.com/s/question/0D54T00000C6jyTSAR/calculating-moving-stock-quantity</a> (Accessed: 03 February 2024).</p><p><em>Tableau Community (2019) ‘Basic slow-moving calculation’.</em> Available at: <a href="https://community.tableau.com/s/question/0D54T00000C6cwMSAR/basic-slow-moving-calculation">https://community.tableau.com/s/question/0D54T00000C6cwMSAR/basic-slow-moving-calculation</a> (Accessed: 03 February 2024).</p><blockquote><strong><em>TABLEAU Dashboard — </em></strong><a href="https://public.tableau.com/app/profile/hisyam.prabowo/vizzes">https://public.tableau.com/app/profile/hisyam.prabowo/vizzes</a></blockquote><blockquote><a href="https://bit.ly/3UtKaRg">https://bit.ly/3UtKaRg</a> : Maven Toys Dashboard — Pacmann Project 1</blockquote><blockquote><a href="https://bit.ly/3HKnW5F">https://bit.ly/3HKnW5F</a> : Maven Toys Dashboard — Pacmann Project 1.2</blockquote><blockquote><a href="https://bit.ly/4bs7nJI">https://bit.ly/4bs7nJI</a> : Maven Toys Dashboard — Pacmann Project 1.3</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2965b1a6600f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maven Toys Data Analysis on SQL Server]]></title>
            <link>https://medium.com/@hisyamprabowo/maven-toys-data-analysis-on-sql-server-f7fa4af5e14c?source=rss-436e247fcbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7fa4af5e14c</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Hisyam S. Prabowo]]></dc:creator>
            <pubDate>Wed, 18 Oct 2023 02:09:28 GMT</pubDate>
            <atom:updated>2023-10-22T05:54:58.524Z</atom:updated>
            <content:encoded><![CDATA[<p>In the bustling world of toy sales, data-driven insights are crucial for businesses to thrive. One such store that understands the importance of this is Maven Toys. I recently had the opportunity to dive into their sales database through SQL as part of the foundation in data analysis.</p><p>We’ll take a look the dataset with specific tasks given below;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQeeeyjdrGmNOrpdgToFFg.png" /><figcaption>Maven Toys Sales Data between 2017 — 2018</figcaption></figure><p>Like any dataset, Maven’s wasn’t without its imperfections. Null values, often seen as impediments in analytics, had to be identified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*_4mw1i7p9Ssxm9qaMSS51g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/109/1*EZjp7zQquus8IcYz1gO5ZQ.png" /><figcaption>Checking null values, with 0 results</figcaption></figure><p>Oh wow, the dataset is pretty cleaned I guess, let’s dig into the first task. <strong><em>Calculating transaction’s volume</em></strong> based on product category and location, here’s what we are going to perform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*n3CFuR8h9O7x0O-l6usvBw.png" /></figure><p>and voila ….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*-QDhMm1IOJsYX01tNnMwiw.png" /><figcaption>Most sales segmented by product category and store city</figcaption></figure><p>Alright, the 2nd task we would need to find <strong><em>the most revenue stores.</em></strong> Initially we identify which tables contain the required information. In this case; Store Name, Store Location, Product Price and Units sold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*G4V6AyRrH0b7HcqsQKND1g.png" /><figcaption>Grouping stores based on total transaction query</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*jMrE9lNlhnwcJAdnrceEgw.png" /><figcaption>Top 10 stores with most revenue</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7fa4af5e14c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>