SShortSingh.
Back to feed

Analysis of 285,000 Transactions Reveals Fraud Peaks at 2AM, Not 11AM

0
·1 views

A data analyst examined the widely used Kaggle Credit Card Fraud Detection dataset, comprising 284,807 anonymized European transactions from September 2013, of which only 492 — just 0.173% — were fraudulent. The analysis found that fraudulent transactions tend to cluster at low amounts, rarely exceeding a few hundred dollars, suggesting fraudsters deliberately avoid large sums that trigger alerts. An initial hour-by-hour breakdown appeared to show fraud spiking at both 2AM and 11AM based on raw case counts, but recalculating by fraud rate per transaction volume told a different story. Hour 2 proved a genuine high-risk window at a 1.71% fraud rate — roughly 10 times the dataset average — while Hour 11's apparent spike largely reflected higher transaction volume rather than elevated risk. The project highlights a key analytical pitfall: raw counts can be misleading without normalization, a principle the analyst compared to reviewing financial margins without examining both numerator and denominator.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Oracle Publishes 12 Reusable Integration Patterns for Oracle Integration Cloud

A technical field guide covering twelve reusable integration patterns for Oracle Integration 3 (OIC) has been published, targeting architects and developers working on enterprise and healthcare projects. Each pattern is supported by real-world examples, architecture views, and sequence diagrams to aid recognition and practical application. The patterns range from synchronous request-reply and API facade mediation to publish-subscribe, event-driven integration, and B2B/EDI gateway designs. Use cases include healthcare scenarios such as claims routing, member onboarding, and eligibility checks, as well as bulk file transfers and scheduled data synchronization. The guide positions these patterns as composable building blocks rather than standalone templates, helping teams make informed architecture decisions on real OIC deployments.

0
ProgrammingDEV Community ·

Developer Builds Offline, Battery-Efficient Geofencing Engine to Auto-Manage Phone Sound Profiles

A developer created a location-aware Android app that automatically switches a phone's sound profile based on the user's physical location, eliminating the need for manual toggling. The solution uses Google Play Services' GeofencingClient, which offloads location monitoring to the system and only wakes the app when a user enters or exits a defined zone, preserving battery life. To prevent erratic profile switching caused by GPS signal bounce in urban areas, a 60-second hysteresis buffer was implemented before acting on an exit event. The app stores all data locally using Room for persistence, and re-registers alarms and geofences after a device reboot to maintain active routines. A key challenge encountered was Android's aggressive Doze mode and manufacturer battery optimizations, which disrupted reliable background execution even with location permissions granted.

0
ProgrammingDEV Community ·

A Practical Guide to Choosing the Right Voice Input Setup for PC in 2026

With voice input now spanning multiple product categories, choosing the right setup depends on whether you need to fix your microphone, improve transcription quality, or route speech directly to a focused cursor on your PC. Built-in OS tools like Windows Voice Typing and Apple Dictation suit occasional, low-effort use, while desktop AI dictation apps such as Wispr Flow and SuperWhisper offer cleaner prose for users with decent microphones. Phone-as-mic tools like WO Mic address poor laptop audio by turning a smartphone into a virtual microphone for existing speech-to-text software. A newer category — including FlowMic, Vox Manager, and AirMic — goes further by performing recognition on the phone and injecting finished text directly into whichever field is active on the PC. The author, who discloses involvement in FlowMic's launch operations, frames the core decision around three questions: is the problem the mic, the transcription, or the delivery path to the cursor?

0
ProgrammingDEV Community ·

Schemagate library offers zero-import tools to filter database schema for AI agents

A developer built Schemagate, a Python library designed to restrict which database tables an AI agent can see based on the caller's permissions. The core problem it addresses is that agents often expose schema objects users are not authorized to access, and wiring a fix into an existing agent takes significant effort. To lower adoption friction, the library now offers five interfaces — including a CLI demo, a select command, and a local studio UI — that require no Python imports at all. In benchmark tests, the tool reduced average prompt size by 75.6%, selecting around 9 relevant objects from a 42-object schema instead of passing the entire schema to the model. A browser-based version running on six bundled schemas is also publicly available, with a JavaScript port of the selector validated against 1,789 test cases to match the Python version exactly.

Analysis of 285,000 Transactions Reveals Fraud Peaks at 2AM, Not 11AM · ShortSingh