---
title: HackMD presentation Template
tags: Template
slideOptions:
theme: white
controls: true
progress: true
slideNumber: 'c/t'
center: false
fragments: true
help: true
# defaultTiming: 120
transition: 'convex'
# none/fade/slide/convex/concave/zoom
transitionSpeed: 'default'
# default/fast/slow
keyboard: true
width: '93%'
height: '100%'
spotlight:
enabled: false
---
<style>
/* basic design */
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6,
.reveal section, .reveal table, .reveal li, .reveal blockquote, .reveal th, .reveal td, .reveal p {
font-family: 'Meiryo UI', 'Source Sans Pro', Helvetica, sans-serif, 'Helvetica Neue', 'Helvetica', 'Arial', 'Hiragino Sans', 'ヒラギノ角ゴシック', YuGothic, 'Yu Gothic';
text-align: left;
line-height: 1.6;
letter-spacing: normal;
text-shadow: none;
word-wrap: break-word;
color: #444;
}
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {font-weight: bold;}
.reveal h1, .reveal h2, .reveal h3 {color: #00a474;}
.reveal th {background: #DDD;}
.reveal section img {background:none; border:none; box-shadow:none; max-width: 95%; max-height: 95%;}
.reveal blockquote {width: 90%; padding: 0.5vw 3.0vw;}
.reveal table {margin: 1.0vw auto;}
.reveal code {line-height: 1.2;}
.reveal p, .reveal li {padding: 0vw; margin: 0vw;}
.reveal .box {margin: -0.5vw 1.5vw 2.0vw -1.5vw; padding: 0.5vw 1.5vw 0.5vw 1.5vw; background: #e4ffe5; border-radius: 1.5vw;}
/* table design */
.reveal table {background: #f5f5f5;}
.reveal th {background: #444; color: #fff;}
.reveal td {position: relative; transition: all 300ms;}
.reveal tbody:hover td { color: transparent; text-shadow: 0 0 3px #aaa;}
.reveal tbody:hover tr:hover td {color: #444; text-shadow: 0 1px 0 #fff;}
/* blockquote design */
.reveal blockquote {
width: 90%;
padding: 0.5vw 0 0.5vw 6.0vw;
font-style: italic;
background: #ddffff;
}
.reveal blockquote:before{
position: absolute;
top: 0.1vw;
left: 1vw;
content: "\f10d";
font-family: FontAwesome;
color: #00a474;
font-size: 3.0vw;
}
/* font size */
.reveal h1 {font-size: 5.0vw;}
.reveal h2 {font-size: 4.0vw;}
.reveal h3 {font-size: 2.8vw;}
.reveal h4 {font-size: 2.6vw;}
.reveal h5 {font-size: 2.4vw;}
.reveal h6 {font-size: 2.2vw;}
.reveal section, .reveal table, .reveal li, .reveal blockquote, .reveal th, .reveal td, .reveal p {font-size: 2.2vw;}
.reveal code {font-size: 1.6vw;}
/* new color */
.red {color: #EE6557;}
.blue {color: #16A6B6;}
/* split slide */
#right {left: -18.33%; text-align: left; float: left; width: 50%; z-index: -10;}
#left {left: 31.25%; text-align: left; float: left; width: 50%; z-index: -10;}
</style>
<style>
/* 背景デザイン */
.reveal {
background-color:/*背景色*/
#f8f8ff;
}
.reveal h1 {padding: 3.0vw 0vw;}
@media screen and (max-width: 1024px) {
.reveal h2 {margin: -2.0vw 0 0 0; padding: 0.0vw 0vw 3.0vw 2.0vw; }
}
@media screen and (min-width: 1025px) and (max-width: 1920px) {
.reveal h2 {margin: -1.5vw 0 0 0; padding: 0.0vw 0vw 3.0vw 2.0vw; }
}
@media screen and (min-width: 1921px) and (max-width: 100000px) {
.reveal h2 {margin: -1.0vw 0 0 0; padding: 0.0vw 0vw 3.0vw 2.0vw; }
}
</style>
<style>
/* specific design */
.reveal h2 {
padding: 0 1.5vw;
margin: 0.0vw 0 2.0vw -2.0vw;
border-left: solid 1.2vw #00a474;
border-bottom: solid 0.8vw #9e9e9e;
}
</style>
<!-- --------------------------------------------------------------------------------------- -->
#### Slide Template
# HackMD<br>テンプレート
<br>
<br>
#### 2021/XX/XX
### @ariken
---
## はじめに
<div class="box">
wip
</div>
---
# 🏦 Análisis de Cash Buffer y Segmentación de Clientes Bancarios
## Resumen
Estudio de los saldos mensuales, buffers de liquidez y segmentación de clientes a través de análisis cuantílico y rolling windows, utilizando datos transaccionales bancarios.
---
## 1️⃣ Construcción y Preprocesamiento de Datos
- Se filtraron los clientes con saldo promedio mensual **mayor o igual a 300**.
- Se agruparon las transacciones mensualmente por cliente.
- Se calcularon los principales KPIs financieros mensuales por cliente:
- Saldo promedio mensual
- Monto de crédito mensual
- Monto de débito mensual
---
## 2️⃣ Cálculo de Quintiles Históricos y Rolling
- Se segmentó a los clientes en **quintiles históricos** (`Q_Hist`) según su saldo promedio.
- Se calculó el **promedio móvil (rolling)** de saldo de los últimos 12 meses para cada cliente.
- Los clientes fueron nuevamente segmentados cada mes según el quintil de su saldo rolling (`Q_12_M`).
---
## 3️⃣ Exclusión y Limpieza de Datos
- Se excluyeron clientes con saldos anómalos o inconsistentes.
- Solo se consideraron datos desde **enero 2020** para asegurar series estables.
---
## 4️⃣ Análisis y Visualización
- Se gra