[{"data":1,"prerenderedAt":542},["ShallowReactive",2],{"site-chrome-en-id":3,"site-chrome-en":-1,"site-chrome-th":-1,"glossary-term-en-id":287,"blog-categories-en-id":300,"article-glossary-en-id-\u002Fglossary\u002Fcvar":320,"og-copy-en-id":478,"og-posts-en-id-none":520,"glossary-related-en-id-cvar":521},{"id":4,"extension":5,"footer":6,"header":116,"indexFacets":202,"meta":243,"notFound":244,"stem":250,"ui":251,"__hash__":286},"chrome_en\u002Fen\u002Fchrome.yml","yml",{"columns":7,"legal":83,"quote":84,"askAi":87,"socials":103},[8,29,47,65],{"label":9,"children":10},"Product",[11,14,17,20,23,26],{"label":12,"to":13},"Ads optimization","\u002Fen-id\u002Fblog\u002Fads-optimization",{"label":15,"to":16},"Unit economics","\u002Fen-id\u002Fblog\u002Fprofit-margin",{"label":18,"to":19},"Agentic KAM","https:\u002F\u002Flearn.dataglasslabs.com\u002Fdocs\u002Fai-and-api\u002Fassistants",{"label":21,"to":22},"One-click deploy","https:\u002F\u002Flearn.dataglasslabs.com\u002Fdocs\u002Fgrowth\u002Factions\u002Faction-flow",{"label":24,"to":25},"Integrations","https:\u002F\u002Flearn.dataglasslabs.com\u002Fdocs\u002Foverview\u002Fget-started\u002Fsupported-platforms",{"label":27,"to":28},"Pricing","\u002Fen-id\u002Fpricing",{"label":30,"children":31},"Resources",[32,35,38,41,44],{"label":33,"to":34},"Blog","\u002Fen-id\u002Fblog",{"label":36,"to":37},"Customer stories","\u002Fen-id\u002Fcustomers",{"label":39,"to":40},"Research","\u002Fen-id\u002Fresearch",{"label":42,"to":43},"Glossary","\u002Fen-id\u002Fglossary",{"label":45,"to":46},"Docs","https:\u002F\u002Flearn.dataglasslabs.com\u002Fdocs",{"label":48,"children":49},"Company",[50,53,56,59,62],{"label":51,"to":52},"About","\u002Fen-id\u002Fcompany",{"label":54,"to":55},"Contact","\u002Fen-id\u002Fcontact",{"label":57,"to":58},"Book a demo","\u002Fen-id\u002Fbook-a-demo",{"label":60,"to":61},"Privacy","\u002Fen-id\u002Flegal\u002Fprivacy",{"label":63,"to":64},"Terms","\u002Fen-id\u002Flegal\u002Fterms",{"label":66,"children":67},"DataGlass for",[68,71,74,77,80],{"label":69,"to":70},"Agencies","\u002Fen-id\u002Ffor\u002Fagencies",{"label":72,"to":73},"Brands","\u002Fen-id\u002Ffor\u002Fbrands",{"label":75,"to":76},"Planners and optimizers","\u002Fen-id\u002Ffor\u002Fplanners",{"label":78,"to":79},"Managers and analysts","\u002Fen-id\u002Ffor\u002Fmanagers",{"label":81,"to":82},"Sellers and shop owners","\u002Fen-id\u002Ffor\u002Fsellers","© 2026 DataGlass Labs. All rights reserved.",{"text":85,"caption":86},"Measure what you keep, and then grow what you measure.","The DataGlass team",{"label":88,"prompt":89,"assistants":90},"Ask AI about DataGlass","I want to understand DataGlass, a decision engine for Shopee, Lazada and TikTok Shop sellers that optimizes ads, pricing and promotions for true profit. Use web search to read their website at https:\u002F\u002Fwww.dataglasslabs.com (with an agent-readable summary at https:\u002F\u002Fwww.dataglasslabs.com\u002Fllms.txt), then explain what DataGlass does, who it is for and how it differs from an analytics dashboard.",[91,95,99],{"label":92,"icon":93,"url":94},"ChatGPT","chatgpt","https:\u002F\u002Fchatgpt.com\u002F?prompt={prompt}",{"label":96,"icon":97,"url":98},"Claude","claude","https:\u002F\u002Fclaude.ai\u002Fnew?q={prompt}",{"label":100,"icon":101,"url":102},"Perplexity","perplexity","https:\u002F\u002Fwww.perplexity.ai\u002Fsearch?q={prompt}",[104,108,112],{"label":105,"icon":106,"to":107},"LinkedIn","i-lucide-linkedin","https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fdataglass-labs",{"label":109,"icon":110,"to":111},"Facebook","i-lucide-facebook","https:\u002F\u002Fwww.facebook.com\u002Fdataglasslabsth",{"label":113,"icon":114,"to":115},"Instagram","i-lucide-instagram","https:\u002F\u002Fwww.instagram.com\u002Fdataglasslabs\u002F",{"links":117,"cta":196,"secondaryCta":199},[118,152,191,193,194,195],{"label":9,"to":119,"menu":120},"\u002Fen-id",{"layout":121,"heading":122,"cards":123,"groups":135,"footer":142},"cards","What DataGlass does",[124,128,132],{"label":125,"description":126,"to":13,"ui":127},"True profit ads optimization","Budgets, pacing and Target ROAS tuned for profit.","budget-tomorrow",{"label":129,"description":130,"to":16,"ui":131},"Unit economics breakdown","What you actually earn from every sale.","unit-economics",{"label":18,"description":133,"to":19,"motif":134},"An AI agent that knows your shops.",true,[136],{"label":137,"size":138,"links":139},"More","secondary",[140,141],{"label":21,"to":22},{"label":24,"to":25},[143,148],{"lead":144,"label":145,"icon":146,"to":147},"DataGlass v.2.6.","See what's new","i-lucide-box","https:\u002F\u002Flearn.dataglasslabs.com\u002Freleases",{"lead":149,"label":150,"icon":151,"to":37},"Read our","customer stories","i-lucide-book-open",{"label":30,"to":34,"menu":153},{"layout":154,"groups":155},"directory",[156,164,170,182],{"label":66,"size":157,"links":158},"primary",[159,160,161,162,163],{"label":69,"to":70},{"label":72,"to":73},{"label":75,"to":76},{"label":78,"to":79},{"label":81,"to":82},{"label":165,"size":157,"links":166},"Insights",[167,168,169],{"label":33,"to":34},{"label":36,"to":37},{"label":39,"to":40},{"label":171,"size":157,"links":172},"Learn",[173,174,177,180],{"label":45,"to":46},{"label":175,"to":176},"Use cases","https:\u002F\u002Flearn.dataglasslabs.com\u002Fuse-cases",{"label":178,"to":179},"Training","https:\u002F\u002Flearn.dataglasslabs.com\u002Ftraining",{"label":181,"to":147},"Changelog",{"label":183,"size":138,"links":184},"Support",[185,186,189],{"label":42,"to":43},{"label":187,"to":188},"Brand kit","\u002Fen-id\u002Fbrand",{"label":190,"to":55},"Contact us",{"label":192,"to":37},"Customers",{"label":27,"to":28},{"label":48,"to":52},{"label":54,"to":55},{"label":197,"to":198},"Start for free","https:\u002F\u002Fapp.dataglasslabs.com\u002Fsign-up",{"label":200,"to":201},"Sign in","https:\u002F\u002Fapp.dataglasslabs.com\u002Fsign-in",{"clear":203,"groups":204},"Clear filters",[205,218],{"key":206,"label":207,"options":208},"platforms","Platform",[209,212,215],{"value":210,"label":211},"shopee","Shopee",{"value":213,"label":214},"lazada","Lazada",{"value":216,"label":217},"tiktok","TikTok Shop",{"key":219,"label":220,"options":221},"format","Format",[222,225,228,231,234,237,240],{"value":223,"label":224},"guide","Guide",{"value":226,"label":227},"article","Article",{"value":229,"label":230},"comparison","Comparison",{"value":232,"label":233},"calculator","Calculator",{"value":235,"label":236},"paper","Paper",{"value":238,"label":239},"survey","Survey",{"value":241,"label":242},"dataset","Dataset",{},{"title":245,"description":246,"cta":247,"errorTitle":249},"Page not found","The page may have moved, or it never existed.",{"label":248,"to":119},"Back to home","Something went wrong","en\u002Fchrome",{"previous":252,"next":253,"pause":254,"play":255,"goTo":256,"expand":257,"close":258,"readMore":259,"learnMore":260,"seeAll":261,"menu":262,"back":263,"share":264,"shareOn":265,"copyLink":266,"copied":267,"onThisPage":268,"minRead":269,"sources":270,"viewMore":271,"searchPosts":272,"allPosts":273,"all":274,"filters":275,"search":276,"searchClose":277,"searchPlaceholder":278,"searchSuggested":279,"searchResults":280,"searchNoResults":281,"searchLoading":282,"relatedTitle":283,"mainNav":284,"footerNav":285},"Previous","Next","Pause","Play","Go to item","Expand","Close","Read more","Learn more","See all","Menu","Back","Share","Share on","Copy link","Link copied","On this page","{n} min read","Sources","View more","Search posts","All posts","All","Filters","Search","Close search","Search DataGlass","Suggested","Results","No results for","Loading","More to discover","Main","Footer","HZQSEulcpFGY0nWnUTNYhG2n06nO97XnUBc_pEVOFxo",{"id":288,"cta":289,"extension":5,"glossary":42,"meta":295,"related":296,"stem":297,"whatIs":298,"__hash__":299},"glossaryTerm_en\u002Fen\u002Fglossary-term.yml",{"headline":290,"description":291,"primaryCta":292,"secondaryCta":293},"Put this number to work on your own shops","See it computed from your orders, fees and ads, with a demo on your data.",{"label":57,"to":58},{"label":294,"to":28},"See pricing",{},"Related terms","en\u002Fglossary-term","What is {term}?","lxyPsyClqTqVxZhmfDihDsuAz7Al3t22gFHKeu2Lza8",[301,304,306,309,312,315,318],{"slug":302,"label":303},"profit","Profit",{"slug":305,"label":27},"pricing",{"slug":307,"label":308},"ads","Ads",{"slug":310,"label":311},"operations","Operations",{"slug":313,"label":314},"market","Market",{"slug":316,"label":317},"data-science","Data Science",{"slug":319,"label":48},"company",{"entry":321,"document":355,"toc":469},{"id":322,"title":323,"aliases":324,"category":316,"cta":325,"date":328,"description":329,"draft":330,"draftReason":324,"extension":331,"meta":332,"navigation":324,"ogImage":324,"path":333,"readMinutes":334,"related":335,"robots":324,"schemaOrg":324,"seo":341,"short":327,"sitemap":343,"sources":344,"stem":353,"updatedAt":324,"__hash__":354},"glossary_en\u002Fglossary\u002Fcvar.md","CVaR",null,{"title":326,"body":327},"See it on your own shop, free.","Conditional Value at Risk — the average outcome in the worst cases. Not how often it goes wrong, but how bad it gets when it does.","2026-10-23","CVaR is the average outcome across the worst share of scenarios. How it differs from probability of loss, and how a mean-CVaR objective trades return for safety.",false,"md",{},"\u002Fglossary\u002Fcvar",3,[336,337,338,339,340],"probability-of-loss","recommendation-confidence","bayesian-inference","safety-stock","thompson-sampling",{"title":342,"description":329},"What is CVaR? Tail Risk for Ad Budgets | DataGlass",{"loc":333},[345,349],{"title":346,"url":347,"note":348},"Expected shortfall","https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FExpected_shortfall","Definition of conditional value at risk as the expected loss conditional on exceeding the value-at-risk threshold.",{"title":350,"url":351,"note":352},"Coherent risk measure","https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FCoherent_risk_measure","The axioms CVaR satisfies and value at risk does not, including subadditivity — why CVaR behaves sensibly when risks are combined across campaigns.","glossary\u002Fcvar","jXwbrh0vNaEjvr0VLqlAY_2xZdUfd7KWf7aq70PFhSU",{"frontmatter":356,"meta":363,"nodes":392},{"title":323,"description":329,"seo":357,"short":327,"category":316,"related":358,"date":328,"sources":359,"cta":362,"readMinutes":334},{"title":342,"description":329},[336,337,338,339,340],[360,361],{"title":346,"url":347,"note":348},{"title":350,"url":351,"note":352},{"title":326,"body":327},{"toc":364},{"title":365,"searchDepth":366,"depth":366,"links":367},"",2,[368,371,374,377,380,383,386,389],{"id":369,"depth":366,"text":370},"formula","Formula",{"id":372,"depth":366,"text":373},"example","Example",{"id":375,"depth":366,"text":376},"how-is-cvar-different-from-probability-of-loss","How is CVaR different from probability of loss?",{"id":378,"depth":366,"text":379},"why-not-just-use-the-average","Why not just use the average?",{"id":381,"depth":366,"text":382},"how-do-you-choose-the-risk-weight","How do you choose the risk weight?",{"id":384,"depth":366,"text":385},"why-it-matters","Why it matters",{"id":387,"depth":366,"text":388},"in-dataglass","In DataGlass",{"id":390,"depth":366,"text":391},"where-this-shows-up","Where this shows up",[393,397,400,409,411,416,418,421,423,426,428,431,433,436,441,443,446,448],[394,395,396],"p",{},"Conditional Value at Risk, also called expected shortfall, is the average outcome across the worst share of possible scenarios — for example, the mean profit across the worst 5% of outcomes. Where probability of loss asks how often things go badly and an average asks what happens typically, CVaR asks how bad the bad cases are on average. It is magnitude-aware, unlike a frequency, and deliberately ignores the upside, unlike a mean, which makes it the standard measure when the purpose is to bound a downside rather than to describe a central tendency.",[398,399,370],"h2",{"id":369},[401,402,404],"pre",{"language":403},"text",[405,406,408],"code",{"class":407},"language-text","VaR at level α  = the α-quantile of the outcome distribution (the cutoff)\nCVaR at level α = average outcome given the outcome is below that cutoff\n\nA risk-aware objective blends the two views:\n  objective = (1 − w) × expected profit  +  w × CVaR\n  w = 0 → pure expected profit;  w = 1 → pure downside protection",[398,410,373],{"id":372},[401,412,413],{"language":403},[405,414,415],{"class":407},"Two budget levels for the same Shopee campaign.\n\n            expected daily profit   worst-5% average\n  ฿8,000\u002Fday        +฿1,900              −฿1,100\n  ฿14,000\u002Fday       +฿2,300              −฿6,400\n\nThe higher budget wins on the average by ฿400 and loses ฿5,300 more on\na bad day. Which is correct depends on how much a bad week costs you.",[398,417,376],{"id":375},[394,419,420],{},"Probability of loss counts occurrences; CVaR measures amounts. A campaign that loses 50 baht on most days has a high probability of loss and a mild CVaR. A campaign that wins almost always and occasionally loses forty thousand baht has a low probability of loss and a severe CVaR. These are opposite risk profiles and the frequency measure cannot distinguish them, which is why a stop rule built on probability of loss will happily keep a campaign whose rare failures are the thing that actually threatens the business. CVaR is specifically the tool for that case.",[398,422,379],{"id":378},[394,424,425],{},"Because an average is fragile when the outcome distribution has a long tail, which marketplace campaign profit reliably does — many small losing days and occasional large wins. The mean of such a distribution is dominated by the rare large outcomes, so it is highly sensitive to how well the model estimated their probability and their size. Small errors in the tail produce large swings in the mean. CVaR looks at the downside deliberately rather than being dragged around by the upside, and it is a coherent risk measure, meaning it behaves sensibly when positions are combined — a property the more familiar value at risk does not have.",[398,427,382],{"id":381},[394,429,430],{},"From the business, not from the model. The weight expresses how much expected profit the shop is willing to give up to reduce the severity of bad outcomes, and that depends on things no optimizer can observe: cash runway, whether a bad month is survivable, how much of the budget this campaign represents, and whether the shop is in a growth phase or defending a position. A shop with thin working capital should carry a high weight and accept a lower average. A shop with reserves and a long horizon should carry a low one. Setting it once and reviewing it when circumstances change is more sensible than tuning it per campaign.",[398,432,385],{"id":384},[394,434,435],{},"Marketplace ad outcomes are skewed and their downside is not symmetric with their upside — a bad month consumes working capital that constrains the next three, while a good month mostly just funds the next campaign. Optimising only the average treats those two as equivalent. Carrying a tail measure alongside it is what lets a shop scale spend without occasionally taking a loss it cannot absorb.",[437,438,440],"blog-callout",{"title":439},"Common mistake","Reading CVaR as a forecast of what will happen. It is the average of the bad cases, conditional on being in them — a planning figure for the downside, not an expectation. Quoting it as “this campaign will lose ฿6,400” inverts its meaning; the correct reading is “if the worst one-in-twenty week arrives, it costs about ฿6,400 on average”.",[398,442,388],{"id":387},[394,444,445],{},"For campaigns with enough history to model the whole outcome distribution, DataGlass optimizes a blend of expected profit and the tail average rather than expected profit alone, so the recommended budget reflects how severe the downside is and not only how good the average looks. The tail figure is shown as evidence on the recommendation.",[398,447,391],{"id":390},[449,450,451,457,463],"ul",{},[452,453,454],"li",{},[455,456,12],"a",{"href":13},[452,458,459],{},[455,460,462],{"href":461},"\u002Fen-id\u002Fblog\u002Fhow-ecommerce-decision-engines-work","E-commerce Decision Engine: How Marketplace Sellers Turn Data Into Profit Recommendations",[452,464,465],{},[455,466,468],{"href":467},"\u002Fen-id\u002Fblog\u002Fcross-platform-ad-budget-allocation","Cross-platform ad budget allocation for SEA marketplace sellers",[470,471,472,473,474,475,476,477],{"id":369,"depth":366,"text":370},{"id":372,"depth":366,"text":373},{"id":375,"depth":366,"text":376},{"id":378,"depth":366,"text":379},{"id":381,"depth":366,"text":382},{"id":384,"depth":366,"text":385},{"id":387,"depth":366,"text":388},{"id":390,"depth":366,"text":391},{"id":479,"categories":480,"domain":487,"extension":5,"fallback":488,"home":491,"industry":500,"meta":505,"pricing":506,"stem":518,"__hash__":519},"og_en\u002Fen\u002Fog.yml",[481,482,483,484,485,486],{"slug":302,"label":303},{"slug":305,"label":27},{"slug":307,"label":308},{"slug":310,"label":311},{"slug":316,"label":317},{"slug":319,"label":48},"dataglasslabs.com",{"title":489,"description":490},"DataGlass","The decision engine for Shopee, Lazada and TikTok Shop sellers.",{"chart":492,"metrics":493},"Net profit, last 30 days",[494,497],{"label":495,"value":496},"Net profit","฿1.24M",{"label":498,"value":499},"Profit ROAS","3.4x",{"axis":501,"point":502},"Ad spend",{"label":503,"value":504},"Next baht still pays","+฿0.42",{},{"plans":507},[508,512,515],{"name":509,"price":510,"period":511},"Free","฿0","\u002Fmonth",{"name":513,"price":514,"period":511},"Standard","฿1,499",{"name":516,"price":517,"period":511},"Pro","฿2,499","en\u002Fog","63L8y4Lv8I2q3NvR26fMXU1sE9Wd7TZaz2l_tV6oZuo",[],[522,526,530,534,538],{"path":523,"title":524,"short":525,"draft":330},"\u002Fglossary\u002Fprobability-of-loss","Probability of loss","How often a campaign has a losing day. A frequency, not an amount — and on sparse campaigns it measures the wrong thing.",{"path":527,"title":528,"short":529,"draft":330},"\u002Fglossary\u002Frecommendation-confidence","Recommendation confidence","How often a proposed change beats doing nothing. A comparison against the status quo, not a score for the campaign.",{"path":531,"title":532,"short":533,"draft":330},"\u002Fglossary\u002Fbayesian-inference","Bayesian inference","Estimating with a range instead of a single number, so a decision can account for how little it actually knows.",{"path":535,"title":536,"short":537,"draft":330},"\u002Fglossary\u002Fsafety-stock","Safety stock","The buffer held against demand and lead-time variance. Priced by what a stockout costs you, not by a rule of thumb.",{"path":539,"title":540,"short":541,"draft":330},"\u002Fglossary\u002Fthompson-sampling","Thompson Sampling","A way to keep learning about uncertain campaigns while still funding the proven ones — exploration without a fixed test budget.",1792785065623]