{"id":6067,"date":"2024-07-10T10:07:07","date_gmt":"2024-07-10T10:07:07","guid":{"rendered":"https:\/\/radicalbit.ai\/?post_type=glossary&#038;p=6067"},"modified":"2024-10-10T15:07:14","modified_gmt":"2024-10-10T15:07:14","slug":"population-stability-index","status":"publish","type":"glossary","link":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/","title":{"rendered":"Population Stability Index (PSI)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In the rapidly evolving world of artificial intelligence (AI), maintaining the accuracy and reliability of predictive models is paramount. AI models are typically trained on extensive datasets that reflect the conditions and variables of a particular moment in time. However, as time progresses, the underlying data distributions can shift, causing model performance to degrade. One effective tool for monitoring and managing this shift is the Population Stability Index (PSI).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the Population Stability Index (PSI)?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Population Stability Index (PSI) is a statistical metric used to measure the stability of a variable\u2019s distribution over time. Specifically, PSI compares the distribution of a variable in two different moments. Usually, this method is used to compare the statistical properties of training data with the most recent one (e.g. production data) to verify if their distribution changes over time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why is PSI Important?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To illustrate the importance of PSI, consider an AI model trained to predict loan defaults based on historical customer data. If the economic environment changes or the loan application process undergoes modifications, the distribution of factors that influence loan defaults may shift. In such cases, a model trained on outdated data might generate inaccurate predictions. PSI is crucial because it detects these changes, known as &#8220;<a href=\"https:\/\/radicalbit.ai\/resources\/glossary\/concept-drift\/\">concept drift<\/a>,&#8221; allowing data scientists to intervene before the model\u2019s performance is significantly impacted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Does PSI Work?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">PSI employs the concept of relative entropy, or Kullback-Leibler (KL) divergence, to measure the difference between two probability distributions. Here\u2019s a detailed breakdown of the PSI calculation process:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Data Preparation:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Select the Variable<\/strong>: Identify the variable to be monitored for stability.<\/li>\n\n\n\n<li><strong>Data Binning<\/strong>: Divide both the reference data and current data into discrete intervals or bins to create a distribution.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Distribution Comparison:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Calculate Percentages<\/strong>: Determine the percentage of data points in each bin for both the training and scoring datasets.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">PSI Calculation:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Apply the Formula<\/strong>: Use the PSI formula to compare the percentage differences between corresponding bins in the two distributions.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/docsz\/AD_4nXeCeaVDsNNCv6llaVcH6pRO23MUg3gawkKZgtCW_eqI-nYwd7lB4M6o7t8uPDlglqdEt19ybi8_ZW4ZqZkWEAzC9LKUqSlqymu_Ewr405LHhRggdmPX1Tzb-5liZOB3DvoAgoKYAYB_vlmUfIY-l3jfUPLF?key=5kbLxavQfyuoh_dBxr6PZQ\" alt=\"\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Expected Percentage<\/strong>: Percentage of data points in a bin for the training dataset.<\/li>\n\n\n\n<li><strong>Actual Percentage<\/strong>: Percentage of data points in the same bin for the scoring dataset.<\/li>\n<\/ul>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Interpret the PSI Score<\/strong>: The resulting PSI score quantifies the overall discrepancy between the training and scoring data distributions.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Interpreting PSI Scores<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Interpreting PSI scores requires understanding the thresholds that indicate various levels of data drift:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Low PSI (less than 0.1)<\/strong>: The distributions of the training and scoring data are similar, indicating stable model performance.<\/li>\n\n\n\n<li><strong>Moderate PSI (0.1 to 0.25)<\/strong>: There is potential data drift, warranting further investigation.<\/li>\n\n\n\n<li><strong>High PSI (above 0.25)<\/strong>: Significant data drift is likely, suggesting the need for model retraining or adjustment.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Benefits of Using PSI<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Early Detection of Model Drift<\/strong>: PSI allows for the early identification of changes in data distributions, enabling proactive intervention before these changes adversely affect model performance.<\/li>\n\n\n\n<li><strong>Improved Model Performance<\/strong>: By monitoring and addressing data drift promptly, models can maintain high accuracy and reliability.<\/li>\n\n\n\n<li><strong>Enhanced Decision-Making<\/strong>: Understanding data drift helps businesses make informed decisions regarding model retraining and data collection strategies.<\/li>\n\n\n\n<li><strong>Flexibility<\/strong>: One of the key advantages of the PSI algorithm is its versatility: it can be applied to both categorical and numerical features.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Limitations of PSI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While PSI is a valuable tool, it does have certain limitations:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Threshold Dependence<\/strong>: There is no universally accepted threshold for a &#8220;good&#8221; PSI score. The appropriate threshold may vary depending on the specific model and its application.<\/li>\n\n\n\n<li><strong>Variable Selection<\/strong>: PSI analyzes one variable at a time. A comprehensive monitoring approach should consider multiple variables to get a holistic view of model stability.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Practical Considerations<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When implementing PSI, consider the following best practices:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Regular Monitoring<\/strong>: Continuously monitor PSI scores to promptly detect and address data drift.<\/li>\n\n\n\n<li><strong>Threshold Customization<\/strong>: Customize PSI thresholds based on the specific context and requirements of your AI models.<\/li>\n\n\n\n<li><strong>Comprehensive Analysis<\/strong>: Use PSI in conjunction with other metrics and tools to gain a more complete understanding of model performance.<\/li>\n\n\n\n<li><strong>Selecting the proper number of bins<\/strong>: Splitting the data with the appropriate number of bins is crucial to identify even the slightest statistical changes.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Case Study: PSI in Financial Services<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the financial services industry, AI models are extensively used for credit scoring, fraud detection, and risk management. Consider a bank that uses an AI model to predict loan defaults. The model was trained on historical data that includes variables such as credit score, income, and employment status.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Over time, economic conditions change, leading to shifts in the distributions of these variables. By regularly calculating PSI for each variable, the bank can detect when the data the model encounters in production deviates from the training data. If the PSI score for credit score distribution exceeds 0.25, the bank knows that the model\u2019s predictions may no longer be reliable, prompting a review or retraining of the model with more recent data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Population Stability Index (PSI) is a powerful tool for AI practitioners and data scientists. By measuring the stability of data distributions over time, PSI provides critical insights into the health and performance of AI models. As AI continues to play an integral role in various industries, maintaining model reliability through proactive monitoring of PSI becomes increasingly important. Understanding and effectively utilizing PSI can ensure that AI models remain accurate, reliable, and robust in the face of evolving data landscapes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the rapidly evolving world of artificial intelligence (AI), maintaining the accuracy and reliability of predictive models is paramount. AI models are typically trained on&hellip;<\/p>\n","protected":false},"author":1,"featured_media":4814,"menu_order":0,"template":"","meta":{"footnotes":""},"class_list":["post-6067","glossary","type-glossary","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Population Stability Index (PSI) | Radicalbit<\/title>\n<meta name=\"description\" content=\"The Population Stability Index (PSI) is a statistical metric used to measure the stability of a variable\u2019s distribution over time.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Population Stability Index (PSI) | Radicalbit\" \/>\n<meta property=\"og:description\" content=\"The Population Stability Index (PSI) is a statistical metric used to measure the stability of a variable\u2019s distribution over time\" \/>\n<meta property=\"og:url\" content=\"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/\" \/>\n<meta property=\"og:site_name\" content=\"Radicalbit\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-10T15:07:14+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/radicalbit.ai\/wp-content\/uploads\/2024\/02\/Simpler-faster-better-MLOps.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/resources\\\/glossary\\\/population-stability-index\\\/\",\"url\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/resources\\\/glossary\\\/population-stability-index\\\/\",\"name\":\"Population Stability Index (PSI) | Radicalbit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/resources\\\/glossary\\\/population-stability-index\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/resources\\\/glossary\\\/population-stability-index\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/radicalbit.ai\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Simpler-faster-better-MLOps.jpg\",\"datePublished\":\"2024-07-10T10:07:07+00:00\",\"dateModified\":\"2024-10-10T15:07:14+00:00\",\"description\":\"The Population Stability Index (PSI) is a statistical metric used to measure the stability of a variable\u2019s distribution over time.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/resources\\\/glossary\\\/population-stability-index\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/radicalbit.ai\\\/it\\\/resources\\\/glossary\\\/population-stability-index\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/resources\\\/glossary\\\/population-stability-index\\\/#primaryimage\",\"url\":\"https:\\\/\\\/radicalbit.ai\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Simpler-faster-better-MLOps.jpg\",\"contentUrl\":\"https:\\\/\\\/radicalbit.ai\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Simpler-faster-better-MLOps.jpg\",\"width\":1200,\"height\":628,\"caption\":\"Radicalbit MLOps & AI Observability Platform\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/resources\\\/glossary\\\/population-stability-index\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Population Stability Index (PSI)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/#website\",\"url\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/\",\"name\":\"Radicalbit\",\"description\":\"Simpler, faster, better MLOps\",\"publisher\":{\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/#organization\",\"name\":\"Radicalbit\",\"url\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/radicalbit.ai\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/radicalbit__RGB__logo-horizontal-positive-e1701861883280.webp\",\"contentUrl\":\"https:\\\/\\\/radicalbit.ai\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/radicalbit__RGB__logo-horizontal-positive-e1701861883280.webp\",\"width\":1570,\"height\":405,\"caption\":\"Radicalbit\"},\"image\":{\"@id\":\"https:\\\/\\\/radicalbit.ai\\\/it\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/6639929\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Population Stability Index (PSI) | Radicalbit","description":"The Population Stability Index (PSI) is a statistical metric used to measure the stability of a variable\u2019s distribution over time.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/","og_locale":"it_IT","og_type":"article","og_title":"Population Stability Index (PSI) | Radicalbit","og_description":"The Population Stability Index (PSI) is a statistical metric used to measure the stability of a variable\u2019s distribution over time","og_url":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/","og_site_name":"Radicalbit","article_modified_time":"2024-10-10T15:07:14+00:00","og_image":[{"width":1200,"height":628,"url":"http:\/\/radicalbit.ai\/wp-content\/uploads\/2024\/02\/Simpler-faster-better-MLOps.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Tempo di lettura stimato":"5 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/","url":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/","name":"Population Stability Index (PSI) | Radicalbit","isPartOf":{"@id":"https:\/\/radicalbit.ai\/it\/#website"},"primaryImageOfPage":{"@id":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/#primaryimage"},"image":{"@id":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/#primaryimage"},"thumbnailUrl":"https:\/\/radicalbit.ai\/wp-content\/uploads\/2024\/02\/Simpler-faster-better-MLOps.jpg","datePublished":"2024-07-10T10:07:07+00:00","dateModified":"2024-10-10T15:07:14+00:00","description":"The Population Stability Index (PSI) is a statistical metric used to measure the stability of a variable\u2019s distribution over time.","breadcrumb":{"@id":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/#primaryimage","url":"https:\/\/radicalbit.ai\/wp-content\/uploads\/2024\/02\/Simpler-faster-better-MLOps.jpg","contentUrl":"https:\/\/radicalbit.ai\/wp-content\/uploads\/2024\/02\/Simpler-faster-better-MLOps.jpg","width":1200,"height":628,"caption":"Radicalbit MLOps & AI Observability Platform"},{"@type":"BreadcrumbList","@id":"https:\/\/radicalbit.ai\/it\/resources\/glossary\/population-stability-index\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/radicalbit.ai\/it\/"},{"@type":"ListItem","position":2,"name":"Population Stability Index (PSI)"}]},{"@type":"WebSite","@id":"https:\/\/radicalbit.ai\/it\/#website","url":"https:\/\/radicalbit.ai\/it\/","name":"Radicalbit","description":"Simpler, faster, better MLOps","publisher":{"@id":"https:\/\/radicalbit.ai\/it\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/radicalbit.ai\/it\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Organization","@id":"https:\/\/radicalbit.ai\/it\/#organization","name":"Radicalbit","url":"https:\/\/radicalbit.ai\/it\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/radicalbit.ai\/it\/#\/schema\/logo\/image\/","url":"https:\/\/radicalbit.ai\/wp-content\/uploads\/2023\/11\/radicalbit__RGB__logo-horizontal-positive-e1701861883280.webp","contentUrl":"https:\/\/radicalbit.ai\/wp-content\/uploads\/2023\/11\/radicalbit__RGB__logo-horizontal-positive-e1701861883280.webp","width":1570,"height":405,"caption":"Radicalbit"},"image":{"@id":"https:\/\/radicalbit.ai\/it\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/6639929\/"]}]}},"_links":{"self":[{"href":"https:\/\/radicalbit.ai\/it\/wp-json\/wp\/v2\/glossary\/6067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/radicalbit.ai\/it\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/radicalbit.ai\/it\/wp-json\/wp\/v2\/types\/glossary"}],"author":[{"embeddable":true,"href":"https:\/\/radicalbit.ai\/it\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":7,"href":"https:\/\/radicalbit.ai\/it\/wp-json\/wp\/v2\/glossary\/6067\/revisions"}],"predecessor-version":[{"id":7137,"href":"https:\/\/radicalbit.ai\/it\/wp-json\/wp\/v2\/glossary\/6067\/revisions\/7137"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/radicalbit.ai\/it\/wp-json\/wp\/v2\/media\/4814"}],"wp:attachment":[{"href":"https:\/\/radicalbit.ai\/it\/wp-json\/wp\/v2\/media?parent=6067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}