{"uid":"cap_pC-jIF2KVmRqD441XpPs2","slug":"night-lights-economic-index-estimator-9b502147","name":"Night Lights Economic Index Estimator","description":"Fits ordinary least squares to log radiance by year, converts the slope to annual radiance change, and applies a caller-supplied economic elasticity. Night lights are an imperfect proxy affected by sensors, saturation, electrification, outages, policy, and conflict; this is not an official economic statistic or causal estimate.","url":"https://space.halowerk.com/v1/night-lights-econ","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"observations":{"type":"array","items":{"type":"object","required":["year","mean_radiance"],"properties":{"year":{"type":"integer","maximum":2200,"minimum":1900},"mean_radiance":{"type":"number","maximum":1000000000000000,"minimum":1e-9}},"additionalProperties":false},"maxItems":1000,"minItems":2},"base_economic_index":{"type":"number","maximum":1000000000000000,"minimum":0.000001},"economic_elasticity":{"type":"number","maximum":10,"minimum":-10,"description":"Percent economic-index change per percent radiance change under the caller model."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OXlpa2I09T7XWFC84Nsj-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fits OLS regression to VIIRS/DMSP night-light radiance observations over time, converts the slope to an annual radiance change rate, and applies a caller-supplied economic elasticity to estimate an economic index change.","exampleAgentPrompt":"I have 10 years of mean radiance observations (2013–2022) for a region and a base economic index of 1200. Using an economic elasticity of 0.8, can you fit a regression to the radiance trend and estimate how the economic index has changed annually?","exampleUseCases":[{"title":"Tracking post-conflict economic recovery","prompt":"I have satellite night-light radiance data for a conflict-affected region from 2010 to 2020, with mean radiance readings per year. The base economic index is 850 and I expect about 0.7 percent economic change per percent radiance change. Can you fit the radiance trend and estimate how the economy has recovered over that period?"},{"title":"Estimating rural electrification economic impact","prompt":"We're studying electrification in a rural province — here are annual mean radiance values from 2015 to 2023. Our base economic index is 420 and our elasticity model says 1.2 percent economic growth per percent radiance gain. Fit OLS to these night light observations and give me the estimated annual economic index change."},{"title":"Monitoring sanctions impact via night lights","prompt":"I want to assess the economic effect of sanctions on a country using VIIRS night light data from 2014 to 2022. Mean radiance per year is available, base economic index is 3200, and I'm using an elasticity of 0.5. Please run the regression and estimate the annual economic change rate."}],"resultDescription":"Returns the OLS-fitted slope of log radiance over time (annual radiance change rate), the estimated annual economic index change derived by applying the caller-supplied elasticity, and likely regression diagnostics such as R-squared or confidence intervals. Comes with a caveat that night lights are an imperfect economic proxy subject to sensor artifacts, saturation, outages, and policy effects.","failureModes":["Fewer than 2 observations provided — minimum required for OLS fit","Radiance values of zero or negative (log transform fails on non-positive inputs)","Elasticity outside the allowed range of -10 to 10","base_economic_index below minimum threshold (0.000001)","Collinear or constant radiance values yielding degenerate regression","Sensor saturation in high-luminosity urban areas causing underestimated trends","Year values outside the valid 1900–2200 range"],"whenToPreferThis":"Choose this endpoint when you have multi-year time-series satellite night-light radiance data and want a quick, quantified economic proxy estimate without building your own regression pipeline. It is especially useful for regions where GDP or official economic statistics are sparse, delayed, or unreliable. Prefer it over generic regression tools when you specifically want the OLS-on-log-radiance methodology with economic elasticity scaling in a single call. Not suitable as an authoritative economic statistic or causal analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:46:16.319Z","isFirstParty":false}