[{"data":1,"prerenderedAt":10428},["ShallowReactive",2],{"doc:\u002Fdocs\u002Fcapabilities\u002Fmodels":3,"docs-nav":10171},{"id":4,"title":5,"body":6,"description":10162,"extension":10163,"meta":10164,"navigation":10166,"path":10167,"seo":10168,"stem":10169,"__hash__":10170},"docs\u002Fdocs\u002Fcapabilities\u002Fmodels.md","Statistical models in a flow",{"type":7,"value":8,"toc":10083},"minimark",[9,13,16,33,60,89,108,122,136,147,152,287,291,322,330,355,472,497,500,504,526,545,549,556,616,627,641,645,663,677,695,701,711,715,802,806,812,835,919,922,928,1014,1017,1036,1040,1045,1080,1083,1093,1112,1116,1121,1159,1166,1177,1181,1186,1215,1218,1227,1231,1236,1251,1262,1466,1471,1570,1591,1620,1625,1708,1742,1748,1785,1815,1828,1837,1846,1852,1948,1986,2056,2060,2064,2086,2111,2187,2198,2220,2240,2244,2253,2274,2286,2311,2321,2384,2387,2393,2629,2658,2664,2670,2695,2704,2707,2713,2731,2740,2748,2769,2878,2901,2918,2967,2993,2997,3091,3094,3127,3131,3136,3166,3184,3189,3199,3296,3313,3445,3474,3480,3484,3540,3609,3614,3633,3668,3673,3677,3685,3911,3932,3943,4106,4168,4172,4177,4188,4263,4266,4333,4363,4367,4377,4423,4427,4554,4571,4575,4581,4696,4722,4726,4738,4903,4913,4932,4936,4947,4998,5001,5005,5073,5077,5090,5118,5122,5158,5171,5175,5181,5219,5240,5244,5499,5502,5506,5604,5607,5615,5659,5662,5710,5763,5767,5770,5807,5829,5833,5845,5894,5931,5935,5992,5995,5999,6033,6037,6080,6084,6096,6100,6111,6129,6153,6170,6185,6188,6205,6220,6223,6381,6384,6421,6425,6428,6468,6483,6486,6555,6562,6574,6577,6615,6640,6644,6655,6683,6705,6886,6892,6896,6903,6966,6978,6981,7042,7046,7069,7097,7100,7103,7152,7165,7168,7191,7226,7230,7237,7279,7301,7542,7555,7558,7608,7620,7623,7699,7703,7717,7731,7734,7822,7827,7967,7970,7973,7980,7984,7998,8042,8058,8062,8075,8376,8407,8410,8428,8440,8450,8453,8498,8630,8635,8775,8778,8824,8828,8839,8887,8913,8917,8928,9004,9013,9028,9037,9041,9055,9062,9083,9086,9092,9095,9120,9126,9297,9307,9337,9347,9432,9439,9441,9446,9474,9493,9513,9519,9558,9564,9573,9774,9790,9794,9950,9953,9958,10008,10011,10014,10037,10041],[10,11,5],"h1",{"id":12},"statistical-models-in-a-flow",[14,15],"page-toc",{},[17,18,19,20,24,25,28,29,32],"p",{},"A hypothesis test answers a yes-or-no question. A model answers «how much»: how the quantity\nsold changes with the price, which customers are likely to order, how long a customer lasts,\nwhat next month will look like. Tabularia fits these models inside a flow: drop the node of\nthe model after any step, choose its columns and options in the panel, press ",[21,22,23],"strong",{},"Run",", and read\nthe answer in the same place as any other step, as a ",[21,26,27],{},"table of results"," the next nodes can\nuse and a ",[21,30,31],{},"Report"," of a few pages whose first page says whether the model's assumptions hold.",[17,34,35,36,39,40,43,44,47,48,51,52,55,56,59],{},"Tabularia ships seventeen models in eight groups. The first five groups are: ",[21,37,38],{},"regression"," (linear, logistic, both\nwith ridge, lasso and elastic-net penalties), ",[21,41,42],{},"survival"," (Kaplan–Meier, Cox, and parametric\nsurvival: the time to an event described by a Weibull, log-normal or another distribution, chosen\nor searched for), ",[21,45,46],{},"time series"," (ARIMA, from AR to SARIMAX, with the orders given or searched\nfor), ",[21,49,50],{},"boosting"," (XGBoost and CatBoost: gradient-boosted trees to predict a number or a class,\nwith the importance of each predictor) and ",[21,53,54],{},"customer lifetime"," (customer lifetime value and\nBG\u002FBB: for customers who leave without saying so, the purchases to expect, the probability of\nstill being active and the discounted value of each customer). Another node, ",[21,57,58],{},"Predict",",\napplies a model you registered in MLflow to new rows.",[17,61,62,63,66,67,72,73,76,77,80,81,84,85,88],{},"The time series group also has ",[21,64,65],{},"Decomposition",", which splits a series into a trend, seasons and a remainder and\nmakes no model (",[68,69,71],"a",{"href":70},"#decomposition-r","below","), ",[21,74,75],{},"Volatility (GARCH)",", which estimates how large the day's movement of a\nseries of prices or returns is expected to be and makes a model Predict can apply (",[68,78,71],{"href":79},"#volatility-garch-r","), and\n",[21,82,83],{},"Risk simulation",", which simulates thousands of futures of a series to measure its value at risk, its expected shortfall,\nthe chance of passing a level and its drawdown, and makes no model (",[68,86,71],{"href":87},"#risk-simulation-r",").",[17,90,91,92,95,96,99,100,103,104,107],{},"A sixth group, ",[21,93,94],{},"experiments",", is not a model: its two nodes, ",[21,97,98],{},"A\u002FB test"," and ",[21,101,102],{},"A\u002FB test planning",", read the\nresult of a randomized experiment and size the next one (",[68,105,71],{"href":106},"#ab-tests-r","). They run as Jobs, are enabled like the\nothers, and have no model card and no Predict.",[17,109,110,111,114,115,118,119,88],{},"A seventh group, ",[21,112,113],{},"pre-trained forecasting",", forecasts series with a model trained in advance, ",[21,116,117],{},"Forecast (Timestral)",". Its weights\ncome under a licence of their own, which an administrator accepts when enabling the group (",[68,120,71],{"href":121},"#pre-trained-forecasting-timestral",[17,123,124,125,128,129,132,133,88],{},"An eighth group, ",[21,126,127],{},"Bayesian models",", holds one node of its own, ",[21,130,131],{},"Bayesian model",": you draw the model as a graph, Tabularia\nwrites its Stan program, and the node returns the draws of its posterior (",[68,134,71],{"href":135},"#bayesian-model",[17,137,138,141,142,146],{},[21,139,140],{},"They need Kubernetes."," A model is not computed by an engine: it runs as a Job in your\ncluster, in an image built from a recipe Tabularia ships, with R (or Python, for boosting). On Docker Compose the\nmodels are in the palette greyed out (the tooltip says «Needs Kubernetes, with this feature turned on in the Helm chart: not available on this installation»), the section in Administration says\n«Requires Kubernetes», and a flow with a model step cannot run it. The ",[68,143,145],{"href":144},"\u002Fdocs\u002Fcapabilities\u002Fstatistics","hypothesis tests",", which run on every engine, are the part of\nstatistics that works everywhere.",[148,149,151],"h2",{"id":150},"at-a-glance","At a glance",[153,154,155,169],"table",{},[156,157,159],"thead",{"role":158},"rowgroup",[160,161,163,167],"tr",{"role":162},"row",[164,165],"th",{"role":166},"columnheader",[164,168],{"role":166},[170,171,172,196,204,220,236,248,256,269],"tbody",{"role":158},[160,173,174,181],{"role":162},[175,176,180],"td",{"role":177,"data-label":178,"data-place":179},"cell","","title","Where",[175,182,184,185,188,189,192,193,195],{"role":177,"data-label":178,"data-place":183},"meta","The flow editor's palette, group ",[21,186,187],{},"Models"," (after ",[21,190,191],{},"Statistics","), with a subtitle for each group an administrator enabled and you may use. ",[21,194,58],{}," is in the same group.",[160,197,198,201],{"role":162},[175,199,200],{"role":177,"data-label":178,"data-place":179},"What a model node does",[175,202,203],{"role":177,"data-label":178,"data-place":183},"Reads the rows that reach it, fits one model in a Job of its group, and outputs a table (the ten columns of the statistics, or the rows with the fitted values added, or the survival table, or the forecast, or the scores of each customer)",[160,205,206,209],{"role":162},[175,207,208],{"role":177,"data-label":178,"data-place":179},"What you see",[175,210,211,99,214,216,217,219],{"role":177,"data-label":178,"data-place":183},[21,212,213],{},"Table",[21,215,31],{}," tabs under the canvas, filled by ",[21,218,23],{}," in the node's panel or by a run of the flow",[160,221,222,225],{"role":162},[175,223,224],{"role":177,"data-label":178,"data-place":179},"Downloads",[175,226,227,228,231,232,235],{"role":177,"data-label":178,"data-place":183},"The report as ",[21,229,230],{},"PDF"," or ",[21,233,234],{},"Excel",", from the Report tab",[160,237,238,241],{"role":162},[175,239,240],{"role":177,"data-label":178,"data-place":179},"Who turns it on",[175,242,243,244,247],{"role":177,"data-label":178,"data-place":183},"An administrator, group by group, in ",[21,245,246],{},"Administration → Statistical models"," (below)",[160,249,250,253],{"role":162},[175,251,252],{"role":177,"data-label":178,"data-place":179},"Who may use it",[175,254,255],{"role":177,"data-label":178,"data-place":183},"Whoever may edit the flow and may use the group; running needs RUN on the flow's folder",[160,257,258,261],{"role":162},[175,259,260],{"role":177,"data-label":178,"data-place":179},"Record",[175,262,263,264,268],{"role":177,"data-label":178,"data-place":183},"Optionally an ",[68,265,267],{"href":266},"\u002Fdocs\u002Fconnections\u002Fmlflow","MLflow"," server: parameters, metrics, the report and a registered version for Predict",[160,270,271,274],{"role":162},[175,272,273],{"role":177,"data-label":178,"data-place":179},"Not exportable",[175,275,276,277,281,282,286],{"role":177,"data-label":178,"data-place":183},"A flow whose output reads a model cannot be exported to ",[68,278,280],{"href":279},"\u002Fdocs\u002Fdbt-export#limits","dbt"," (",[283,284,285],"code",{},"model_not_exportable",")",[148,288,290],{"id":289},"turning-a-group-on-administrators","Turning a group on (administrators)",[17,292,293,295,296,281,300,303,304,307,308,303,311,303,314,317,318,321],{},[21,294,246],{}," lists the eight groups Tabularia ships, each with its\nmodels, the number of packages its image pins and its state. Only an administrator acts, and\nnot with an API token; an observer reads the section. Every action is in the\n",[68,297,299],{"href":298},"\u002Fdocs\u002Fgovernance\u002Faudit-log","audit log",[283,301,302],{},"models.group_enable",", ",[283,305,306],{},"models.group_disable",",\n",[283,309,310],{},"models.group_rebuild",[283,312,313],{},"models.group_settings",[283,315,316],{},"models.group_access",", and ",[283,319,320],{},"models.licence_accept"," for a group whose weights have a licence).",[17,323,324,325,329],{},"The Bayesian group has its own resources, compile cache and limits, described in\n",[68,326,328],{"href":327},"\u002Fdocs\u002Fcapabilities\u002Fbayesian-models#for-administrators","Bayesian models, for administrators",".",[17,331,332,333,337,338,341,342,346,347,350,351,354],{},"What it takes first is the same as for the Python and R of ",[68,334,336],{"href":335},"\u002Fdocs\u002Fscripting","scripting",": the\nchart's ",[283,339,340],{},"scripts.enabled"," with its registry (see ",[68,343,345],{"href":344},"\u002Fdocs\u002Fdeploy\u002Fkubernetes#statistical-models","Kubernetes","),\nand the ",[21,348,349],{},"scripts bucket"," set in ",[21,352,353],{},"Administration → Scripting environments",", because a model\nreads its input from it. Without the bucket the section says so and the models do not run.",[153,356,357,367],{},[156,358,359],{"role":158},[160,360,361,364],{"role":162},[164,362,363],{"role":166},"State",[164,365,366],{"role":166},"Meaning",[170,368,369,379,398,412,422,432,442,455],{"role":158},[160,370,371,376],{"role":162},[175,372,373],{"role":177,"data-label":363,"data-place":179},[21,374,375],{},"Not enabled",[175,377,378],{"role":177,"data-label":366,"data-place":183},"Nothing is built; the nodes are not in the palette",[160,380,381,386],{"role":162},[175,382,383],{"role":177,"data-label":363,"data-place":179},[21,384,385],{},"Building",[175,387,388,389,393,394,397],{"role":177,"data-label":366,"data-place":183},"A Job in the build namespace builds the image from the group's recipe: R 4.6 (Python 3.14 for boosting) and its packages at pinned versions, each checked by its sha256 (see ",[68,390,392],{"href":391},"#the-packages-are-pinned-by-their-hash","The packages are pinned by their hash","), without internet access at run time. The customer lifetime recipe also installs a system library, the GNU Scientific Library (",[283,395,396],{},"libgsl-dev","), with the image's package manager, and the build records the version installed",[160,399,400,405],{"role":162},[175,401,402],{"role":177,"data-label":363,"data-place":179},[21,403,404],{},"Checking",[175,406,407,408,411],{"role":177,"data-label":366,"data-place":183},"The image is built and its ",[21,409,410],{},"self-test"," runs: the models are fitted on small reference tables and compared with values computed outside Tabularia",[160,413,414,419],{"role":162},[175,415,416],{"role":177,"data-label":363,"data-place":179},[21,417,418],{},"Ready",[175,420,421],{"role":177,"data-label":366,"data-place":183},"Every value matched; the version is in use",[160,423,424,429],{"role":162},[175,425,426],{"role":177,"data-label":363,"data-place":179},[21,427,428],{},"Failed",[175,430,431],{"role":177,"data-label":366,"data-place":183},"The build or the self-test failed; the version in use, if any, is kept. The section shows the build log and the self-test's output",[160,433,434,439],{"role":162},[175,435,436],{"role":177,"data-label":363,"data-place":179},[21,437,438],{},"Rebuild needed",[175,440,441],{"role":177,"data-label":366,"data-place":183},"This Tabularia ships a newer recipe than the image in use; a new version is queued by itself, and until it is ready the group's steps do not run",[160,443,444,449],{"role":162},[175,445,446],{"role":177,"data-label":363,"data-place":179},[21,447,448],{},"Rechecking",[175,450,451,452,454],{"role":177,"data-label":366,"data-place":183},"This Tabularia ships a new runner for the group (the code that fits the models), not a new recipe: the self-test runs again on the image in use, without a build. The version serves meanwhile; it becomes ",[21,453,428],{}," only if the self-test reports values that differ",[160,456,457,462],{"role":162},[175,458,459],{"role":177,"data-label":363,"data-place":179},[21,460,461],{},"Recheck retrying",[175,463,464,465,467,468,471],{"role":177,"data-label":366,"data-place":183},"The cluster stopped that self-test before it reported (a Pod never scheduled or refused, an image not pulled, the deadline, a node gone, a log not given): that says nothing of the image, so the version serves on and the self-test runs again a minute later, up to five times (a node's most retries, at its default delay): six attempts in all. After the sixth the group is ",[21,466,418],{}," again: the version serves on, self-tested with its previous runner, and the section says why; ",[21,469,470],{},"Build again"," checks it",[17,473,474,477,478,480,481,303,484,488,489,492,493,496],{},[21,475,476],{},"Enable"," creates the group's own scripting environment (managed by Tabularia, you do not\nedit its packages) and queues its first version. ",[21,479,470],{}," makes a new version from the\nshipped recipe, after a failure or to start over. The images are built one group at a time\n(",[283,482,483],{},"MODELS__MAX_CONCURRENT_BUILDS",[68,485,487],{"href":486},"\u002Fdocs\u002Fconfiguration#scripting-environments-kubernetes","one by default",", counted over all\nthe gateway's replicas): a version queued while another group is building shows ",[21,490,491],{},"Waiting to build","\nand starts when that build ends, so enabling several groups, or an upgrade that renews several recipes,\ntakes the sum of their builds. The self-test of a built image does not count: it runs while the next build starts. ",[21,494,495],{},"Disable"," takes the nodes out of the\npalette and stops the steps that use them with a sentence; the images stay, and enabling the\ngroup again uses the current version at once. A flow that holds a node of a group that is not\nenabled opens, shows the node as unusable with the reason, and does not run.",[17,498,499],{},"A version is used only when its self-test passed on the recipe this Tabularia ships. The\nsection keeps every version with its status, its image reference, the packages installed\n(the lock), the build log and the self-test.",[501,502,392],"h3",{"id":503},"the-packages-are-pinned-by-their-hash",[17,505,506,507,510,511,514,515,518,519,522,523,88],{},"Every recipe holds, beside the version of each package, the ",[21,508,509],{},"sha256 of the file the build installs it from",": for an R\npackage, its source tarball as CRAN serves it (the hash computed by Tabularia when the recipe was pinned); for a Python\npackage, each Linux wheel of that version (x86-64 and arm64). The build downloads every file, checks it, and installs\nnothing else: the Python packages with ",[283,512,513],{},"pip --require-hashes"," (a package without its hash, or a file with another one, stops\nthe build), the R packages all downloaded and checked first, then installed one by one from the checked files, in the order\nof the recipe (each after the packages it needs), with no installer that fetches anything by itself. The ",[283,516,517],{},"arrow"," package\ndownloads its C++ library while it installs, and checks it against the SHA-512 sums its checked tarball carries. A file\nwhose bytes are not the recipe's fails the version with «a package downloaded is not the file the group's recipe pins»; the\nversion in use, if any, keeps serving. The lock of a version, in ",[21,520,521],{},"Versions",", shows each package with the sha256 of the\nfile it was installed from (",[283,524,525],{},"arrow@26.0.1 sha256:2b0f…",[17,527,528,529,303,532,535,536,303,539,542,543,329],{},"What the hash does not cover: the base image, named by its tag (",[283,530,531],{},"rocker\u002Fr-ver:4.6.0",[283,533,534],{},"python:3.14-slim","), and the system\nlibraries, which the image's own package manager installs and verifies by its signed archive. A mirror of CRAN or PyPI\n(",[283,537,538],{},"SCRIPTS__CRAN_URL",[283,540,541],{},"SCRIPTS__PYPI_INDEX_URL",") must serve the very files of CRAN and PyPI: see\n",[68,544,345],{"href":344},[501,546,548],{"id":547},"limits-and-access","Limits and access",[17,550,551,552,555],{},"Open ",[21,553,554],{},"Resources, access and versions"," on a group once it is enabled. Changes apply from the\nnext run, without building again.",[153,557,558,570],{},[156,559,560],{"role":158},[160,561,562,565,568],{"role":162},[164,563,564],{"role":166},"Setting",[164,566,567],{"role":166},"Default",[164,569,366],{"role":166},[170,571,572,583,594,605],{"role":158},[160,573,574,577,580],{"role":162},[175,575,576],{"role":177,"data-label":564,"data-place":179},"CPU (limit)",[175,578,579],{"role":177,"data-label":567,"data-place":183},"regression 2, survival 2, time series 1, boosting 2, customer lifetime 2",[175,581,582],{"role":177,"data-label":366,"data-place":183},"The Job asks for half and may use up to this",[160,584,585,588,591],{"role":162},[175,586,587],{"role":177,"data-label":564,"data-place":179},"Memory (limit)",[175,589,590],{"role":177,"data-label":567,"data-place":183},"4 GiB, 4 GiB, 2 GiB, 4 GiB, 2 GiB",[175,592,593],{"role":177,"data-label":366,"data-place":183},"At least 256 MiB; the Job asks for half. A Job over it is stopped by the cluster and the step says so",[160,595,596,599,602],{"role":162},[175,597,598],{"role":177,"data-label":564,"data-place":179},"Longest run",[175,600,601],{"role":177,"data-label":567,"data-place":183},"30 minutes (boosting 60)",[175,603,604],{"role":177,"data-label":366,"data-place":183},"1 to 1,440 minutes. A node's own timeout (900 seconds unless you change it) must be within it",[160,606,607,610,613],{"role":162},[175,608,609],{"role":177,"data-label":564,"data-place":179},"Most input rows",[175,611,612],{"role":177,"data-label":567,"data-place":183},"2,000,000 (regression), 1,000,000 (survival), 200,000 (time series; ARIMA stops at 20,000 whatever the group allows), 1,000,000 (boosting), 1,000,000 (customer lifetime)",[175,614,615],{"role":177,"data-label":366,"data-place":183},"1 to 1,000,000,000. Empty follows the recipe's number",[17,617,618,621,622,626],{},[21,619,620],{},"Who may use it:"," ",[623,624,625],"em",{},"everyone who can edit flows"," (the default), or only the user groups you\ntick. Administrators always can. With a list and none ticked, only administrators.",[17,628,629,630,632,633,636,637,640],{},"The Job runs in the scripts' namespaces (the editor's ",[21,631,23],{}," in the trials' namespace and\nits quota), with ",[21,634,635],{},"internet access off",": it reaches the scripts bucket through the egress\nproxy and nothing else, under the same isolation as a Script node. The code is Tabularia's\nown and never yours: the columns' names travel as data and are renamed before any formula is\nbuilt, so a column called ",[283,638,639],{},"x); system(\"id\")"," is a label and nothing more.",[148,642,644],{"id":643},"using-a-model-in-a-flow","Using a model in a flow",[646,647,648,654,657],"ol",{},[649,650,551,651,653],"li",{},[21,652,187],{}," in the palette, drag the model onto the canvas after the step that holds\nthe data (dropped on a node it becomes its next step).",[649,655,656],{},"In the panel, choose the columns and the options. The form shows only the options that\napply to what you chose (turning a penalty on hides the standard errors and shows the\npenalty's strength and folds; automatic orders hide p, d and q), greys out a combination\nthe model forbids and says why, and lists a column's values where it asks for one.",[649,658,659,660,662],{},"Press ",[21,661,23],{},", or run the flow.",[17,664,665,666,669,670,672,673,676],{},"A model node has one input on the left and one output on the right. A model with nothing\nafter it still runs: its results stay with its run, its report can be opened and MLflow gets\nits log. Steps can follow it from the start: before any Run they already know the columns it\nwill hand on (",[68,667,71],{"href":668},"#trying-a-model-run-and-not-up-to-date","). ",[21,671,598],{}," and\n",[21,674,675],{},"Retries"," (0 to 5) are on the node, as on a Script node.",[17,678,679,682,683,686,687,690,691,694],{},[21,680,681],{},"Which rows count."," A row with an empty or ",[283,684,685],{},"NaN"," value in a column the model uses is left\nout (",[283,688,689],{},"n_missing","); nothing is filled in. An infinite value stops the node and names the\ncolumn. A text or boolean predictor is a category, compared with its ",[21,692,693],{},"reference level"," (the\nfirst in text order unless you choose); a date is refused as a predictor with a sentence that\nsays to compute a number from it first, the month or the days since a start.",[17,696,697,700],{},[21,698,699],{},"What stops a model, and what only gets a remark."," A failed assumption never stops a model:\nit is a row with its verdict and its advice, and the report puts it on the first page. What\nstops it is what makes the numbers meaningless: complete separation under maximum likelihood,\na singular design (the term that repeats another is named), no events, too few rows (more\nrows than terms plus one), a series shorter than the model needs. The step then fails with a\nsentence that says what to do.",[17,702,703,706,707,710],{},[21,704,705],{},"Determinism."," Every random choice (the cross-validation folds, the sample of points drawn)\nuses ",[283,708,709],{},"seed",", 1 by default. The same rows on the same version of the group give the same\nnumbers.",[148,712,714],{"id":713},"the-models","The models",[17,716,717,718,722,723,281,726,303,729,99,732,735,736,739,740,743,744,281,747,303,750,303,753,303,756,759,760,281,763,303,766,303,769,772,773,281,776,303,778,303,781,784,785,788,789,791,792,303,795,231,798,801],{},"The examples use the sample databases of the Docker Compose stack, which a Kubernetes install\ncan load too (",[68,719,721],{"href":720},"\u002Fdocs\u002Fcapabilities\u002Fflows#example-revenue-by-region-and-channel-on-the-sample-data","Flows"," says\nhow to reach them): ",[283,724,725],{},"order_rows",[283,727,728],{},"quantita",[283,730,731],{},"prezzo_unitario",[283,733,734],{},"sconto_pct",", stored as\ntext: put a ",[21,737,738],{},"Change type"," to ",[623,741,742],{},"decimal"," first), ",[283,745,746],{},"orders",[283,748,749],{},"data_ordine",[283,751,752],{},"cliente_id",[283,754,755],{},"canale",[283,757,758],{},"stato","),\n",[283,761,762],{},"crm_activities",[283,764,765],{},"tipo",[283,767,768],{},"esito",[283,770,771],{},"durata_min",") and ",[283,774,775],{},"customers",[283,777,755],{},[283,779,780],{},"regione",[283,782,783],{},"agente_id",", and the\ncustomers' lives: ",[283,786,787],{},"data_acquisizione",", the day the customer was acquired, and ",[283,790,758],{},", the CRM's\nstatus ",[283,793,794],{},"attivo",[283,796,797],{},"inattivo",[283,799,800],{},"nuovo","). They show how a node is filled in; run\nthem on your own data to read numbers that mean something.",[501,803,805],{"id":804},"linear-regression","Linear regression",[17,807,808,809,329],{},"Model id in the catalogue: ",[283,810,811],{},"linear",[17,813,814,815,818,819,822,823,826,827,830,831,834],{},"Explains a number with other columns. ",[21,816,817],{},"Outcome"," is a numeric column, ",[21,820,821],{},"Predictors"," are\nnumbers and categories, with ",[21,824,825],{},"Interactions"," (pairs of predictors), ",[21,828,829],{},"Reference levels"," and\nan ",[21,832,833],{},"Intercept"," that is on unless you turn it off.",[153,836,837,847],{},[156,838,839],{"role":158},[160,840,841,844],{"role":162},[164,842,843],{"role":166},"Choice",[164,845,846],{"role":166},"Options",[170,848,849,864,881],{"role":158},[160,850,851,857],{"role":162},[175,852,853,856],{"role":177,"data-label":843,"data-place":179},[21,854,855],{},"Estimation"," (no penalty)",[175,858,859,860,863],{"role":177,"data-label":846,"data-place":183},"Ordinary least squares, or weighted (a ",[21,861,862],{},"Weights"," column is then required)",[160,865,866,871],{"role":162},[175,867,868,856],{"role":177,"data-label":843,"data-place":179},[21,869,870],{},"Standard errors",[175,872,873,874,877,878,286],{"role":177,"data-label":846,"data-place":183},"Classical, robust HC0 to HC3, robust to autocorrelation (HAC; ",[21,875,876],{},"Order of the rows"," names the column that orders them) or clustered (",[21,879,880],{},"Cluster column",[160,882,883,888],{"role":162},[175,884,885],{"role":177,"data-label":843,"data-place":179},[21,886,887],{},"Penalty",[175,889,890,891,894,895,898,899,902,903,906,907,910,911,914,915,918],{"role":177,"data-label":846,"data-place":183},"None, ridge, lasso, elastic net (",[21,892,893],{},"Lasso share"," from 0 to 1, or ",[283,896,897],{},"cv"," to choose it). The penalty's strength λ is chosen by cross-validation (",[21,900,901],{},"Largest within one error of the best",", or ",[21,904,905],{},"The smallest error",") or given; ",[21,908,909],{},"Cross-validation folds"," (3 to 20), ",[21,912,913],{},"Keep together by"," (a column whose values never split between folds), the ",[21,916,917],{},"error measure"," (squared or absolute) and whether to standardize the predictors",[17,920,921],{},"The penalized variant gives no standard errors, p-values or intervals: inference after a\nselection is not offered. It gives the coefficients, which are kept, the path of λ, the\ncross-validation curve and the fit out of sample.",[17,923,924,927],{},[21,925,926],{},"Assumptions checked"," (no penalty), each with its null hypothesis, statistic, p-value, a\nverdict (ok, doubtful, failed or not computed) and what to do:",[153,929,930,943],{},[156,931,932],{"role":158},[160,933,934,937,940],{"role":162},[164,935,936],{"role":166},"Check",[164,938,939],{"role":166},"What it looks for",[164,941,942],{"role":166},"What it advises when it fails",[170,944,945,956,967,978,992,1003],{"role":158},[160,946,947,950,953],{"role":162},[175,948,949],{"role":177,"data-label":936,"data-place":179},"Ramsey RESET",[175,951,952],{"role":177,"data-label":939,"data-place":183},"A missing curve",[175,954,955],{"role":177,"data-label":942,"data-place":183},"Add a square, a log or an interaction",[160,957,958,961,964],{"role":162},[175,959,960],{"role":177,"data-label":936,"data-place":179},"Breusch–Pagan, White",[175,962,963],{"role":177,"data-label":939,"data-place":183},"Changing spread of the residuals",[175,965,966],{"role":177,"data-label":942,"data-place":183},"Robust standard errors (HC3); with robust ones already chosen the inference does not rely on this",[160,968,969,972,975],{"role":162},[175,970,971],{"role":177,"data-label":936,"data-place":179},"Shapiro–Wilk, Anderson–Darling, Jarque–Bera",[175,973,974],{"role":177,"data-label":939,"data-place":183},"Normality of the residuals",[175,976,977],{"role":177,"data-label":942,"data-place":183},"The intervals rely on many rows; with few, transform the outcome",[160,979,980,983,986],{"role":162},[175,981,982],{"role":177,"data-label":936,"data-place":179},"Durbin–Watson, Breusch–Godfrey (order 1 and 4)",[175,984,985],{"role":177,"data-label":939,"data-place":183},"Residuals correlated in the order of the rows",[175,987,988,989,991],{"role":177,"data-label":942,"data-place":183},"HAC standard errors, or model the time. They depend on the order of the rows: choose ",[21,990,876],{},", otherwise they are not computed",[160,993,994,997,1000],{"role":162},[175,995,996],{"role":177,"data-label":936,"data-place":179},"VIF, condition number",[175,998,999],{"role":177,"data-label":939,"data-place":183},"Predictors that repeat each other (VIF over 5 doubtful, over 10 failed; condition number over 30)",[175,1001,1002],{"role":177,"data-label":942,"data-place":183},"Drop or combine them, centre them, or turn a penalty on",[160,1004,1005,1008,1011],{"role":162},[175,1006,1007],{"role":177,"data-label":936,"data-place":179},"Cook's distance, leverage, Bonferroni outlier test",[175,1009,1010],{"role":177,"data-label":939,"data-place":183},"Rows that pull the fit",[175,1012,1013],{"role":177,"data-label":942,"data-place":183},"Look at the rows named",[17,1015,1016],{},"With weighted estimation the RESET is the F test of the weighted model and the independence\ntests run on the transformed regression. A penalized fit has one check, the choice of λ: it\nwarns when the best λ is at an edge of the path or when the chosen one keeps no term.",[17,1018,1019,621,1022,1024,1025,1027,1028,1030,1031,99,1033,1035],{},[623,1020,1021],{},"Example:",[283,1023,725],{},", after a ",[21,1026,738],{}," of the three numbers: outcome ",[283,1029,728],{},",\npredictors ",[283,1032,731],{},[283,1034,734],{},", standard errors robust HC3. Does the quantity\nmove with the price, and does the spread grow with it?",[501,1037,1039],{"id":1038},"logistic-regression","Logistic regression",[17,1041,808,1042,329],{},[283,1043,1044],{},"logistic",[17,1046,1047,1048,1050,1051,1054,1055,1057,1058,1061,1062,1065,1066,1068,1069,1072,1073,1076,1077,1079],{},"Explains a yes-or-no outcome. ",[21,1049,817],{}," is any column with the ",[21,1052,1053],{},"Value that is the event","\nnamed; the other values are «no event». Options: ",[21,1056,855],{}," (maximum likelihood, or\n",[21,1059,1060],{},"Firth's correction",", which keeps estimates finite with few events or separation; logit\nlink only), ",[21,1063,1064],{},"Link"," (logit or probit), ",[21,1067,870],{}," (classical, HC0 to HC3,\nclustered), ",[21,1070,1071],{},"Confidence intervals"," (Wald, or profile likelihood with classical errors), the\n",[21,1074,1075],{},"Classification threshold"," (0.5) and the same ",[21,1078,887],{}," block as the linear regression (error\nmeasure: deviance, area under the ROC curve, or misclassification rate).",[17,1081,1082],{},"The results carry the coefficients with their odds ratios and intervals, the AUC with its\ninterval, the Brier score, the confusion matrix at the threshold (accuracy, sensitivity,\nspecificity, precision), the deviance, McFadden's, Nagelkerke's and Tjur's R², and the\nlikelihood-ratio test.",[17,1084,1085,1088,1089,1092],{},[21,1086,1087],{},"Assumptions checked:"," no separation (a predictor that splits the outcome completely: one\nrow per term the check names), Hosmer–Lemeshow calibration, linearity of the logit\n(Box–Tidwell, one numeric predictor at a time), VIF, ",[21,1090,1091],{},"events per variable"," (at least 10),\nCook's distance, leverage and deviance residuals (a row over 3 in absolute value is named).\nA penalized fit checks separation, EPV and the choice of λ; Hosmer–Lemeshow is not computed\nfor it, and the calibration chart is read out of fold.",[17,1094,1095,621,1097,1099,1100,1102,1103,1106,1107,672,1109,1111],{},[623,1096,1021],{},[283,1098,762],{},": outcome ",[283,1101,768],{},", event value ",[283,1104,1105],{},"ordine",", predictors ",[283,1108,765],{},[283,1110,771],{},". Which kind of contact ends in an order, and how much do minutes matter?",[501,1113,1115],{"id":1114},"kaplanmeier","Kaplan–Meier",[17,1117,808,1118,329],{},[283,1119,1120],{},"kaplan_meier",[17,1122,1123,1124,818,1127,1130,1131,1134,1135,1138,1139,1142,1143,1146,1147,1150,1151,1154,1155,1158],{},"The survival curve: the probability of still waiting for an event over time. ",[21,1125,1126],{},"Follow-up\ntime",[21,1128,1129],{},"Event column"," and its ",[21,1132,1133],{},"Value that means the event\nhappened","; the rest are censored (their time is the last moment known). Options: a\n",[21,1136,1137],{},"Strata column"," (one curve per value, at most 20), the ",[21,1140,1141],{},"confidence band"," (log, log–log or\nplain), the ",[21,1144,1145],{},"test between strata"," (log-rank, or Peto–Peto, in which early differences weigh\nmore) and whether to ",[21,1148,1149],{},"compare each pair"," of strata, ",[21,1152,1153],{},"Survival at times"," (up to 10 times\nreported with their intervals) and ",[21,1156,1157],{},"Restricted mean up to"," a time (by default the shortest of the strata's\nfollow-ups, so that every stratum is read over the same span; without strata the longest observed\ntime).",[17,1160,1161,1162,1165],{},"The table gives, per stratum, the rows, events, censored, the median and the quartiles with\ntheir intervals, the survival at the times asked, and the restricted mean. The ",[21,1163,1164],{},"survival\ntable"," output is the step table of every curve (time, at risk, events, censored, survival and\nits band), to send on to other nodes.",[17,1167,1168,1170,1171,902,1174,329],{},[21,1169,1087],{}," that censoring tells nothing of the time to the event (it cannot be\ntested from the data: the report says to ask how the rows came to be censored), proportional\nhazards between strata (curves that cross fail it; Grambsch–Therneau's test below the significance level\nmakes it doubtful; when that test cannot be made and no curves cross, it is not computed, with the reason),\nthe share censored in each stratum, the\nfollow-up of each stratum (by the reverse Kaplan–Meier) and whether the numbers are read\nwhere at least 10 rows are still at risk. Stratum names are ",[283,1172,1173],{},"column=value",[283,1175,1176],{},"all",[501,1178,1180],{"id":1179},"cox-proportional-hazards","Cox proportional hazards",[17,1182,808,1183,329],{},[283,1184,1185],{},"cox",[17,1187,1188,1189,303,1191,303,1193,1195,1196,1199,1200,1203,1204,1206,1207,1210,1211,1214],{},"How columns change the rate of an event over time. The time, event and event value are as in\nKaplan–Meier, with ",[21,1190,821],{},[21,1192,825],{},[21,1194,829],{},", a ",[21,1197,1198],{},"Strata\ncolumn"," (a baseline hazard of its own for each value), ",[21,1201,1202],{},"Tied times"," (Efron, the usual\nchoice, Breslow or exact), ",[21,1205,870],{}," (classical or robust, with a ",[21,1208,1209],{},"Cluster\ncolumn",") and a ",[21,1212,1213],{},"Start time column"," for rows that give an interval (start, stop) instead of\na follow-up time; then the number of rows is the number of intervals.",[17,1216,1217],{},"The results carry the hazard ratios with their intervals, the likelihood-ratio, Wald and\nscore tests, the concordance, and, as rows output, the linear predictor, the risk, the\nmartingale and the deviance residuals. The survival curve the report draws is for a row that\nsits at the means of the predictors.",[17,1219,1220,1222,1223,1226],{},[21,1221,1087],{}," proportional hazards for each term and globally (Schoenfeld: it\nadvises to stratify by the term, or to let it interact with time), the linear form of a\nnumeric predictor (a test against a natural spline with 3 degrees of freedom, and the\nmartingale residuals' chart), influence (dfbeta: over 2\u002F√n doubtful, over 1 failed; not\ncomputed with exact ties), VIF and ",[21,1224,1225],{},"events per coefficient"," (at least 10). With exact ties and many\nevents at one time the exact likelihood cannot be computed: the node refuses and says to use Efron's. A start\nnot before its time, or too close to it for the survival package to tell them apart, is refused, naming the row.",[501,1228,1230],{"id":1229},"parametric-survival","Parametric survival",[17,1232,808,1233,329],{},[283,1234,1235],{},"parametric_survival",[17,1237,1238,1239,1242,1243,1246,1247,1250],{},"The time to an event, described by a named distribution. Kaplan–Meier draws the curve and Cox\ncompares rates, and neither says anything beyond the last time observed. This node fits a\ndistribution to the times (Weibull, exponential, log-normal, log-logistic, generalized gamma or\nGompertz, or the one that suits best) and then answers ",[21,1240,1241],{},"how long",": the median time, any quantile\nand the probability of lasting past a time, for each row of a table, with intervals, also beyond\nthe follow-up. It gives each predictor as a ",[21,1244,1245],{},"time ratio"," (the factor by which it lengthens or\nshortens the time) or as a ",[21,1248,1249],{},"hazard ratio"," (the factor on the rate, comparable with Cox's).\nUse it when you need a time (the months a customer stays, the days until a part fails) or when\nthe shape of the hazard matters; use Cox when only the effects are asked and no distribution\nshould be assumed.",[17,1252,1253,303,1256,99,1258,1261],{},[21,1254,1255],{},"Follow-up time",[21,1257,1129],{},[21,1259,1260],{},"Value that means the event happened"," are as in\nKaplan–Meier: every other value is censored at its time. A time of 0 has no density under any of\nthe distributions, so such rows are left out and counted, with a note that says to count the time\nfrom a moment before them; a negative time is refused.",[153,1263,1264,1275],{},[156,1265,1266],{"role":158},[160,1267,1268,1271,1273],{"role":162},[164,1269,1270],{"role":166},"Option",[164,1272,567],{"role":166},[164,1274,366],{"role":166},[170,1276,1277,1294,1307,1322,1334,1348,1364,1380,1393,1404,1419,1436,1449],{"role":158},[160,1278,1279,1284,1287],{"role":162},[175,1280,1281],{"role":177,"data-label":1270,"data-place":179},[21,1282,1283],{},"Predictors (optional)",[175,1285,1286],{"role":177,"data-label":567,"data-place":183},"none",[175,1288,1290,1291,1293],{"role":177,"data-label":366,"data-place":1289},"body","Numbers, texts and booleans (a text is a category compared with its ",[21,1292,693],{},"); a date is refused. With none, the node fits the distribution of the times alone, per stratum",[160,1295,1296,1302,1304],{"role":162},[175,1297,1298,303,1300],{"role":177,"data-label":1270,"data-place":179},[21,1299,829],{},[21,1301,825],{},[175,1303],{"role":177,"data-label":567,"data-place":183},[175,1305,1306],{"role":177,"data-label":366,"data-place":1289},"Only with predictors: the level each category is compared with, and products of two predictors (at most 20)",[160,1308,1309,1313,1315],{"role":162},[175,1310,1311],{"role":177,"data-label":1270,"data-place":179},[21,1312,1137],{},[175,1314,1286],{"role":177,"data-label":567,"data-place":183},[175,1316,1317,1318,1321],{"role":177,"data-label":366,"data-place":1289},"A baseline of its own for each value, at most 20: the column enters the typical time ",[21,1319,1320],{},"and"," the shape (one shape per value; the exponential has no shape, so its strata change the rate only)",[160,1323,1324,1329,1331],{"role":162},[175,1325,1326],{"role":177,"data-label":1270,"data-place":179},[21,1327,1328],{},"Weights column",[175,1330,1286],{"role":177,"data-label":567,"data-place":183},[175,1332,1333],{"role":177,"data-label":366,"data-place":1289},"Case weights, 0 or more, each multiplying its row's likelihood. Rows of weight 0 are left out; weights that are not whole numbers get a note, because the standard errors read them as counts of rows",[160,1335,1336,1340,1342],{"role":162},[175,1337,1338],{"role":177,"data-label":1270,"data-place":179},[21,1339,1213],{},[175,1341,1286],{"role":177,"data-label":567,"data-place":183},[175,1343,1344,1347],{"role":177,"data-label":366,"data-place":1289},[21,1345,1346],{},"Delayed entry",": the subject was not observed before this time (it entered the study, or the machine was bought second-hand, already that old). The likelihood of the row is conditional on having lasted until its start. A start of 0 is no start. Refused when it is not before the time, or negative",[160,1349,1350,1355,1358],{"role":162},[175,1351,1352],{"role":177,"data-label":1270,"data-place":179},[21,1353,1354],{},"Distribution",[175,1356,1357],{"role":177,"data-label":567,"data-place":183},"Weibull",[175,1359,1360,1361],{"role":177,"data-label":366,"data-place":1289},"Weibull, exponential, log-normal, log-logistic, generalized gamma, Gompertz, or ",[21,1362,1363],{},"auto",[160,1365,1366,1371,1374],{"role":162},[175,1367,1368],{"role":177,"data-label":1270,"data-place":179},[21,1369,1370],{},"AIC margin for the simplest model",[175,1372,1373],{"role":177,"data-label":567,"data-place":183},"2",[175,1375,1376,1377,1379],{"role":177,"data-label":366,"data-place":1289},"Only with ",[21,1378,1363],{},": from 0 to 10 (below)",[160,1381,1382,1387,1390],{"role":162},[175,1383,1384],{"role":177,"data-label":1270,"data-place":179},[21,1385,1386],{},"Quantiles of the time",[175,1388,1389],{"role":177,"data-label":567,"data-place":183},"0.25, 0.75",[175,1391,1392],{"role":177,"data-label":366,"data-place":1289},"At most 9, between 0 and 1: reported for the profile and written in the rows and by Predict, besides the median, which is always there",[160,1394,1395,1399,1401],{"role":162},[175,1396,1397],{"role":177,"data-label":1270,"data-place":179},[21,1398,1153],{},[175,1400,1286],{"role":177,"data-label":567,"data-place":183},[175,1402,1403],{"role":177,"data-label":366,"data-place":1289},"Up to 10 times at which S(t) is reported",[160,1405,1406,1411,1413],{"role":162},[175,1407,1408],{"role":177,"data-label":1270,"data-place":179},[21,1409,1410],{},"Time already survived",[175,1412,1286],{"role":177,"data-label":567,"data-place":183},[175,1414,1415,1416,247],{"role":177,"data-label":366,"data-place":1289},"A number column: how long each row's unit has already lasted. The answers become the ",[21,1417,1418],{},"time left",[160,1420,1421,1426,1429],{"role":162},[175,1422,1423],{"role":177,"data-label":1270,"data-place":179},[21,1424,1425],{},"Significance level",[175,1427,1428],{"role":177,"data-label":567,"data-place":183},"0.05",[175,1430,1431,1432,286],{"role":177,"data-label":366,"data-place":1289},"The level of every interval (1 − alpha) and of the verdicts of the checks (",[68,1433,1435],{"href":1434},"#how-a-check-speaks-verdicts-facts-and-measures","How a check speaks",[160,1437,1438,1443,1446],{"role":162},[175,1439,1440],{"role":177,"data-label":1270,"data-place":179},[21,1441,1442],{},"Seed",[175,1444,1445],{"role":177,"data-label":567,"data-place":183},"1",[175,1447,1448],{"role":177,"data-label":366,"data-place":1289},"Only the sample of points drawn in the charts: the fit has no random choice",[160,1450,1451,1456,1459],{"role":162},[175,1452,1453],{"role":177,"data-label":1270,"data-place":179},[21,1454,1455],{},"Output",[175,1457,1458],{"role":177,"data-label":567,"data-place":183},"The results table",[175,1460,1461,902,1463],{"role":177,"data-label":366,"data-place":1289},[21,1462,1458],{},[21,1464,1465],{},"the rows",[17,1467,1468],{},[21,1469,1470],{},"The distributions.",[153,1472,1473,1488],{},[156,1474,1475],{"role":158},[160,1476,1477,1479,1482,1485],{"role":162},[164,1478,1354],{"role":166},[164,1480,1481],{"role":166},"The hazard",[164,1483,1484],{"role":166},"The predictors act on",[164,1486,1487],{"role":166},"The coefficients, as reported",[170,1489,1490,1503,1517,1531,1543,1555],{"role":158},[160,1491,1492,1494,1497,1500],{"role":162},[175,1493,1357],{"role":177,"data-label":1354,"data-place":179},[175,1495,1496],{"role":177,"data-label":1481,"data-place":183},"constant, rising or falling",[175,1498,1499],{"role":177,"data-label":1484,"data-place":183},"the time (accelerated failure time)",[175,1501,1502],{"role":177,"data-label":1487,"data-place":183},"time ratios; also hazard ratios, except with strata",[160,1504,1505,1508,1511,1514],{"role":162},[175,1506,1507],{"role":177,"data-label":1354,"data-place":179},"Exponential",[175,1509,1510],{"role":177,"data-label":1481,"data-place":183},"constant",[175,1512,1513],{"role":177,"data-label":1484,"data-place":183},"the rate",[175,1515,1516],{"role":177,"data-label":1487,"data-place":183},"time ratios and hazard ratios",[160,1518,1519,1522,1525,1528],{"role":162},[175,1520,1521],{"role":177,"data-label":1354,"data-place":179},"Log-normal",[175,1523,1524],{"role":177,"data-label":1481,"data-place":183},"rises, then falls",[175,1526,1527],{"role":177,"data-label":1484,"data-place":183},"the time",[175,1529,1530],{"role":177,"data-label":1487,"data-place":183},"time ratios",[160,1532,1533,1536,1539,1541],{"role":162},[175,1534,1535],{"role":177,"data-label":1354,"data-place":179},"Log-logistic",[175,1537,1538],{"role":177,"data-label":1481,"data-place":183},"falling, or rises and then falls",[175,1540,1527],{"role":177,"data-label":1484,"data-place":183},[175,1542,1530],{"role":177,"data-label":1487,"data-place":183},[160,1544,1545,1548,1551,1553],{"role":162},[175,1546,1547],{"role":177,"data-label":1354,"data-place":179},"Generalized gamma",[175,1549,1550],{"role":177,"data-label":1481,"data-place":183},"rising, falling, an arc or a bathtub; the Weibull and the log-normal are special cases",[175,1552,1527],{"role":177,"data-label":1484,"data-place":183},[175,1554,1530],{"role":177,"data-label":1487,"data-place":183},[160,1556,1557,1560,1563,1565],{"role":162},[175,1558,1559],{"role":177,"data-label":1354,"data-place":179},"Gompertz",[175,1561,1562],{"role":177,"data-label":1481,"data-place":183},"rising or falling exponentially (falling: a share of the rows never has the event)",[175,1564,1513],{"role":177,"data-label":1484,"data-place":183},[175,1566,1567],{"role":177,"data-label":1487,"data-place":183},[21,1568,1569],{},"hazard ratios only",[17,1571,1572,1573,1575,1576,1578,1579,1582,1583,1586,1587,1590],{},"A ",[21,1574,1245],{}," above 1 says the predictor lengthens the time to the event (1.5: half as long\nagain); a ",[21,1577,1249],{}," above 1 says it makes the event come sooner. For the same Weibull\nthey are one the inverse of the other, raised to its shape. ",[21,1580,1581],{},"Gompertz has hazard ratios only",":\nscaling its time changes its shape too, so «the time ratio of x» is not a constant of that\nmodel; the report says so where a time ratio would stand. A ",[21,1584,1585],{},"Weibull with strata has no hazard\nratio"," either, since each stratum has its own shape: its time ratios are common to all. Beside\nevery hazard ratio the report gives ",[21,1588,1589],{},"Cox's"," on the same rows, for comparison.",[17,1592,1593,1596,1597,1599,1600,1603,1604,1607,1608,1611,1612,1615,1616,1619],{},[21,1594,1595],{},"Auto."," With ",[623,1598,1363],{}," the node fits all six distributions in order of cost and keeps the one\nwith the ",[21,1601,1602],{},"lowest AIC",", with the same predictors, strata and weights. It then applies a rule of\nparsimony: when a simpler distribution ",[21,1605,1606],{},"nested"," in the winner (the exponential in the Weibull,\nthe Gompertz and the generalized gamma; the Weibull and the log-normal in the generalized gamma)\nhas an AIC within the ",[21,1609,1610],{},"AIC margin"," of the lowest, the simplest such distribution is chosen\ninstead, and the report says it in a sentence. A margin of 0 always takes the lowest AIC; the rule\ndoes not chain. The report lists every candidate with its log-likelihood, AIC, BIC, ΔAIC and\n",[21,1613,1614],{},"Akaike weight"," (the share of support among the candidates: two weights close to each other mean the two\ndistributions describe the times about equally well), marks the chosen one, and draws Kaplan–Meier's curve\nwith that of each candidate. A candidate that does not converge from two starting points stays in\nthe table marked, out of the choice and of the weights, and a note names it; if none can be\nfitted the step refuses. When more than half of the step's timeout has passed, the candidates not\nyet fitted are left out (status ",[623,1617,1618],{},"time",", with a note).",[17,1621,1622],{},[21,1623,1624],{},"What the node gives.",[1626,1627,1628,1664,1701],"ul",{},[649,1629,1630,1632,1633,1636,1637,1640,1641,1644,1645,1648,1649,1652,1653,1656,1657,1660,1661,1663],{},[21,1631,1458],{},": the ",[283,1634,1635],{},"model"," section (rows, events, the distribution used, log-likelihood,\nAIC, BIC, the test of the predictors, the concordance, the last observed times, ",[283,1638,1639],{},"alpha","), the\n",[283,1642,1643],{},"coef"," section (estimates on the log scale, time ratios or hazard ratios with their intervals,\nCox's beside, VIF), ",[283,1646,1647],{},"parameter"," (the distribution's own parameters, per stratum, with their\nintervals), ",[283,1650,1651],{},"stratum"," (the ",[21,1654,1655],{},"profile",": a row with every number at its mean and every category at\nits reference level, per stratum, with the median, the quantiles and the survival at the times\nasked, each with its interval, and Kaplan–Meier's median beside), ",[283,1658,1659],{},"candidate"," (with ",[623,1662,1363],{},"), the\nchecks and the points of the charts.",[649,1665,1666,1669,1670,303,1673,303,1676,1679,1680,1683,1684,99,1687,1690,1691,303,1694,99,1697,1700],{},[21,1667,1668],{},"The rows"," output: the input's columns with ",[283,1671,1672],{},"pred_linear",[283,1674,1675],{},"pred_median",[283,1677,1678],{},"pred_quantile_\u003Cp>","\nand ",[283,1681,1682],{},"pred_surv_at_\u003Ct>",", each with ",[283,1685,1686],{},"_low",[283,1688,1689],{},"_high"," columns, and on the rows of the fit\n",[283,1692,1693],{},"pred_cox_snell",[283,1695,1696],{},"pred_martingale",[283,1698,1699],{},"pred_deviance"," (residuals). The input must not already\nhave one of those names.",[649,1702,1703,1704,1707],{},"The ",[21,1705,1706],{},"intervals"," of what is predicted come from the delta method, computed from a covariance\nTabularia builds itself (the Hessian of the log-likelihood, from each row's derivatives in the\ndistribution's few parameters: fast whatever the number of predictors; a Richardson Hessian of all of\nthem only where a row's derivatives fail), the same for every distribution; a median or quantile the distribution never reaches (a Gompertz whose hazard\nfalls, so that part of the rows never has the event) is left empty, with a note.",[17,1709,1710,1713,1714,1716,1717,1720,1721,1723,1724,1727,1728,1652,1731,1734,1735,1738,1739,1741],{},[21,1711,1712],{},"The time left, and delayed entry."," They are two different things. ",[21,1715,1213],{}," acts\non the ",[21,1718,1719],{},"fit",": where each row begins to be observed. ",[21,1722,1410],{}," acts on the\n",[21,1725,1726],{},"prediction",": how long each unit to be predicted has already lasted. With it, the median and\nthe quantiles are the time ",[21,1729,1730],{},"left",[283,1732,1733],{},"q"," such that S(a + q) = ½ S(a)), and the survival at\n",[283,1736,1737],{},"t"," is the probability of lasting ",[283,1740,1737],{}," more, S(a + t) \u002F S(a), with intervals that follow the\nconditioning. A row with no value, a negative one or an infinite one gets an empty prediction and a\nwarning that counts them. Predict takes the same option and no start: the card holds the\nparameters of the fit in which the entry is already.",[17,1743,1744,1747],{},[21,1745,1746],{},"Assumptions checked."," Verdicts come only from tests with a p-value, read against the node's\nsignificance level:",[1626,1749,1750,1768,1774],{},[649,1751,1752,1753,1756,1757,1760,1761,1763,1764,1767],{},"for the exponential, the ",[21,1754,1755],{},"constant hazard"," (a likelihood-ratio test against the Weibull; for the\ndistributions that have a shape, the same test is a number of the fit, not a check), and the\ndistribution against the ",[21,1758,1759],{},"generalized gamma"," (the Weibull, the log-normal, the exponential).\nThe larger distribution of these two tests starts from the node's own fit (the Weibull is the\ngeneralized gamma at Q = 1, the log-normal at Q = 0, the exponential the Weibull of shape 1) and\nis taken to its maximum by Newton steps that cost little; with ",[623,1762,1363],{}," it is the candidate\nalready fitted. It is given as much time as the node's own fit took (at least 10 seconds),\nchecked while it runs: a test that needs longer, or that starts after half the step's timeout,\nis ",[21,1765,1766],{},"not computed"," and says why, as when the larger distribution does not converge. The\nlikelihood-ratio tests of the fit (the predictors, the shape against the exponential) follow\nthe same rule: out of time, a note says which is missing;",[649,1769,1770,1773],{},[21,1771,1772],{},"proportional hazards",", for each term and globally (Grambsch–Therneau, as in Cox), for the\nWeibull, the exponential and the Gompertz with predictors, which are the distributions that assume it;",[649,1775,1776,1777,1780,1781,1784],{},"two facts: ",[21,1778,1779],{},"convergence"," (a positive definite Hessian: without it the intervals are empty) and\n",[21,1782,1783],{},"separation"," (a level of a category among whose rows no event happens, which leaves its\ncoefficient with no limit).",[17,1786,1787,1790,1791,1794,1795,1798,1799,1802,1803,1806,1807,1810,1811,1814],{},[21,1788,1789],{},"Measures, with no verdict:"," the ",[21,1792,1793],{},"agreement with Kaplan–Meier"," (the largest gap in survival,\nfrom 0 to 1, between the fitted mean curve and Kaplan–Meier's, where it happens and how many of\nKaplan–Meier's standard errors it is; points with fewer than 10 rows still at risk are not read), the ",[21,1796,1797],{},"influential rows","\n(the largest change one row makes to each coefficient, with the five rows that make it), ",[21,1800,1801],{},"events\nper parameter",", the ",[21,1804,1805],{},"VIF"," and the ",[21,1808,1809],{},"extrapolation",", per stratum (how far beyond that stratum's last time observed the\nmedians, quantiles and times asked go). The VIF is shown in the tables of the coefficients, beside\neach term. Cox–Snell's residuals are a chart. With a start time column every check is still\nwritten, read on the rows from their entry. Kaplan–Meier's curve is then drawn with the rows at\nrisk at each time, and the fitted curve beside it is the mean, over the rows, of their survival\nconditional on lasting until the first time read, each row weighed by its chance of it: when rows\nenter at different times this is ",[21,1812,1813],{},"an approximation"," of what Kaplan–Meier estimates, not the\nsame quantity, and the report's note says so.",[17,1816,1817,1820,1821,1824,1825,1827],{},[21,1818,1819],{},"AIC and BIC with weights."," The BIC is −2 ℓ + k log n with ",[21,1822,1823],{},"n the number of rows"," used, whatever\ntheir weights: with case weights that stand for several units each, the BIC is that of the rows,\nnot of the units they count (the AIC does not depend on n). The comparison of the candidates of\n",[623,1826,1363],{}," reads the AIC.",[17,1829,1830,1833,1834,1836],{},[21,1831,1832],{},"The report"," (four or five pages): the first has the checks, the measures and the significance\nlevel; then the coefficients with their interval charts and the distribution's parameters, the fit,\nthe choice of the distribution with ",[623,1835,1363],{},", the fit to the data (Kaplan–Meier against the fitted\ncurve, Cox–Snell, log(−log S) for the Weibull and the exponential), the profile with its survival\nand hazard curves and bands, the influence, and the notes.",[17,1838,1839,1842,1843,1845],{},[21,1840,1841],{},"What it refuses",", with a sentence that says what to do: no event, a negative time, start or weight,\na time, start or weight that is not a number, a start not before the time (or so close to it that the\nsurvival package cannot tell them apart), a column of the rows output already in the input, a stratum with no event (its shape cannot be estimated), fewer rows\nthan the parameters plus 2, a design with a term that repeats another, more than 20 strata, a date as\npredictor, a fit that does not converge from two starting points, and with ",[623,1844,1363],{}," none of the six\nfitting.",[17,1847,1848,1851],{},[21,1849,1850],{},"Limits."," Strata 20; quantiles 9; times 10; the rows of the group (1,000,000 unless an\nadministrator changed it).",[17,1853,1854,1856,1857,1860,1861,307,1863,621,1866,303,1869,303,1871,99,1873,303,1875,621,1878,1880,1881,1883,1884,1887,621,1889,1892,1893,1195,1895,621,1897,621,1899,1902,1905,1906,621,1909,1911,1912,1915,1916,1918,1919,1922,1923,1926,1927,1929,1930,1932,1933,1935,1936,1939,1940,1943,1944,1947],{},[623,1855,1021],{}," how long does a customer last? From ",[21,1858,1859],{},"Sample \u002F Private tables",", drop ",[283,1862,775],{},[21,1864,1865],{},"Select columns",[283,1867,1868],{},"id",[283,1870,755],{},[283,1872,787],{},[283,1874,758],{},[21,1876,1877],{},"Rename",[283,1879,1868],{}," to\n",[283,1882,752],{},", and keep the customers acquired inside the data's window with a ",[21,1885,1886],{},"Filter",[283,1888,787],{},[623,1890,1891],{},"greater than or equal to"," 2023-07-01 (the first orders of the older ones are\nnot in the data). On a second branch drop ",[283,1894,746],{},[21,1896,1886],{},[283,1898,758],{},[623,1900,1901],{},"not equal to",[283,1903,1904],{},"annullato",", and a ",[21,1907,1908],{},"Group by",[283,1910,752],{}," with the ",[623,1913,1914],{},"maximum"," of ",[283,1917,749],{}," as ",[283,1920,1921],{},"last_order",".\n",[21,1924,1925],{},"Join"," the branch into the customers, type ",[623,1928,1730],{}," so that those who never ordered stay, on\n",[283,1931,752],{},". The CRM calls a customer ",[283,1934,797],{}," after six months with no order, so the time of\nthose is the days from the acquisition to the last order (the customer lasted until then; the six\nmonths of silence are not counted), and the time of the others is the days from the acquisition to\nthe end of the data, 2026-07-15, where they are censored. Two ",[21,1937,1938],{},"Computed columns",", in the engine's\ndialect (here Polars; DuckDB spells the difference ",[283,1941,1942],{},"date_diff('day', a, b)"," and ClickHouse\n",[283,1945,1946],{},"dateDiff('day', a, b)","):",[153,1949,1950,1960],{},[156,1951,1952],{"role":158},[160,1953,1954,1957],{"role":162},[164,1955,1956],{"role":166},"Name",[164,1958,1959],{"role":166},"Expression",[170,1961,1962,1974],{"role":158},[160,1963,1964,1969],{"role":162},[175,1965,1966],{"role":177,"data-label":1956,"data-place":179},[283,1967,1968],{},"days_to_end",[175,1970,1971],{"role":177,"data-label":1959,"data-place":183},[283,1972,1973],{},"CAST(DATE '2026-07-15' AS INTEGER) - CAST(data_acquisizione AS INTEGER)",[160,1975,1976,1981],{"role":162},[175,1977,1978],{"role":177,"data-label":1956,"data-place":179},[283,1979,1980],{},"days",[175,1982,1983],{"role":177,"data-label":1959,"data-place":183},[283,1984,1985],{},"CASE WHEN stato = 'inattivo' THEN CAST(COALESCE(last_order, data_acquisizione) AS INTEGER) - CAST(data_acquisizione AS INTEGER) ELSE days_to_end END",[17,1987,1988,1989,621,1991,621,1993,1996,1997,1999,2000,2002,2003,2005,2006,2008,2009,2011,2012,2014,2015,2018,2019,2021,2022,2025,2026,2029,2030,2033,2034,99,2037,2040,2041,2043,2044,2046,2047,2049,2050,2052,2053,2055],{},"Then a ",[21,1990,1886],{},[283,1992,1980],{},[623,1994,1995],{},"greater than"," 0 (a customer whose only order is on the day of the\nacquisition, or who has none, has no time to be read), and ",[21,1998,1230],{}," with the time ",[283,2001,1980],{},", the\nevent column ",[283,2004,758],{},", the event value ",[283,2007,797],{},", the predictor ",[283,2010,755],{}," and the distribution\n",[623,2013,1363],{},". Read the first page (the checks and the measures), then the candidates, then the time ratio\nof each channel against the reference channel, and the profile's median. On the sample data at\nthe ",[283,2016,2017],{},"small"," size this gives 2,034 customers, 697 of them lost, and ",[623,2020,1363],{}," keeps the Weibull (the\ngeneralised gamma is within 2 points of AIC and has one parameter more, so the simpler one wins); the\nconvergence check is ok. The channels differ: the likelihood-ratio test of the predictor has\np \u003C 0.001, the time ratio of ",[283,2023,2024],{},"Supermercati"," against the reference channel ",[283,2027,2028],{},"Ingrosso"," is about 4.3 and\nthat of ",[283,2031,2032],{},"Ristorazione"," about 2.1 (both significant), while ",[283,2035,2036],{},"Negozi",[283,2038,2039],{},"Online"," are not\ndistinguishable from ",[283,2042,2028],{},". The profile's median, for a customer of ",[283,2045,2028],{},", is about 550 days.\nFor the customers still active, a second ",[21,2048,1230],{}," is not\nneeded: register the model in MLflow, and a ",[21,2051,58],{}," with ",[21,2054,1410],{}," set to a\ncolumn that holds each customer's days since acquisition gives the median time left.",[501,2057,2059],{"id":2058},"arima","ARIMA",[17,2061,808,2062,329],{},[283,2063,2058],{},[17,2065,2066,2067,2070,2071,2074,2075,2078,2079,621,2082,2085],{},"A time series modelled on its own past, and forecast. ",[21,2068,2069],{},"Time column"," (a date, a datetime or\na whole number), ",[21,2072,2073],{},"Series"," (a number), ",[21,2076,2077],{},"Frequency of the series"," (hourly, daily, weekly,\nmonthly, quarterly, yearly, or whole numbers), and ",[21,2080,2081],{},"Seasonal period",[283,2083,2084],{},"s"," (empty: from the\nfrequency; at most 60). One row per period, no period twice.",[17,2087,2088,2089,307,2092,303,2095,303,2098,303,2101,99,2104,2107,2108,329],{},"The palette offers the same node under six names, each dropped with its orders set: ",[21,2090,2091],{},"AR",[21,2093,2094],{},"MA",[21,2096,2097],{},"ARMA",[21,2099,2100],{},"ARIMA (p, d, q)",[21,2102,2103],{},"SARIMA",[21,2105,2106],{},"SARIMAX",". They are one node; the\nname in the report follows what the orders make of it, for example ",[283,2109,2110],{},"SARIMA(1,1,1)(0,1,1)[12]",[153,2112,2113,2121],{},[156,2114,2115],{"role":158},[160,2116,2117,2119],{"role":162},[164,2118,843],{"role":166},[164,2120,846],{"role":166},[170,2122,2123,2141,2151,2161,2171],{"role":158},[160,2124,2125,2130],{"role":162},[175,2126,2127],{"role":177,"data-label":843,"data-place":179},[21,2128,2129],{},"Orders: manual",[175,2131,2132,2133,2136,2137,2140],{"role":177,"data-label":846,"data-place":183},"p, d, q (up to 5, 2, 5) and the seasonal P, D, Q (up to 2, 1, 2); ",[21,2134,2135],{},"Drift"," (a straight-line trend, when there is differencing) or ",[21,2138,2139],{},"Mean"," (a constant, when there is none)",[160,2142,2143,2148],{"role":162},[175,2144,2145],{"role":177,"data-label":843,"data-place":179},[21,2146,2147],{},"Orders: automatic",[175,2149,2150],{"role":177,"data-label":846,"data-place":183},"Tabularia searches (stepwise, or all candidates) for the best orders by AICc, AIC or BIC, bounded by the largest p, d, q, P, D, Q you allow, with the unit-root test (KPSS, ADF or Phillips–Perron) and the seasonal test (seasonal strength or OCSB) that choose the differencing. The report lists the candidates and says why each difference was taken. With the default Drift off the search does not try a drift",[160,2152,2153,2158],{"role":162},[175,2154,2155],{"role":177,"data-label":843,"data-place":179},[21,2156,2157],{},"Exogenous columns",[175,2159,2160],{"role":177,"data-label":846,"data-place":183},"Other columns that explain the series (SARIMAX); their future values must be in the rows after the last observed one, and then the forecast covers exactly those rows",[160,2162,2163,2168],{"role":162},[175,2164,2165],{"role":177,"data-label":843,"data-place":179},[21,2166,2167],{},"Transform",[175,2169,2170],{"role":177,"data-label":846,"data-place":183},"None, log, or Box–Cox with λ given or chosen",[160,2172,2173,2181],{"role":162},[175,2174,2175,303,2178],{"role":177,"data-label":843,"data-place":179},[21,2176,2177],{},"Forecast steps",[21,2179,2180],{},"Rows kept out",[175,2182,2183,2186],{"role":177,"data-label":846,"data-place":183},[283,2184,2185],{},"horizon"," (up to 1,000) and a hold-out, whose last rows are left out of the fit to measure the forecast (RMSE, MAE, MAPE, MASE)",[17,2188,2189,2190,2193,2194,2197],{},"The output ",[21,2191,2192],{},"The series and its forecast"," gives the observed values, the fitted ones and the\nforecast with its 80% and ",[283,2195,2196],{},"1 − alpha"," bands.",[17,2199,2200,2202,2203,2205,2206,2208,2209,2211,2212,2215,2216,2219],{},[21,2201,1087],{}," stationarity of the differenced series (ADF, KPSS and the four cases\nof the two together), that every root of the AR and MA polynomials is outside the unit circle\n(a modulus at most 1 failed, under 1.05 doubtful), white-noise residuals (Ljung–Box at 10 lags\nand at 2·s lags), constant variance (ARCH LM, and the first third of the residuals against the\nlast) and normal residuals (Jarque–Bera). Statistics that depend on how many rows there are\nare «not computed» when there are too few. ADF and KPSS read their p-values from a table that\nstops at both ends (0.01 and 0.99 for ADF, 0.01 and 0.10 for KPSS): when the statistic is beyond an\nend, the test answers only the ",[283,2204,1639],{}," on that side of it (a p-value below 0.01 rejects at any\n",[283,2207,1639],{}," of 0.01 or more), and for any other ",[283,2210,1639],{}," (0.001, or 0.2 for KPSS) it is «not computed»,\nwith its statistic shown, and so is the combined stationarity check. ADF's row says ",[21,2213,2214],{},"rejected"," when it rejects a\nunit root and ",[21,2217,2218],{},"not rejected"," when it does not, the words of the decomposition's report for the same test; not\nrejected is still a failed assumption of the fit here (difference once more).",[17,2221,2222,621,2224,2226,2227,621,2229,1806,2231,1915,2234,2236,2237,2239],{},[623,2223,1021],{},[283,2225,746],{}," with a ",[21,2228,1908],{},[283,2230,749],{},[623,2232,2233],{},"distinct count",[283,2235,1868],{},": one row\nper day. ARIMA with the time ",[283,2238,749],{},", the series the count, daily frequency, seasonal\nperiod 7 and automatic orders: what a week looks like, and the next two.",[501,2241,2243],{"id":2242},"boosting-python-xgboost-and-catboost","Boosting (Python): XGBoost and CatBoost",[17,2245,2246,2247,99,2250,329],{},"Model ids in the catalogue: ",[283,2248,2249],{},"xgboost",[283,2251,2252],{},"catboost",[17,2254,1703,2255,2258,2259,99,2262,2265,2266,2269,2270,2273],{},[21,2256,2257],{},"Boosting"," group holds two nodes, ",[21,2260,2261],{},"XGBoost",[21,2263,2264],{},"CatBoost",". Both fit gradient-boosted\ntrees: many small decision trees, each one correcting the mistakes of those before it. They are\nthe models to reach for when you want to ",[21,2267,2268],{},"predict"," and not to explain: many predictors, effects\nthat bend, interactions nobody wrote down. They give no coefficient and no p-value. They give how\nwell the model predicts rows it did not learn from, which predictors it leans on, and a few\ndiagnostics. When the question is «how much does the price move the quantity», use a\n",[68,2271,38],{"href":2272},"#linear-regression","; when it is «which orders will be late», use these.",[17,2275,2276,2279,2280,303,2283,2285],{},[21,2277,2278],{},"They are written in Python",", unlike the three groups above, and run as a Job like the others: an\nimage built from a recipe with pinned packages (",[283,2281,2282],{},"xgboost-cpu",[283,2284,2252],{}," and what they need),\nwithout internet access at run time.",[17,2287,2288,2291,2292,2294,2295,303,2297,303,2299,2301,2302,2304,2305,2307,2308,2310],{},[21,2289,2290],{},"Turning it on."," The group is in ",[21,2293,246],{}," beside the others\n(",[21,2296,476],{},[21,2298,470],{},[21,2300,495],{},", the limits and who may use it: everything above holds).\nThe image is a download of wheels, not a compilation, so it builds in minutes. The build needs\nPyPI, or your mirror of it (",[283,2303,541],{},"), as a Python environment of\n",[68,2306,336],{"href":335}," does. The defaults are 2 CPUs, 4 GiB, a longest run of 60 minutes and\n1,000,000 input rows. The group must be ",[21,2309,418],{},", its self-test passed, before a node of it runs.",[17,2312,2313,2316,2317,2320],{},[21,2314,2315],{},"Tasks."," The first choice in the form is the ",[21,2318,2319],{},"task",":",[153,2322,2323,2336],{},[156,2324,2325],{"role":158},[160,2326,2327,2330,2333],{"role":162},[164,2328,2329],{"role":166},"Task",[164,2331,2332],{"role":166},"The outcome column",[164,2334,2335],{"role":166},"What the model predicts",[170,2337,2338,2350,2371],{"role":158},[160,2339,2340,2344,2347],{"role":162},[175,2341,2342],{"role":177,"data-label":2329,"data-place":179},[283,2343,38],{},[175,2345,2346],{"role":177,"data-label":2332,"data-place":183},"A number",[175,2348,2349],{"role":177,"data-label":2335,"data-place":183},"The value, in the outcome's units",[160,2351,2352,2357,2364],{"role":162},[175,2353,2354],{"role":177,"data-label":2329,"data-place":179},[283,2355,2356],{},"binary",[175,2358,2359,2360,2363],{"role":177,"data-label":2332,"data-place":183},"Two distinct values (text, boolean or integer); ",[283,2361,2362],{},"event_value"," names the one whose probability is predicted",[175,2365,2366,2367,2370],{"role":177,"data-label":2335,"data-place":183},"The probability of the event, and the class at the ",[21,2368,2369],{},"threshold"," (0.5 unless you change it)",[160,2372,2373,2378,2381],{"role":162},[175,2374,2375],{"role":177,"data-label":2329,"data-place":179},[283,2376,2377],{},"multiclass",[175,2379,2380],{"role":177,"data-label":2332,"data-place":183},"3 to 20 distinct values",[175,2382,2383],{"role":177,"data-label":2335,"data-place":183},"The probability of every class, and the likeliest",[17,2385,2386],{},"The report changes with the task: RMSE, MAE and R² for a regression; AUC, log-loss, the ROC curve,\ncalibration and the confusion matrix for a binary outcome; accuracy, log-loss, a table per class and\nthe confusion matrix for a multiclass one.",[17,2388,2389,2392],{},[21,2390,2391],{},"Main parameters"," (the rest of the form is the same for both nodes, and the report writes every\nvalue used):",[153,2394,2395,2406],{},[156,2396,2397],{"role":158},[160,2398,2399,2402,2404],{"role":162},[164,2400,2401],{"role":166},"Parameter",[164,2403,567],{"role":166},[164,2405,366],{"role":166},[170,2407,2408,2428,2440,2455,2471,2487,2529,2542,2554,2567,2580,2591],{"role":158},[160,2409,2410,2418,2421],{"role":162},[175,2411,2412,303,2415],{"role":177,"data-label":2401,"data-place":179},[283,2413,2414],{},"outcome",[283,2416,2417],{},"predictors",[175,2419,2420],{"role":177,"data-label":567,"data-place":183},"needed",[175,2422,2423,2424,2427],{"role":177,"data-label":366,"data-place":1289},"Numbers, texts and booleans as predictors, at most 200; a date is refused (compute a number from it first). A predictor may have ",[21,2425,2426],{},"missing values",": both libraries handle them, unlike the regressions, which leave the row out",[160,2429,2430,2435,2437],{"role":162},[175,2431,2432],{"role":177,"data-label":2401,"data-place":179},[283,2433,2434],{},"weights",[175,2436,1286],{"role":177,"data-label":567,"data-place":183},[175,2438,2439],{"role":177,"data-label":366,"data-place":1289},"Case weights, used in the fit and in every metric",[160,2441,2442,2447,2449],{"role":162},[175,2443,2444],{"role":177,"data-label":2401,"data-place":179},[283,2445,2446],{},"class_weight",[175,2448,1286],{"role":177,"data-label":567,"data-place":183},[175,2450,2451,2454],{"role":177,"data-label":366,"data-place":1289},[283,2452,2453],{},"balanced"," weights the classes against each other in the fit, and in the losses early stopping and the diagnostics read (the validation part weighted the same way, the baseline one share per class); the metrics table stays unweighted. The probabilities are then no longer calibrated, and a diagnostic says so",[160,2456,2457,2465,2468],{"role":162},[175,2458,2459,303,2462],{"role":177,"data-label":2401,"data-place":179},[283,2460,2461],{},"validation",[283,2463,2464],{},"validation_share",[175,2466,2467],{"role":177,"data-label":567,"data-place":183},"random, 20 %",[175,2469,2470],{"role":177,"data-label":366,"data-place":1289},"How the validation part is drawn (below)",[160,2472,2473,2481,2484],{"role":162},[175,2474,2475,303,2478],{"role":177,"data-label":2401,"data-place":179},[283,2476,2477],{},"early_stopping",[283,2479,2480],{},"early_stopping_rounds",[175,2482,2483],{"role":177,"data-label":567,"data-place":183},"on, 50",[175,2485,2486],{"role":177,"data-label":366,"data-place":1289},"Stop when the validation measure has not improved for that many trees",[160,2488,2489,2494,2497],{"role":162},[175,2490,2491],{"role":177,"data-label":2401,"data-place":179},[283,2492,2493],{},"stop_metric",[175,2495,2496],{"role":177,"data-label":567,"data-place":183},"loss",[175,2498,2499,2500,2503,2504,2507,2508,2511,2512,2514,2515,2518,2519,2521,2522,2525,2526,286],{"role":177,"data-label":366,"data-place":1289},"What early stopping watches: the loss (RMSE or log-loss), ",[283,2501,2502],{},"mae"," (regression), ",[283,2505,2506],{},"auc"," (binary), ",[283,2509,2510],{},"error"," (classification: for a binary task the share of rows on the wrong side of a probability of 0.5, XGBoost's ",[283,2513,2510],{}," and CatBoost's ",[283,2516,2517],{},"ZeroOneLoss",", not of the node's ",[283,2520,2369],{},"). The AUC and the error rate move in steps and can stop the boosting on their noise after a few trees: ",[283,2523,2524],{},"trees_limit"," then reads the loss curve and is doubtful (the advice ",[283,2527,2528],{},"stop_on_loss",[160,2530,2531,2536,2539],{"role":162},[175,2532,2533],{"role":177,"data-label":2401,"data-place":179},[283,2534,2535],{},"max_trees",[175,2537,2538],{"role":177,"data-label":567,"data-place":183},"1,000",[175,2540,2541],{"role":177,"data-label":366,"data-place":1289},"The most trees. A multiclass round grows one tree per class",[160,2543,2544,2549,2551],{"role":162},[175,2545,2546],{"role":177,"data-label":2401,"data-place":179},[283,2547,2548],{},"learning_rate",[175,2550,1428],{"role":177,"data-label":567,"data-place":183},[175,2552,2553],{"role":177,"data-label":366,"data-place":1289},"How much each tree counts",[160,2555,2556,2561,2564],{"role":162},[175,2557,2558],{"role":177,"data-label":2401,"data-place":179},[283,2559,2560],{},"max_depth",[175,2562,2563],{"role":177,"data-label":567,"data-place":183},"6",[175,2565,2566],{"role":177,"data-label":366,"data-place":1289},"The depth of a tree: up to 12 for XGBoost, 10 for CatBoost",[160,2568,2569,2574,2577],{"role":162},[175,2570,2571],{"role":177,"data-label":2401,"data-place":179},[283,2572,2573],{},"subsample",[175,2575,2576],{"role":177,"data-label":567,"data-place":183},"0.8",[175,2578,2579],{"role":177,"data-label":366,"data-place":1289},"The share of rows each tree sees",[160,2581,2582,2586,2588],{"role":162},[175,2583,2584],{"role":177,"data-label":2401,"data-place":179},[283,2585,709],{},[175,2587,1445],{"role":177,"data-label":567,"data-place":183},[175,2589,2590],{"role":177,"data-label":366,"data-place":1289},"The split, the libraries' randomness and the samples",[160,2592,2593,2598,2601],{"role":162},[175,2594,2595],{"role":177,"data-label":2401,"data-place":179},[283,2596,2597],{},"output",[175,2599,2600],{"role":177,"data-label":567,"data-place":183},"results",[175,2602,2603,2606,2607,99,2610,902,2613,99,2616,2619,2620,2623,2624,231,2627,286],{"role":177,"data-label":366,"data-place":1289},[283,2604,2605],{},"rows"," adds the model's columns to the input rows (",[283,2608,2609],{},"pred_value",[283,2611,2612],{},"pred_residual",[283,2614,2615],{},"pred_prob",[283,2617,2618],{},"pred_class",", with ",[283,2621,2622],{},"pred_part",": ",[283,2625,2626],{},"train",[283,2628,2461],{},[17,2630,2631,2632,303,2635,303,2638,303,2641,99,2644,2647,2648,303,2651,99,2654,2657],{},"XGBoost has also ",[283,2633,2634],{},"min_child_weight",[283,2636,2637],{},"colsample_bytree",[283,2639,2640],{},"reg_lambda",[283,2642,2643],{},"reg_alpha",[283,2645,2646],{},"gamma",";\nCatBoost ",[283,2649,2650],{},"l2_leaf_reg",[283,2652,2653],{},"rsm",[283,2655,2656],{},"random_strength",". The defaults are not the libraries' own: with\nearly stopping on, a small learning rate with some sampling of rows is the safe start, and a\nwritten value makes the fit reproducible from its parameters. Turn them only when a diagnostic\nasks you to.",[17,2659,2660,2663],{},[21,2661,2662],{},"Categories"," (text and boolean predictors) are used as they are, not expanded into one column per\nlevel: XGBoost with its native categorical splits, CatBoost with its own encoding. So an\nimportance is one number per predictor, and a level not seen when the model was fitted follows the\nmissing-value path. A column with more than 1,000 distinct values is refused, with the question\n«is it an identifier?».",[17,2665,2666,2669],{},[21,2667,2668],{},"The validation part, and early stopping."," Every run sets some rows aside, never used to fit the\ntrees. They are used to choose how many trees to keep (early stopping), to compute every metric\nthat says «on rows the model did not learn», and to run the diagnostics. How they are chosen:",[1626,2671,2672,2686],{},[649,2673,2674,2677,2678,2681,2682,2685],{},[21,2675,2676],{},"random"," (the default): a random share of the rows; a classification keeps each class's share\nin both parts (",[283,2679,2680],{},"stratify","). With ",[283,2683,2684],{},"split_by",", rows with one value of that column (a customer's\nrows) all fall on the same side;",[649,2687,2688,2690,2691,2694],{},[21,2689,1618],{},": with ",[283,2692,2693],{},"order_by",", the last rows in time are the validation part, and no instant falls on\nboth sides. Choose it when the goal is to predict later rows: a random split lets the model peek\nat the future.",[2696,2697,2698],"blockquote",{},[17,2699,2700,2703],{},[21,2701,2702],{},"The validation numbers are slightly optimistic."," The same part chooses the number of trees, so\nthe model has been tuned a little to it. Read them as «about this good», not as a promise; the\nreport says so in a note. A third part kept for testing only is not in this version.",[17,2705,2706],{},"A run fails with a sentence when the training part has fewer than 20 rows or the validation part\nfewer than 10, when a binary outcome has a class missing from one part, or when a multiclass class\nis missing from the training part.",[17,2708,2709,2712],{},[21,2710,2711],{},"Importance, gain and SHAP."," Two answers to «which predictors does the model use»:",[1626,2714,2715,2721],{},[649,2716,2717,2720],{},[21,2718,2719],{},"Gain",": how much the splits on a predictor improved the fit, summed over the trees. It is\ncheap and comes from the trees themselves.",[649,2722,2723,2726,2727,2730],{},[21,2724,2725],{},"SHAP",": for each row, how much each predictor pushed the prediction up or down from the\naverage. The report shows the mean of its absolute value, in the model's own scale (the\noutcome's units, or log-odds for a classification), and the ranking follows it. It is computed\non a ",[21,2728,2729],{},"sample"," of at most 5,000 rows, fewer for a very large model, drawn with the seed: the\nreport says «SHAP on 5,000 of 812,340 rows».",[17,2732,1703,2733,2735,2736,2739],{},[21,2734,31],{}," draws two bar charts (the first 20 predictors, the rest summed), and for a\nregression or a binary outcome the ",[21,2737,2738],{},"beeswarm",": one line per predictor, one point per sampled row.\nA point to the right of 0 raised the prediction, to the left lowered it; its colour is the\npredictor's value, from low (blue) to high (red), grey for a category or a missing value. A\npredictor whose red points sit on the right pushes the prediction up as it grows. A multiclass\nmodel shows the bars by class instead. Then the learning curves (training against validation, with\nthe best round marked) and, by task, observed against predicted, residuals, ROC, calibration and\nthe confusion matrix.",[2696,2741,2742],{},[17,2743,2744,2747],{},[21,2745,2746],{},"Importance is not cause."," It says what the model uses, not what changes the outcome. Two\ncorrelated predictors share it unpredictably.",[17,2749,2750,2753,2754,2757,2758,2761,2762,231,2765,2768],{},[21,2751,2752],{},"Diagnostics, not tests."," Where the regressions have tests of assumptions, these models have\n",[21,2755,2756],{},"diagnostics",": checks read against rules of thumb. They have ",[21,2759,2760],{},"no p-value and no level of\nsignificance",", and the report says so under the table. A ",[21,2763,2764],{},"doubtful",[21,2766,2767],{},"failed"," verdict says\nwhere to look, not that the model is wrong; each comes with advice. They look at:",[153,2770,2771,2781],{},[156,2772,2773],{"role":158},[160,2774,2775,2778],{"role":162},[164,2776,2777],{"role":166},"Diagnostic",[164,2779,2780],{"role":166},"What it looks at",[170,2782,2783,2793,2803,2816,2825,2835,2848,2858,2868],{"role":158},[160,2784,2785,2790],{"role":162},[175,2786,2787],{"role":177,"data-label":2777,"data-place":179},[283,2788,2789],{},"validation_size",[175,2791,2792],{"role":177,"data-label":2780,"data-place":183},"Whether the validation part has enough rows (the rarest class, for a classification) for its numbers to mean something",[160,2794,2795,2800],{"role":162},[175,2796,2797],{"role":177,"data-label":2777,"data-place":179},[283,2798,2799],{},"beats_baseline",[175,2801,2802],{"role":177,"data-label":2780,"data-place":183},"Whether the model predicts the validation part better than the plain average (or the class shares)",[160,2804,2805,2810],{"role":162},[175,2806,2807],{"role":177,"data-label":2777,"data-place":179},[283,2808,2809],{},"overfitting",[175,2811,2812,2813,2815],{"role":177,"data-label":2780,"data-place":183},"Which share of the validation gain over the baseline the trees after the best one give back. With early stopping on the loss the tree kept is the best by construction: the check is then ",[623,2814,1766],{},", and its value is the validation loss over the training loss, for information",[160,2817,2818,2822],{"role":162},[175,2819,2820],{"role":177,"data-label":2777,"data-place":179},[283,2821,2524],{},[175,2823,2824],{"role":177,"data-label":2780,"data-place":183},"Whether early stopping stopped by itself, or the trees ran out, the time ran out or very few were kept",[160,2826,2827,2832],{"role":162},[175,2828,2829],{"role":177,"data-label":2777,"data-place":179},[283,2830,2831],{},"class_imbalance",[175,2833,2834],{"role":177,"data-label":2780,"data-place":183},"How uneven the classes are (classification)",[160,2836,2837,2845],{"role":162},[175,2838,2839,303,2842],{"role":177,"data-label":2777,"data-place":179},[283,2840,2841],{},"calibration",[283,2843,2844],{},"calibration_slope",[175,2846,2847],{"role":177,"data-label":2780,"data-place":183},"Whether a binary model's probabilities match the rates observed, and whether they are too extreme or too timid",[160,2849,2850,2855],{"role":162},[175,2851,2852],{"role":177,"data-label":2777,"data-place":179},[283,2853,2854],{},"importance_stability",[175,2856,2857],{"role":177,"data-label":2780,"data-place":183},"Whether the predictors weigh the same (mean |SHAP|) on the validation rows as on the training rows: a shift between the parts, such as later rows in a split in time, shows here. It does not say that another sample would rank them the same: on pure noise it is ok too",[160,2859,2860,2865],{"role":162},[175,2861,2862],{"role":177,"data-label":2777,"data-place":179},[283,2863,2864],{},"zero_importance",[175,2866,2867],{"role":177,"data-label":2780,"data-place":183},"The predictors no split uses",[160,2869,2870,2875],{"role":162},[175,2871,2872],{"role":177,"data-label":2777,"data-place":179},[283,2873,2874],{},"leakage",[175,2876,2877],{"role":177,"data-label":2780,"data-place":183},"Whether one predictor explains nearly everything, or the fit is nearly perfect: a sign that a column was computed from the outcome, or recorded after it",[17,2879,2880,2881,2884,2885,2888,2889,2891,2892,2895,2896,621,2898,2900],{},"Each row of the ",[283,2882,2883],{},"assumption"," section has its verdict, its advice, the number looked at in ",[283,2886,2887],{},"value","\nand the limit it was read against in ",[283,2890,2369],{},". The rules of thumb are Tabularia's choice, written\nin the report beside the number. Read an ",[21,2893,2894],{},"ok"," as «nothing here», and a ",[21,2897,2767],{},[283,2899,2874],{}," first:\na model that is too good is usually a column that should not be there.",[17,2902,2903,2906,2907,2910,2911,2914,2915,2917],{},[21,2904,2905],{},"Output."," The ten columns, with two sections of their own: ",[283,2908,2909],{},"importance"," (gain, its share, the\nmean absolute SHAP, its share and rank, the same on the training and validation rows, the share of\nmissing values; per class for multiclass) and ",[283,2912,2913],{},"class"," (multiclass: support, precision, recall, F1\nand AUC per class). The ",[283,2916,1635],{}," section holds the sizes of the two parts, the trees kept, the\nbest round, whether it stopped early or by time, the threads, and the metrics of the task for the\ntraining part, the validation part and the baseline.",[17,2919,2920,2923,2924,2927,2928,2933,2934,2939,2940,2943,2944,2947,2948,2951,2952,2955,2956,2959,2960,2963,2964,2966],{},[21,2921,2922],{},"The saved model, and Predict."," With an MLflow block, the run writes, besides the card\n(",[283,2925,2926],{},"model\u002Fmodel.json","), the model itself as a file of its own: ",[21,2929,2930],{},[283,2931,2932],{},"model\u002Fxgboost.json"," (XGBoost's\nJSON format) or ",[21,2935,2936],{},[283,2937,2938],{},"model\u002Fcatboost.cbm"," (CatBoost's binary format). Both are model data the library\nparses; ",[21,2941,2942],{},"no pickle, joblib or any format that runs code is ever written or read."," Its size and\nsha256 are in the card, the card's sha256 is the version's tag ",[283,2945,2946],{},"tabularia.card_sha256",", and the\nversion carries ",[283,2949,2950],{},"tabularia.variant"," (the task) and ",[283,2953,2954],{},"tabularia.model_file_sha256",". The model file\nmay be 64 MiB at most, and a deep tree is large (XGBoost's JSON takes about 8 KB a tree at depth 6\nand 260 KB at depth 12; a multiclass round grows a tree per class). So the boosting ",[21,2957,2958],{},"stops before\nthe file would pass the limit",": XGBoost measures its file as it grows, CatBoost caps its trees\nahead (each adds 2^depth × (classes + 1) numbers). The trees kept are the best so far, the note\n",[283,2961,2962],{},"model_size"," says so and ",[283,2965,2524],{}," is doubtful. A file that still came out larger gets a\nnote, the fit goes on with its results and report, and the model is not logged.",[17,2968,2969,2971,2972,2975,2976,2979,2980,2982,2983,2986,2987,99,2990,329],{},[21,2970,58],{}," applies such a version like the others (see ",[68,2973,58],{"href":2974},"#predict","), with one more check:\nthe gateway streams the file from MLflow to the scripts bucket and compares its ",[21,2977,2978],{},"fingerprint"," with\nthe card's; if it differs, the file is not applied. The Job checks it again before reading. Rows\nwith a missing value, or a category the model never saw, get a prediction through the model's\nmissing-value path (the run page counts them), where a regression leaves them empty. It adds\n",[283,2981,1726],{}," (a regression's value, a binary model's probability, a multiclass model's likeliest\nclass), ",[283,2984,2985],{},"prediction_class"," (binary, at the node's threshold or the card's), and for multiclass\n",[283,2988,2989],{},"prediction_probability",[283,2991,2992],{},"prediction_prob_\u003Cclass>",[17,2994,2995],{},[21,2996,1850],{},[153,2998,2999,3009],{},[156,3000,3001],{"role":158},[160,3002,3003,3006],{"role":162},[164,3004,3005],{"role":166},"Limit",[164,3007,3008],{"role":166},"Value",[170,3010,3011,3019,3027,3035,3042,3050,3058,3066,3076],{"role":158},[160,3012,3013,3016],{"role":162},[175,3014,3015],{"role":177,"data-label":3005,"data-place":179},"Input rows",[175,3017,3018],{"role":177,"data-label":3008,"data-place":183},"1,000,000, unless an administrator changed it",[160,3020,3021,3024],{"role":162},[175,3022,3023],{"role":177,"data-label":3005,"data-place":179},"Cells (rows × predictors)",[175,3025,3026],{"role":177,"data-label":3008,"data-place":183},"50 million: «1,000,000 rows × 120 predictors make 120 million values; this group allows 50 million: fewer predictors, or sample before the node»",[160,3028,3029,3032],{"role":162},[175,3030,3031],{"role":177,"data-label":3005,"data-place":179},"Predictors, classes",[175,3033,3034],{"role":177,"data-label":3008,"data-place":183},"200; 20",[160,3036,3037,3040],{"role":162},[175,3038,3039],{"role":177,"data-label":3005,"data-place":179},"Levels of a categorical predictor",[175,3041,2538],{"role":177,"data-label":3008,"data-place":183},[160,3043,3044,3047],{"role":162},[175,3045,3046],{"role":177,"data-label":3005,"data-place":179},"Trees",[175,3048,3049],{"role":177,"data-label":3008,"data-place":183},"5,000 at most",[160,3051,3052,3055],{"role":162},[175,3053,3054],{"role":177,"data-label":3005,"data-place":179},"SHAP sample",[175,3056,3057],{"role":177,"data-label":3008,"data-place":183},"5,000 rows at most",[160,3059,3060,3063],{"role":162},[175,3061,3062],{"role":177,"data-label":3005,"data-place":179},"Points in a chart",[175,3064,3065],{"role":177,"data-label":3008,"data-place":183},"2,000 (the beeswarm splits them among its predictors)",[160,3067,3068,3071],{"role":162},[175,3069,3070],{"role":177,"data-label":3005,"data-place":179},"Model file",[175,3072,3073,3074,286],{"role":177,"data-label":3008,"data-place":183},"64 MiB: the boosting stops before it (the note ",[283,3075,2962],{},[160,3077,3078,3081],{"role":162},[175,3079,3080],{"role":177,"data-label":3005,"data-place":179},"Time",[175,3082,3083,3084,3087,3088,3090],{"role":177,"data-label":3008,"data-place":183},"The group's longest run (60 minutes) and the node's timeout. Boosting stops at 60 % of the timeout so that SHAP and the files still fit: the note ",[283,3085,3086],{},"time_budget"," says so, and ",[283,3089,2524],{}," is doubtful",[17,3092,3093],{},"SHAP is the long part: it can take several times as long as the training itself.",[17,3095,3096,3098,3099,3101,3102,739,3104,1915,3106,303,3108,1679,3110,3112,3113,3115,3116,3118,3119,3121,3122,99,3124,3126],{},[623,3097,1021],{}," from ",[283,3100,725],{}," (after a ",[21,3103,738],{},[623,3105,742],{},[283,3107,728],{},[283,3109,731],{},[283,3111,734],{},"), an ",[21,3114,2261],{}," with the task ",[283,3117,38],{},", the outcome ",[283,3120,728],{}," and the\npredictors ",[283,3123,731],{},[283,3125,734],{},". Read the first page's diagnostics, then the\nbeeswarm: whether a higher price pushes the quantity down.",[501,3128,3130],{"id":3129},"customer-lifetime-value-r","Customer lifetime value (R)",[17,3132,808,3133,329],{},[283,3134,3135],{},"clv",[17,3137,3138,3139,303,3142,3145,3146,1806,3149,3152,3153,3156,3157,3160,3161,3165],{},"For a shop, a web store or a donor, a customer who leaves does not say so: there is no churn column.\nThe «buy till you die» models estimate, from three numbers per customer, ",[21,3140,3141],{},"how many purchases to expect",[21,3143,3144],{},"the\nprobability that the customer is still active"," (P(alive)), the ",[21,3147,3148],{},"expected spend",[21,3150,3151],{},"discounted value"," over a\nhorizon, the ",[21,3154,3155],{},"customer lifetime value (CLV)",". They fit a population of customers who buy at\ndifferent rates and may leave at any moment, without any other column about the customer.\nThey are for ",[21,3158,3159],{},"non-contractual"," customers; where a contract ends (a subscription) there is a\ndate, and ",[68,3162,3164],{"href":3163},"#parametric-survival","Kaplan–Meier or parametric survival"," are the tools.",[17,3167,3168,3169,3172,3173,3176,3177,3183],{},"The group ",[21,3170,3171],{},"Customer lifetime"," has two nodes. ",[21,3174,3175],{},"Customer lifetime value"," (this section) is for\ncustomers who may buy at any moment, and has the purchase model inside; ",[21,3178,3179],{},[68,3180,3182],{"href":3181},"#bgbb-r","BG\u002FBB"," is for\npurchases at fixed occasions (a yearly campaign, a monthly renewal). In both, the spend model\n(Gamma–Gamma) and the CLV are part of the node. The image of this group installs the GNU\nScientific Library, and the build records its version: the group's card in Administration says «GSL 2.7.1»,\nwith the package's whole version beside it. An image built before that record shows no version.",[3185,3186,3188],"h4",{"id":3187},"the-input-one-row-per-customer","The input: one row per customer",[17,3190,3191,3192,3195,3196,88],{},"The node takes ",[21,3193,3194],{},"no transactions",": its input is one row per customer, which you build first with\nthe nodes of Tabularia (",[68,3197,71],{"href":3198},"#building-the-summary-per-customer",[153,3200,3201,3210],{},[156,3202,3203],{"role":158},[160,3204,3205,3207],{"role":162},[164,3206,1270],{"role":166},[164,3208,3209],{"role":166},"Meaning, and what is refused",[170,3211,3212,3222,3233,3244,3255,3269,3283],{"role":158},[160,3213,3214,3219],{"role":162},[175,3215,3216],{"role":177,"data-label":1270,"data-place":179},[21,3217,3218],{},"Customer column",[175,3220,3221],{"role":177,"data-label":3209,"data-place":183},"The customer's id. A repeated id is refused («the customer 4812 appears on 3 rows: one row per customer; group the transactions by customer first»); an empty one, or one of spaces only, leaves the row out",[160,3223,3224,3230],{"role":162},[175,3225,3226,3229],{"role":177,"data-label":1270,"data-place":179},[21,3227,3228],{},"Repeat purchases"," (x)",[175,3231,3232],{"role":177,"data-label":3209,"data-place":183},"The purchases after the first one, in the calibration period: a whole number, 0 or more",[160,3234,3235,3241],{"role":162},[175,3236,3237,3240],{"role":177,"data-label":1270,"data-place":179},[21,3238,3239],{},"Time of the last purchase"," (t_x)",[175,3242,3243],{"role":177,"data-label":3209,"data-place":183},"The time from the first purchase to the last one, in the unit below. 0 for a customer with no repeat purchase, and above 0 for every other (purchases of the same day must be one purchase); not more than the age (one above it by a rounding error is set to the age, with a note)",[160,3245,3246,3252],{"role":162},[175,3247,3248,3251],{"role":177,"data-label":1270,"data-place":179},[21,3249,3250],{},"Age of the customer"," (T)",[175,3253,3254],{"role":177,"data-label":3209,"data-place":183},"The time from the first purchase to the end of the calibration period: more than 0",[160,3256,3257,3262],{"role":162},[175,3258,3259],{"role":177,"data-label":1270,"data-place":179},[21,3260,3261],{},"Unit of time",[175,3263,3264,3265,3268],{"role":177,"data-label":3209,"data-place":183},"Days, weeks, months, quarters or years: the unit of the last two columns, the horizon, the holdout and the discounting. ",[21,3266,3267],{},"Required","; a note asks whether the unit is right when the largest age passes 30 years in it",[160,3270,3271,3276],{"role":162},[175,3272,3273],{"role":177,"data-label":1270,"data-place":179},[21,3274,3275],{},"Average spend",[175,3277,3278,3279,3282],{"role":177,"data-label":3209,"data-place":183},"Optional. The ",[21,3280,3281],{},"average value of the repeat purchases"," (the first one left out, as the spend model assumes), above 0 for a customer who bought again; empty leaves that customer out of the spend fit only. With it the node gives the expected spend and the CLV; without it, only the purchases and P(alive). Returns and refunds: leave those customers out, or net them before averaging",[160,3284,3285,3293],{"role":162},[175,3286,3287,303,3290],{"role":177,"data-label":1270,"data-place":179},[21,3288,3289],{},"Purchases in the holdout",[21,3291,3292],{},"Length of the holdout",[175,3294,3295],{"role":177,"data-label":3209,"data-place":183},"Optional, both or neither: the purchases each customer made in the period that follows the calibration end, and its length in the unit (the same for every customer). They give the holdout check; an empty cell leaves the customer out of it",[17,3297,3298,3299,303,3302,231,3305,3308,3309,3312],{},"A row with an empty ",[283,3300,3301],{},"frequency",[283,3303,3304],{},"recency",[283,3306,3307],{},"age"," is left out; an infinite value stops the node\nand names the column. Every refusal names one customer and says how many break the same rule. At least ",[21,3310,3311],{},"20\ncustomers, 5 repeat customers"," and, with a spend, 5 of those with a spend are needed.",[153,3314,3315,3325],{},[156,3316,3317],{"role":158},[160,3318,3319,3321,3323],{"role":162},[164,3320,1270],{"role":166},[164,3322,567],{"role":166},[164,3324,366],{"role":166},[170,3326,3327,3349,3362,3375,3388,3404,3417,3428],{"role":158},[160,3328,3329,3334,3336],{"role":162},[175,3330,3331],{"role":177,"data-label":1270,"data-place":179},[21,3332,3333],{},"Purchase model",[175,3335,1363],{"role":177,"data-label":567,"data-place":183},[175,3337,3338,3340,3341,3344,3345,3348],{"role":177,"data-label":366,"data-place":1289},[21,3339,1363],{}," fits Pareto\u002FNBD, BG\u002FNBD and MBG\u002FNBD and keeps the one with the ",[21,3342,3343],{},"highest log-likelihood"," among those whose convergence check passes (the three have four parameters, so AIC and BIC rank them the same way). It checks them from the highest log-likelihood down and stops at the first that passes: the others are «not checked» in the comparison and have no ",[283,3346,3347],{},"converged"," row. When none passes, it keeps the highest whose log-likelihood is not numerical noise; a model whose fit fails is left out, with a note. Or one of the three. The holdout is never used to choose, so it stays an honest check",[160,3350,3351,3356,3359],{"role":162},[175,3352,3353],{"role":177,"data-label":1270,"data-place":179},[21,3354,3355],{},"Compare with the other models",[175,3357,3358],{"role":177,"data-label":567,"data-place":183},"off",[175,3360,3361],{"role":177,"data-label":366,"data-place":1289},"With a purchase model chosen: fits the two others for the comparison table only",[160,3363,3364,3369,3372],{"role":162},[175,3365,3366],{"role":177,"data-label":1270,"data-place":179},[21,3367,3368],{},"Periods ahead",[175,3370,3371],{"role":177,"data-label":567,"data-place":183},"one year",[175,3373,3374],{"role":177,"data-label":366,"data-place":1289},"1 to 1,000, in the unit (365 days, 52 weeks, 12 months, 4 quarters, 1 year when empty)",[160,3376,3377,3382,3385],{"role":162},[175,3378,3379],{"role":177,"data-label":1270,"data-place":179},[21,3380,3381],{},"Yearly discount rate",[175,3383,3384],{"role":177,"data-label":567,"data-place":183},"0.10",[175,3386,3387],{"role":177,"data-label":366,"data-place":1289},"Only with a spend; 0 to 1, annual: the node derives the rate of one period",[160,3389,3390,3395,3397],{"role":162},[175,3391,3392],{"role":177,"data-label":1270,"data-place":179},[21,3393,3394],{},"Margin",[175,3396,1445],{"role":177,"data-label":567,"data-place":183},[175,3398,3399,3400,3403],{"role":177,"data-label":366,"data-place":1289},"Only with a spend; above 0 and up to 1. ",[21,3401,3402],{},"With 1 the CLV is of revenue",", and the report says so; set the margin to have a CLV of profit",[160,3405,3406,3410,3412],{"role":162},[175,3407,3408],{"role":177,"data-label":1270,"data-place":179},[21,3409,1425],{},[175,3411,1428],{"role":177,"data-label":567,"data-place":183},[175,3413,3414,3415,286],{"role":177,"data-label":366,"data-place":1289},"The intervals and the verdicts (",[68,3416,1435],{"href":1434},[160,3418,3419,3423,3425],{"role":162},[175,3420,3421],{"role":177,"data-label":1270,"data-place":179},[21,3422,1442],{},[175,3424,1445],{"role":177,"data-label":567,"data-place":183},[175,3426,3427],{"role":177,"data-label":366,"data-place":1289},"The samples drawn for the charts",[160,3429,3430,3434,3438],{"role":162},[175,3431,3432],{"role":177,"data-label":1270,"data-place":179},[21,3433,1455],{},[175,3435,3436],{"role":177,"data-label":567,"data-place":183},[21,3437,1668],{},[175,3439,3440,3441,3444],{"role":177,"data-label":366,"data-place":1289},"Unlike the other models, the default is the per-customer scores; ",[21,3442,3443],{},"the results table"," keeps only the tables",[17,3446,3447,3450,3451,3454,3455,3458,3459,3462,3463,3465,3466,3469,3470,88],{},[21,3448,3449],{},"The models, in plain words."," Customers buy at their own rate (a gamma distribution across\ncustomers). ",[21,3452,3453],{},"Pareto\u002FNBD"," lets a customer leave at any moment, at a rate that also varies;\n",[21,3456,3457],{},"BG\u002FNBD"," lets a customer leave right after a purchase with a probability that varies (a beta\ndistribution), and ",[21,3460,3461],{},"MBG\u002FNBD"," also after the first. They differ little when the data are good, and ",[623,3464,1363],{},"\nlets the likelihood choose. ",[21,3467,3468],{},"Gamma–Gamma"," models the average value of a repeat customer's\npurchases, assuming it does not depend on how often the customer buys (a check tests that). The\nparameters are estimated by maximum likelihood on one row per distinct summary, so large\ntables are cheap; Pareto\u002FNBD, BG\u002FNBD and Gamma–Gamma use the compiled likelihoods of the CLVTools package,\nMBG\u002FNBD and BG\u002FBB are written in the runner and checked against independent implementations\n(",[68,3471,3473],{"href":3472},"#where-tabularia-and-r-differ","Where Tabularia and R differ",[17,3475,3476,3479],{},[21,3477,3478],{},"The CLV."," For each customer, the expected purchases of each period of the horizon, discounted at\nthe end of the period, times the expected spend, times the margin: the sum over the horizon. It is\na finite horizon you choose, not an infinite one: the far periods rest on the form of the model,\nand a measure says when the horizon is more than twice the longest age the model learned from.",[17,3481,3482],{},[21,3483,1624],{},[1626,3485,3486,3516],{},[649,3487,3488,3490,3491,303,3494,3497,3498,3501,3502,303,3505,99,3508,3511,3512,3515],{},[21,3489,1668],{}," (default): the input's columns with ",[283,3492,3493],{},"pred_p_alive",[283,3495,3496],{},"pred_transactions"," (the\nexpected purchases over the horizon), with a holdout ",[283,3499,3500],{},"pred_holdout_transactions"," (without one the column is not\nadded, and an input column of that name is no clash), and with a\nspend ",[283,3503,3504],{},"pred_spend",[283,3506,3507],{},"pred_discounted_transactions",[283,3509,3510],{},"pred_clv",". P(alive) is a ",[21,3513,3514],{},"probability\nfrom the model",", not an observed churn: a customer with a low value has not been seen to leave. A\ncolumn of the input with one of those names is refused.",[649,3517,3518,3520,3521,3523,3524,3526,3527,3529,3530,231,3532,3535,3536,3539],{},[21,3519,1458],{},": the parameters with their intervals (",[283,3522,1643],{},", with the purchases' and the\nspend's apart), the ",[283,3525,1635],{}," section (customers, repeat customers, log-likelihood, AIC, BIC, the mean\npurchase rate and dropout, the expected purchases, the total CLV, the holdout's numbers), the\n",[283,3528,1659],{}," section with ",[623,3531,1363],{},[623,3533,3534],{},"compare",", the checks, the histograms, the P(alive) map and\ncurves, and the ",[21,3537,3538],{},"top 20 customers"," by CLV (by expected purchases without a spend).",[17,3541,3542,3544,3545,3548,3549,3551,3552,3555,3556,3558,3559,3561,3562,3564,3565,3567,3568,3570,3571,3574,3575,3577,3578,3581,3582,2623,3585,1802,3588,3591,3592,3594,3595,3597,3598,3601,3602,902,3605,3608],{},[21,3543,1746],{}," A verdict comes from two tests with a p-value, read against the significance level:\n",[21,3546,3547],{},"frequency fit"," (a χ² of the observed against the expected number of customers by number of\nrepeat purchases, adjacent classes pooled from the top until every one expects at least 5, the last open\n(«12+»), the condition of the χ² test known as Cochran's rule; the chart shows the pooled classes, «5–7»; its\ndegrees of freedom are the classes less 1 less the parameters, and with none left the check is ",[21,3550,1766],{},";\nthe share gap is beside it as a number) and, with a spend, ",[21,3553,3554],{},"spend independence"," (the slope of the average spend\non the frequency, with HC3 standard errors; Pearson's r is its value. It is ",[21,3557,1766],{}," when the frequencies\nor the spends do not vary, or when one repeat customer alone holds a frequency and the others share one: that\ncustomer's leverage is 1, and the slope is its alone). Two facts: ",[21,3560,1779],{}," (the optimizer\nconverged, its log-likelihood is a real one and not the noise of a computation that lost its digits, and\nthe Hessian is positive definite; ",[21,3563,2764],{}," when an estimate sits at an edge, where the likelihood keeps\ngrowing towards the limit, so that the estimate is that limit; ",[21,3566,2767],{}," otherwise; a fit that ends in numerical noise is never chosen by ",[623,3569,1363],{},", one that only fails the check\nis chosen only when no other passes it) and ",[21,3572,3573],{},"spend tail"," (the spend model's q must be above 2 for its variance to be\nfinite: ",[21,3576,2764],{}," at 2 or below; at 1 or below the average spend does not exist and the node refuses: ",[623,3579,3580],{},"look for extreme amounts, or leave out the spend column",").\n",[21,3583,3584],{},"Measures with no verdict",[21,3586,3587],{},"customers and repeat customers",[21,3589,3590],{},"holdout"," (the expected against the\nobserved purchases: the relative error of the total, and by frequency class in a chart; ",[21,3593,1766],{}," when no\npurchase was observed in it, since the error has no denominator; without a holdout the page says how to add one), the ",[21,3596,2185],{}," against the longest age, and the ",[21,3599,3600],{},"estimates at an edge"," (one row for each\nparameter where one more step towards 0 or towards infinity does not lower the likelihood, with what it means:\n",[623,3603,3604],{},"almost nobody leaves",[623,3606,3607],{},"the customers look alike","; no row when there is none).",[17,3610,3611,3613],{},[21,3612,1832],{}," (four pages): the first has the cards (customers and repeat customers, the purchase model and\nits log-likelihood, expected purchases, the total CLV), the formula with the unit, horizon, discount and\nmargin («CLV of revenue»), the checks and measures and the parameters; then the comparison of the\npurchase models, the fit (the repeat purchases observed and expected, the holdout by frequency class), the\nP(alive) map and curves, the spend against its model and against the frequency, the distribution\nof the CLV, the concentration curve («the top 10 % of the customers hold…») and the top customers, and the\nnotes.",[17,3615,3616,3618,3619,3621,3622,3625,3626,99,3629,3632],{},[21,3617,58],{}," applies a registered version to the summaries of other customers and gives\n",[283,3620,1726],{}," (the expected purchases over the horizon), ",[283,3623,3624],{},"prediction_p_alive"," and, with a spend,\n",[283,3627,3628],{},"prediction_spend",[283,3630,3631],{},"prediction_clv","; its option is the horizon, in periods of the fit's unit.\nCustomers must come with a history (a frequency, recency and age of their own); a row that breaks\na rule of the summary gets empty predictions and a warning that counts them. Predicting the rows of\nthe fit gives the fit's own numbers.",[17,3634,3635,3637,3638,3641,3642,3644,3645,3648,3649,3651,3652,3654,3655,231,3658,772,3660,3663,3664,3667],{},[21,3636,267],{}," records the parameters, ",[283,3639,3640],{},"log_lik",", the CLV total, the holdout's error, the number of\nevery candidate, and the statistic, p-value and value of each check; the model the fit used\n(the one ",[623,3643,1363],{}," chose, or the one given) is the parameter ",[283,3646,3647],{},"purchase_model_chosen",", the horizon used the parameter\n",[283,3650,2185],{}," when the node left it empty, and the registered version has the tags ",[283,3653,2950],{},"\n(",[283,3656,3657],{},"purchases",[283,3659,2887],{},[283,3661,3662],{},"tabularia.purchase_model",". No ",[283,3665,3666],{},"native.rds"," is written for this\ngroup: the card holds every parameter.",[17,3669,3670,3672],{},[21,3671,1850],{}," At least 20 customers and 5 repeat customers; periods ahead 1,000 (above 520 steps the\nsum is made in coarser steps, with a note); the rows of the group (1,000,000), 2 GiB of memory.",[3185,3674,3676],{"id":3675},"building-the-summary-per-customer","Building the summary per customer",[17,3678,3679,3680,1943,3682,3684],{},"You need a table of purchases, one row per purchase, with the customer, the date and, for the spend,\nthe amount. The nodes below exist in every flow; the expressions are written in the engine's\ndialect (here Polars; DuckDB spells a difference of dates ",[283,3681,1942],{},[283,3683,1946],{},"). Purchases of the same day count as one purchase.",[646,3686,3687,3708,3726,3744,3779,3873],{},[649,3688,3689,621,3692,3695,3696,3699,3700,621,3702,621,3704,3707],{},[21,3690,3691],{},"Computed column",[283,3693,3694],{},"day"," = ",[283,3697,3698],{},"CAST(ts AS DATE)"," (skip it when the column is already a date), and a\n",[21,3701,1886],{},[283,3703,3694],{},[623,3705,3706],{},"less than or equal to"," the calibration end.",[649,3709,3710,621,3712,303,3715,1632,3717,1915,3720,1918,3723,329],{},[21,3711,1908],{},[283,3713,3714],{},"customer",[283,3716,3694],{},[623,3718,3719],{},"sum",[283,3721,3722],{},"amount",[283,3724,3725],{},"day_amount",[649,3727,3728,3730,3731,3695,3734,3737,3738,3695,3741,329],{},[21,3729,1938],{},", in this order: ",[283,3732,3733],{},"first_day",[283,3735,3736],{},"MIN(day) OVER (PARTITION BY customer)",", then\n",[283,3739,3740],{},"repeat_amount",[283,3742,3743],{},"CASE WHEN day = first_day THEN 0 ELSE day_amount END",[649,3745,3746,621,3748,1632,3750,1915,3753,1918,3755,1802,3757,1915,3760,1918,3762,3764,3765,1915,3767,1918,3769,1802,3772,1915,3774,1918,3776,329],{},[21,3747,1908],{},[283,3749,3714],{},[623,3751,3752],{},"count",[283,3754,3694],{},[283,3756,1980],{},[623,3758,3759],{},"minimum",[283,3761,3694],{},[283,3763,3733],{},",\nthe ",[623,3766,1914],{},[283,3768,3694],{},[283,3770,3771],{},"last_day",[623,3773,3719],{},[283,3775,3740],{},[283,3777,3778],{},"repeat_total",[649,3780,3781,3783,3784,3787,3788,3845,1572,3848,621,3850,621,3852,3854,3855,3857,3858,3861,3862,1679,3864,3861,3867,2623,3869,3872],{},[21,3782,1938],{},", with a week as the unit and ",[283,3785,3786],{},"2025-07-15"," as the calibration end:",[153,3789,3790,3798],{},[156,3791,3792],{"role":158},[160,3793,3794,3796],{"role":162},[164,3795,1956],{"role":166},[164,3797,1959],{"role":166},[170,3799,3800,3811,3822,3833],{"role":158},[160,3801,3802,3806],{"role":162},[175,3803,3804],{"role":177,"data-label":1956,"data-place":179},[283,3805,3301],{},[175,3807,3808],{"role":177,"data-label":1959,"data-place":183},[283,3809,3810],{},"days - 1",[160,3812,3813,3817],{"role":162},[175,3814,3815],{"role":177,"data-label":1956,"data-place":179},[283,3816,3304],{},[175,3818,3819],{"role":177,"data-label":1959,"data-place":183},[283,3820,3821],{},"(CAST(last_day AS INTEGER) - CAST(first_day AS INTEGER)) \u002F 7.0",[160,3823,3824,3828],{"role":162},[175,3825,3826],{"role":177,"data-label":1956,"data-place":179},[283,3827,3307],{},[175,3829,3830],{"role":177,"data-label":1959,"data-place":183},[283,3831,3832],{},"(CAST(DATE '2025-07-15' AS INTEGER) - CAST(first_day AS INTEGER)) \u002F 7.0",[160,3834,3835,3840],{"role":162},[175,3836,3837],{"role":177,"data-label":1956,"data-place":179},[283,3838,3839],{},"avg_spend",[175,3841,3842],{"role":177,"data-label":1959,"data-place":183},[283,3843,3844],{},"CASE WHEN days > 1 THEN repeat_total \u002F (days - 1) END",[3846,3847],"br",{},[21,3849,1886],{},[283,3851,3307],{},[623,3853,1995],{}," 0 leaves out customers whose first purchase is the calibration end.",[3846,3856],{},"On DuckDB the two date expressions are ",[283,3859,3860],{},"date_diff('day', first_day, last_day) \u002F 7.0"," for ",[283,3863,3304],{},[283,3865,3866],{},"date_diff('day', first_day, DATE '2025-07-15') \u002F 7.0",[283,3868,3307],{},[283,3870,3871],{},"date_diff"," counts the days\nfrom its second argument to its third.",[649,3874,3875,3876,3878,3879,3881,3882,621,3884,1911,3886,1915,3888,3890,3891,3894,3895,3897,3898,3900,3901,3903,3904,3907,3908,3910],{},"For a ",[21,3877,3590],{},", a second chain from the same purchases: a ",[21,3880,1886],{}," on the days after the\ncalibration end, a ",[21,3883,1908],{},[283,3885,3714],{},[623,3887,2233],{},[283,3889,3694],{}," as\n",[283,3892,3893],{},"holdout_purchases",", then a ",[21,3896,1925],{},", type ",[623,3899,1730],{},", on ",[283,3902,3714],{}," into the summary and a ",[21,3905,3906],{},"Fill nulls","\nof ",[283,3909,3893],{}," with 0.",[17,3912,3913,3914,3916,3917,3919,3920,3922,3923,3925,3926,3928,3929,329],{},"A customer whose first purchase is after the calibration end is not in the summary, as the models\nassume. The summary is what the node reads: Customer column ",[283,3915,3714],{},", Repeat purchases ",[283,3918,3301],{},",\nTime of the last purchase ",[283,3921,3304],{},", Age ",[283,3924,3307],{},", Average spend ",[283,3927,3839],{},", Unit of time ",[623,3930,3931],{},"Weeks",[17,3933,3934,3936,3937,3939,3940,3942],{},[623,3935,1021],{}," the customers of the pasta and bakery company in ",[21,3938,1859],{},", who buy\nwhen they like and leave without a word (their ",[283,3941,758],{}," is the CRM's guess, not a fact), with the\nspend, a holdout of the following year and the calibration ending on 2025-07-15.",[646,3944,3945,3981,4019,4049,4074],{},[649,3946,3947,3948,303,3950,621,3952,303,3954,672,3956,739,3958,1195,3960,621,3962,3965,3966,1905,3969,621,3971,3974,3975,1915,3977,1918,3979,329],{},"The amount of each order: drop ",[283,3949,725],{},[21,3951,738],{},[283,3953,728],{},[283,3955,731],{},[283,3957,734],{},[623,3959,742],{},[21,3961,3691],{},[283,3963,3964],{},"ricavo_netto"," =\n",[283,3967,3968],{},"quantita * prezzo_unitario * (1 - sconto_pct \u002F 100)",[21,3970,1908],{},[283,3972,3973],{},"ordine_id"," with the\n",[623,3976,3719],{},[283,3978,3964],{},[283,3980,3722],{},[649,3982,3983,3984,303,3986,621,3988,303,3990,303,3992,99,3994,303,3996,621,3998,4000,621,4002,303,4004,621,4006,739,4008,317,4010,4012,4013,4016,4017,329],{},"Drop ",[283,3985,746],{},[21,3987,1865],{},[283,3989,1868],{},[283,3991,749],{},[283,3993,752],{},[283,3995,758],{},[21,3997,1886],{},[283,3999,758],{},[623,4001,1901],{},[283,4003,1904],{},[21,4005,1877],{},[283,4007,1868],{},[283,4009,3973],{},[21,4011,1925],{}," step 1 into it, type ",[623,4014,4015],{},"inner",",\non ",[283,4018,3973],{},[649,4020,3983,4021,303,4023,621,4025,99,4027,303,4029,621,4031,739,4033,307,4035,621,4037,621,4039,4041,4042,4044,4045,3900,4047,329],{},[283,4022,775],{},[21,4024,1865],{},[283,4026,1868],{},[283,4028,787],{},[21,4030,1877],{},[283,4032,1868],{},[283,4034,752],{},[21,4036,1886],{},[283,4038,787],{},[623,4040,1891],{}," 2023-07-01 (the customers acquired inside the data's\nwindow, whose first order is in the data), and ",[21,4043,1925],{}," step 2 into it, type ",[623,4046,4015],{},[283,4048,752],{},[649,4050,4051,4052,4054,4055,4057,4058,4060,4061,621,4063,621,4065,4067,4068,4070,4071,4073],{},"The summary, from this table, as in the steps above with ",[283,4053,752],{}," as the customer,\n",[283,4056,749],{}," as the day and ",[283,4059,3722],{}," as the amount: a ",[21,4062,1886],{},[283,4064,749],{},[623,4066,3706],{},"\n2025-07-15, the ",[21,4069,1908],{}," by customer and day, the two computed columns, the second ",[21,4072,1908],{}," and\nthe four columns of step 5.",[649,4075,4076,4077,621,4079,621,4081,4083,4084,4086,1911,4088,1915,4090,1918,4092,1195,4094,281,4096,4098,4099,4101,4102,1915,4104,3910],{},"The holdout, from the table of step 3: a ",[21,4078,1886],{},[283,4080,749],{},[623,4082,1995],{}," 2025-07-15, a ",[21,4085,1908],{},[283,4087,752],{},[623,4089,2233],{},[283,4091,749],{},[283,4093,3893],{},[21,4095,1925],{},[623,4097,1730],{},", on\n",[283,4100,752],{},") into the summary and a ",[21,4103,3906],{},[283,4105,3893],{},[17,4107,4108,4109,3916,4111,4113,4114,3922,4116,3925,4118,3928,4120,4122,4123,4125,4126,4128,4129,4131,4132,4134,4135,4137,4138,4141,4142,4144,4145,4147,4148,4150,4151,4153,4154,4156,4157,4159,4160,621,4162,621,4164,4167],{},"The node: Customer column ",[283,4110,752],{},[283,4112,3301],{},", Time of the last purchase\n",[283,4115,3304],{},[283,4117,3307],{},[283,4119,3839],{},[623,4121,3931],{},", Purchases in the holdout\n",[283,4124,3893],{},", Length of the holdout 52.14 (the 365 days that follow the calibration end, in\nweeks), Periods ahead 52, Purchase model ",[623,4127,1363],{},", Output ",[623,4130,1465],{},". On the first page read the\nfrequency fit and the holdout: whether the model's expected purchases of the next year are near what\nthe customers did. Without ",[283,4133,3839],{}," the same flow gives the purchases and P(alive) alone. These\ndata were built to suit the models, so they are a good place to learn to read the report; the\nnumbers are those of your run. On the ",[283,4136,2017],{}," size this flow gives 1,282 customers and the\nPareto\u002FNBD; the frequency fit is ok (p 0.56) and the holdout's expected purchases are 1.8% below\nthe observed ones. The check to watch is ",[21,4139,4140],{},"Spend independent of frequency",": inside a channel a\ncustomer's average order does not move with how often it orders, which is Gamma–Gamma's\nassumption, but the channels differ both in the size of their orders and in their frequency\n(",[283,4143,2024],{}," order often and in bulk, ",[283,4146,2028],{}," in bulk and rarely, ",[283,4149,2039],{}," rarely and\nlittle), so over all the customers the two move together. With the calibration ending on\n2025-07-15 the correlation is +0.06 and the check stays just inside its limit (p 0.054, verdict\n",[623,4152,2894],{},"); on a summary that reads the whole window, as the sample database's README describes, it\nfails (p 0.010 on 2,054 customers). When the CLV matters, fit it per channel: keep ",[283,4155,755],{}," in\nstep 2's ",[21,4158,1865],{}," and add a ",[21,4161,1886],{},[283,4163,755],{},[623,4165,4166],{},"equal to"," one channel before the\nsummary, one node per channel.",[501,4169,4171],{"id":4170},"bgbb-r","BG\u002FBB (R)",[17,4173,808,4174,329],{},[283,4175,4176],{},"bg_bb",[17,4178,4179,4180,4183,4184,4187],{},"The same questions for customers who can buy only at ",[21,4181,4182],{},"fixed occasions",": a yearly campaign, a\nmonthly renewal, a weekly newsletter. Time is not continuous but counted in ",[21,4185,4186],{},"opportunities",": a\ncustomer who bought or not at each one, and who may leave after any. The node reads the same kind\nof row per customer, and gives the same outputs and the same Predict, the same checks and a report of\nthe same pages, with these differences:",[153,4189,4190,4198],{},[156,4191,4192],{"role":158},[160,4193,4194,4196],{"role":162},[164,4195,1270],{"role":166},[164,4197,366],{"role":166},[170,4199,4200,4210,4220,4230,4240,4250],{"role":158},[160,4201,4202,4207],{"role":162},[175,4203,4204],{"role":177,"data-label":1270,"data-place":179},[21,4205,4206],{},"Repeat transactions",[175,4208,4209],{"role":177,"data-label":366,"data-place":183},"The transactions after the first one, among the opportunities: a whole number, 0 or more, at most one per opportunity",[160,4211,4212,4217],{"role":162},[175,4213,4214],{"role":177,"data-label":1270,"data-place":179},[21,4215,4216],{},"Opportunity of the last transaction",[175,4218,4219],{"role":177,"data-label":366,"data-place":183},"1, 2, 3…: which opportunity had the last transaction, 0 for a customer with none; it is not less than the repeat transactions nor more than the opportunities",[160,4221,4222,4227],{"role":162},[175,4223,4224],{"role":177,"data-label":1270,"data-place":179},[21,4225,4226],{},"Opportunities",[175,4228,4229],{"role":177,"data-label":366,"data-place":183},"How many opportunities the customer has had after the first transaction, from 1 to 1,000",[160,4231,4232,4237],{"role":162},[175,4233,4234],{"role":177,"data-label":1270,"data-place":179},[21,4235,4236],{},"Length of an opportunity",[175,4238,4239],{"role":177,"data-label":366,"data-place":183},"Days, weeks, months, quarters or years: it discounts the CLV. Required",[160,4241,4242,4247],{"role":162},[175,4243,4244],{"role":177,"data-label":1270,"data-place":179},[21,4245,4246],{},"Opportunities ahead",[175,4248,4249],{"role":177,"data-label":366,"data-place":183},"The horizon, in opportunities: one year's worth when empty",[160,4251,4252,4257],{"role":162},[175,4253,4254],{"role":177,"data-label":1270,"data-place":179},[21,4255,4256],{},"Opportunities in the holdout",[175,4258,4259,4260,4262],{"role":177,"data-label":366,"data-place":183},"An integer from 1 to 1,000, with ",[21,4261,3289],{}," (0 up to that number)",[17,4264,4265],{},"There is no purchase model to choose and no comparison; the average spend, the discount rate, the\nmargin, the significance level and the output are as above. With the spend, the node fits\nGamma–Gamma and gives the CLV in the same way.",[17,4267,4268,4269,621,4271,3965,4274,4277,4278,621,4280,4282,4283,4286,4287,99,4289,1905,4291,4293,1911,4295,1915,4297,1918,4299,1802,4302,1918,4304,1806,4307,1918,4309,4312,4313,3695,4315,303,4318,3695,4320,99,4323,4325,4326,4328,4329,4332],{},"To build the summary from purchases by month: a ",[21,4270,3691],{},[283,4272,4273],{},"month",[283,4275,4276],{},"(EXTRACT(YEAR FROM day) - 2023) * 12 + EXTRACT(MONTH FROM day)"," (the months counted from a fixed one),\na ",[21,4279,1886],{},[283,4281,4273],{}," up to the calibration end's, ",[21,4284,4285],{},"Unique rows"," on ",[283,4288,3714],{},[283,4290,4273],{},[21,4292,1908],{},[283,4294,3714],{},[623,4296,3752],{},[283,4298,4273],{},[283,4300,4301],{},"months",[623,4303,3759],{},[283,4305,4306],{},"first_month",[623,4308,1914],{},[283,4310,4311],{},"last_month",".\nThen ",[283,4314,3301],{},[283,4316,4317],{},"months - 1",[283,4319,3304],{},[283,4321,4322],{},"last_month - first_month",[283,4324,4186],{}," = the\ncalibration end's month minus ",[283,4327,4306],{},", the first month itself not being an opportunity.\nSet the length of an opportunity to ",[623,4330,4331],{},"Months",". A customer who bought twice in one month counts once, as the\nmodel has one purchase or none at each opportunity.",[17,4334,4335,4337,4338,621,4340,621,4342,4344,4345,4347,4348,621,4350,303,4352,621,4354,4356,4357,4359,4360,4362],{},[623,4336,1021],{}," the same customers of the sample data, with a month as the opportunity: did the customer\norder in each month? Build the summary as above, from the table of step 3 of the previous example, with\nthe month expression of the page (July 2023 is 7, June 2025 is 30) and the calibration end in June 2025,\nthen a ",[21,4339,1886],{},[283,4341,4186],{},[623,4343,1995],{}," 0: a customer whose first month is the calibration end\nhas no opportunity after it, and the node refuses a summary that holds one. On the ",[283,4346,2017],{}," size 1,196\ncustomers are left, the convergence is ok and the frequency fit too (p 0.68).\nIn the node, ",[21,4349,4226],{},[283,4351,4186],{},[21,4353,4216],{},[283,4355,3304],{},",\nLength of an opportunity ",[623,4358,4331],{},", Opportunities ahead 12. These customers buy at a rhythm of their own\nin continuous time, so for them ",[623,4361,3175],{}," is the natural choice; BG\u002FBB is for data that\nreally come in occasions.",[501,4364,4366],{"id":4365},"decomposition-r","Decomposition (R)",[17,4368,808,4369,4372,4373,4376],{},[283,4370,4371],{},"decomposition",", in the group ",[21,4374,4375],{},"Time series"," beside ARIMA.",[17,4378,4379,4380,4382,4383,4386,4387,4390,4391,4394,4395,4398,4399,4408,4409,4412,4413,303,4415,99,4417,4419,4420,329],{},"A series of a business (orders per day, kilowatt-hours per hour, boxes per month) is the sum, or the\nproduct, of a slow movement, patterns that repeat and noise. ",[21,4381,65],{}," puts them apart: ",[21,4384,4385],{},"the\ntrend"," without the season (are orders growing once Christmas is out?), ",[21,4388,4389],{},"each seasonal pattern"," and its\nshape (which weekday is busiest), ",[21,4392,4393],{},"what is left"," (noise, or structure the decomposition missed) and\n",[21,4396,4397],{},"the series without its season"," to hand to the next step. Like the A\u002FB nodes it makes no model: ",[21,4400,4401,4402,4405,4406],{},"no\nmodel card, no ",[623,4403,4404],{},"Register the model as",", no ",[68,4407,58],{"href":2974},". A decomposition estimates nothing that\napplies to new rows, so for a forecast use ",[68,4410,2059],{"href":4411},"#arima",". The node asks the same three things as ARIMA,\n",[21,4414,2069],{},[21,4416,2073],{},[21,4418,2077],{}," (hourly, daily, weekly, monthly, quarterly,\nyearly, or whole numbers), and ",[21,4421,4422],{},"Method",[3185,4424,4426],{"id":4425},"the-four-methods","The four methods",[153,4428,4429,4441],{},[156,4430,4431],{"role":158},[160,4432,4433,4435,4438],{"role":162},[164,4434,4422],{"role":166},[164,4436,4437],{"role":166},"What it does",[164,4439,4440],{"role":166},"Use it when",[170,4442,4443,4474,4495,4518],{"role":158},[160,4444,4445,4451,4471],{"role":162},[175,4446,4447,4450],{"role":177,"data-label":4422,"data-place":179},[21,4448,4449],{},"STL"," (the default)",[175,4452,4453,4454,281,4457,4460,4461,281,4464,4466,4467,4470],{"role":177,"data-label":4437,"data-place":183},"Loess smoothers in two loops (Cleveland and others, 1990): one seasonal pattern that may change slowly from cycle to cycle. ",[21,4455,4456],{},"Seasonal smoother span",[623,4458,4459],{},"Periodic",": the same pattern every cycle, or an integer of 7 or more; 11 by default), ",[21,4462,4463],{},"Trend smoother span",[623,4465,1363],{},", or an integer of 3 or more) and ",[21,4468,4469],{},"Robust to outliers"," (outliers get a lower weight)",[175,4472,4473],{"role":177,"data-label":4440,"data-place":183},"One seasonal period and a pattern that drifts, or outliers you do not want in the season",[160,4475,4476,4481,4492],{"role":162},[175,4477,4478],{"role":177,"data-label":4422,"data-place":179},[21,4479,4480],{},"Classical",[175,4482,4483,4484,4487,4488,4491],{"role":177,"data-label":4437,"data-place":183},"A centred moving average of the period for the trend and the mean of each position of the cycle for the season; ",[21,4485,4486],{},"Components combine"," additively (y = trend + season + remainder) or ",[21,4489,4490],{},"multiplicatively"," (y = trend · season · remainder). The trend and the remainder are empty for half a period at each end",[175,4493,4494],{"role":177,"data-label":4440,"data-place":183},"A pattern that is the same every cycle, or one that grows with the level (multiplicative), and a result you can redo by hand",[160,4496,4497,4502,4515],{"role":162},[175,4498,4499],{"role":177,"data-label":4422,"data-place":179},[21,4500,4501],{},"MSTL",[175,4503,4504,4505,4508,4509,1195,4512,4514],{"role":177,"data-label":4437,"data-place":183},"STL once per period, repeated ",[21,4506,4507],{},"Passes over the periods"," times (2): several seasons at once, for example 7 and 365 for daily data. Up to four ",[21,4510,4511],{},"Seasonal periods",[21,4513,4456],{}," for each (11, 15, 19, 23 by default)",[175,4516,4517],{"role":177,"data-label":4440,"data-place":183},"Daily data with a weekly and a yearly cycle, hourly data with a daily and a weekly one",[160,4519,4520,4525,4551],{"role":162},[175,4521,4522],{"role":177,"data-label":4422,"data-place":179},[21,4523,4524],{},"EMD",[175,4526,4527,4528,4531,4532,303,4535,4538,4539,4542,4543,4546,4547,4550],{"role":177,"data-label":4437,"data-place":183},"Huang's empirical mode decomposition (the Rlibeemd package): the ",[21,4529,4530],{},"intrinsic modes"," the data themselves contain, fastest to slowest (",[283,4533,4534],{},"imf_1",[283,4536,4537],{},"imf_2","…), and a residue, with no fixed period. Options: ",[21,4540,4541],{},"Most IMFs to extract"," (10, up to 16), the ",[21,4544,4545],{},"S-number"," stopping rule (4) and the ",[21,4548,4549],{},"Most siftings per IMF"," (50). The ends of the envelopes are extrapolated by the package, not an option",[175,4552,4553],{"role":177,"data-label":4440,"data-place":183},"Cycles that are not of a fixed period (a machine's vibration, a market's swings). There are no EEMD or CEEMDAN: they add simulated noise, and a run here never gives two answers",[17,4555,1703,4556,4559,4560,4563,4564,4567,4568,4570],{},[21,4557,4558],{},"period"," is the length of a cycle in steps: empty means the frequency's (24 for hourly, 7 for\ndaily, 52 for weekly, 12 for monthly, 4 for quarterly; none for yearly or whole numbers, where STL and\nclassical need one). A period is a ",[21,4561,4562],{},"whole number of steps",", 2 or more (365, not 365.25: the catalogue\nrefuses 1 and a fraction). The series must be longer than ",[21,4565,4566],{},"twice"," the longest period (STL and MSTL; the\nclassical method needs at least twice), and EMD needs at least four values. A ",[21,4569,2167],{}," (none, log or\nBox–Cox) is applied before the decomposition, which is additive on the transformed series; the seasonally\nadjusted series is brought back to the original unit. A multiplicative classical decomposition and a\ntransform are refused together: choose one.",[3185,4572,4574],{"id":4573},"the-output","The output",[17,4576,4577,4578,4580],{},"What the next step receives is the ",[21,4579,1455],{}," option:",[153,4582,4583,4592],{},[156,4584,4585],{"role":158},[160,4586,4587,4589],{"role":162},[164,4588,1455],{"role":166},[164,4590,4591],{"role":166},"Gives",[170,4593,4594,4662],{"role":158},[160,4595,4596,4601],{"role":162},[175,4597,4598,4450],{"role":177,"data-label":1455,"data-place":179},[21,4599,4600],{},"The decomposed series",[175,4602,4603,4604,303,4606,4609,4610,4613,4614,4617,4618,4621,4622,4625,4626,303,4629,72,4632,99,4635,4638,4639,4641,4642,4645,4646,4649,4650,2623,4653,4656,4657,3098,4660],{"role":177,"data-label":4591,"data-place":183},"One row per instant: ",[283,4605,1618],{},[283,4607,4608],{},"observed"," (empty where a value was filled), ",[283,4611,4612],{},"transformed"," (with a transform), ",[283,4615,4616],{},"filled"," (true or false), ",[283,4619,4620],{},"trend",", one ",[283,4623,4624],{},"seasonal_\u003Cperiod>"," per period (",[283,4627,4628],{},"seasonal_7",[283,4630,4631],{},"seasonal_365",[283,4633,4634],{},"remainder",[283,4636,4637],{},"deseasonalized",". For EMD: ",[283,4640,4534],{}," … ",[283,4643,4644],{},"imf_10"," (empty after the last IMF found) and ",[283,4647,4648],{},"residue",". The columns are known in the editor ",[21,4651,4652],{},"before the Run",[283,4654,4655],{},"seasonal_*"," from the periods, ",[283,4658,4659],{},"imf_*",[623,4661,4541],{},[160,4663,4664,4668],{"role":162},[175,4665,4666],{"role":177,"data-label":1455,"data-place":179},[21,4667,1458],{},[175,4669,4670,4671,303,4673,303,4676,303,4679,303,4681,303,4684,303,4687,303,4690,99,4693],{"role":177,"data-label":4591,"data-place":183},"The ten columns, as every model: sections ",[283,4672,1635],{},[283,4674,4675],{},"season",[283,4677,4678],{},"imf",[283,4680,2883],{},[283,4682,4683],{},"curve",[283,4685,4686],{},"point",[283,4688,4689],{},"lag",[283,4691,4692],{},"hist",[283,4694,4695],{},"reading",[17,4697,4698,4703,4704,4707,4708,4710,4711,4714,4715,4718,4719,4721],{},[21,4699,1703,4700,4702],{},[283,4701,1618],{}," column keeps its type exactly",": an ",[283,4705,4706],{},"Int64"," stays ",[283,4709,4706],{},", a date a date, a timestamp its unit\nand zone, so the next join on it needs no cast. In the additive decomposition ",[283,4712,4713],{},"observed = trend + the seasonals + remainder"," to rounding; in the multiplicative one the product; for EMD ",[283,4716,4717],{},"observed = the IMFs + residue",". The\n",[21,4720,2600],{}," are kept with the run whichever output you choose, so the report can always be drawn.",[3185,4723,4725],{"id":4724},"what-the-report-says-and-the-checks","What the report says, and the checks",[17,4727,4728,4729,2623,4732,4737],{},"The first page says how strong the trend and each season are, which seasons a test supports, and whether the\nremainder looks like noise, each in words with the run's numbers. The checks follow\n",[68,4730,4731],{"href":1434},"the rule of this page",[21,4733,4734,4735],{},"a verdict only from a test with a\np-value against the node's ",[283,4736,1639],{},", never from a threshold of Tabularia's.",[153,4739,4740,4752],{},[156,4741,4742],{"role":158},[160,4743,4744,4746,4749],{"role":162},[164,4745,936],{"role":166},[164,4747,4748],{"role":166},"Kind",[164,4750,4751],{"role":166},"Reads",[170,4753,4754,4788,4810,4841,4863,4880],{"role":158},[160,4755,4756,4762,4765],{"role":162},[175,4757,4758,4761],{"role":177,"data-label":936,"data-place":179},[21,4759,4760],{},"Seasonality"," (one per period)",[175,4763,4764],{"role":177,"data-label":4748,"data-place":183},"verdict",[175,4766,4767,4768,4771,4772,4775,4776,4779,4780,4783,4784,4787],{"role":177,"data-label":4751,"data-place":1289},"Is there a seasonal pattern of this period? Friedman's test (the default) or Kruskal–Wallis, on the series detrended by a centred moving average, positions against complete cycles. ",[21,4769,4770],{},"supported"," (p below alpha) or ",[21,4773,4774],{},"not supported"," (p at or above alpha). ",[623,4777,4778],{},"Not supported"," is the absence of evidence, not a fault: it is drawn grey, with no red and no warning, and with few complete cycles (365 on two years of days) the test can see only a very strong pattern, which the reading says with the number of cycles. Choose ",[623,4781,4782],{},"None"," in ",[21,4785,4786],{},"Test of the seasonality"," to leave it out",[160,4789,4790,4796,4798],{"role":162},[175,4791,4792,4795],{"role":177,"data-label":936,"data-place":179},[21,4793,4794],{},"Ljung–Box"," on the remainder",[175,4797,4764],{"role":177,"data-label":4748,"data-place":183},[175,4799,4800,4801,2623,4804,4806,4807,4809],{"role":177,"data-label":4751,"data-place":1289},"Is there autocorrelation left up to the lag (",[21,4802,4803],{},"Ljung–Box lag",[623,4805,1363],{},", the smaller of twice the longest period and a fifth of the values, or ten without a season)? ",[21,4808,2767],{}," means structure is left in the remainder: another season, a narrower trend span, or a model of the remainder. On many values it rejects tiny autocorrelations, so the reading gives the largest one and its lag: weigh the size",[160,4811,4812,4820,4823],{"role":162},[175,4813,4814,99,4817,4795],{"role":177,"data-label":936,"data-place":179},[21,4815,4816],{},"ADF",[21,4818,4819],{},"KPSS",[175,4821,4822],{"role":177,"data-label":4748,"data-place":183},"verdicts",[175,4824,4825,4826,4828,4829,4831,4832,4834,4835,4837,4838,4840],{"role":177,"data-label":4751,"data-place":1289},"Opposite null hypotheses (a unit root; stationarity). ADF reads ",[21,4827,2214],{}," (the remainder has no unit root) or ",[21,4830,2218],{},". Their p-values come from tables that stop at both ends: past an end the test answers only the ",[283,4833,1639],{}," on that side, and for another ",[283,4836,1639],{}," it is ",[21,4839,1766],{},", as in ARIMA. The reading says the four combinations in words",[160,4842,4843,4853,4856],{"role":162},[175,4844,4845,4848,4849,4852],{"role":177,"data-label":936,"data-place":179},[21,4846,4847],{},"Trend strength"," F_T, ",[21,4850,4851],{},"seasonal strength"," F_S of each period",[175,4854,4855],{"role":177,"data-label":4748,"data-place":183},"measure",[175,4857,4858,4859,4862],{"role":177,"data-label":4751,"data-place":1289},"1 − Var(remainder) \u002F Var(trend + remainder), and the same with the season: from 0 (the part varies no more than the remainder) to 1 (the remainder is negligible beside it). A number and a sentence, ",[21,4860,4861],{},"no colour and no verdict",". They are never read against a threshold",[160,4864,4865,4874,4877],{"role":162},[175,4866,4867,303,4870,4873],{"role":177,"data-label":936,"data-place":179},[21,4868,4869],{},"Largest autocorrelation",[21,4871,4872],{},"weights at 0"," (robust)",[175,4875,4876],{"role":177,"data-label":4748,"data-place":183},"measures",[175,4878,4879],{"role":177,"data-label":4751,"data-place":1289},"How large the structure Ljung–Box finds is; the instants robust STL gave a weight of 0",[160,4881,4882,4894,4897],{"role":162},[175,4883,4884,4885,303,4888,303,4891],{"role":177,"data-label":936,"data-place":179},"EMD: ",[21,4886,4887],{},"IMF condition",[21,4889,4890],{},"residue monotonic",[21,4892,4893],{},"orthogonality",[175,4895,4896],{"role":177,"data-label":4748,"data-place":183},"facts and a measure",[175,4898,4899,4900,4902],{"role":177,"data-label":4751,"data-place":1289},"Whether each mode is an IMF, whether the residue has at most one extremum («raise ",[623,4901,4541],{},"», or only a longer series separates more modes), how far the modes are from orthogonal",[17,4904,4905,4906,281,4909,4912],{},"The tests on a remainder are read on the output of smoothers, which take low frequencies out: they answer «is\nthere visible structure left», not «is the decomposition the true one», and the report says so. ",[21,4907,4908],{},"EMD with no\nIMF read as noise",[623,4910,4911],{},"First IMFs read as noise",", 0 by default) separates no remainder: Ljung–Box and the strengths are\n«not computed» with the reason, and ADF and KPSS test what is left once the residue is removed; give the number\nof the fastest IMFs you read as noise to get them.",[17,4914,4915,4916,4919,4920,4922,4923,4925,4926,4928,4929,4931],{},"The Report tab, in the language of the interface, has: 1 the summary (cards for the observations, the method and\nthe strengths, the checks and the measures, in words), 2 the components (the series with its trend, one panel per\nperiod, the remainder as points, the seasonally adjusted series), 3 the seasonal patterns (the mean pattern by\nposition, with the lowest and highest cycle as a band; positions are named when the calendar names them: Monday\nto Sunday, January to December, the hours), 4 the remainder (histogram and correlogram), 5 for EMD the\noscillations (one panel per IMF, mean period, shares of variance and energy), 6 ",[21,4917,4918],{},"How this report was computed","\nand 7 the numbers and the notes. Under each block a ",[21,4921,4695],{}," of one to three sentences with the run's\nnumbers, and at the end the hypothesis, the method and the formulas of each analysis that ran, from templates in\nfive languages (no text is written at run time or by an AI). A reading of a ",[623,4924,4764],{}," may say supported or\nleft; the reading of a ",[623,4927,4855],{}," never does. ",[21,4930,234],{}," has a sheet for each table. The components themselves are\nthe node's output, not a sheet.",[3185,4933,4935],{"id":4934},"gaps-when-the-node-refuses-and-how-to-build-the-calendar","Gaps: when the node refuses, and how to build the calendar",[17,4937,4938,4939,4942,4943,4946],{},"Every method needs a complete series. ",[21,4940,4941],{},"By default the node refuses a series with a period without a value\ninside its span"," (no row, or an empty value), with the number of gaps and the first: «the series has 3 periods\nwithout a value inside its span (the first: 2024-08-15): fill them in the flow (a calendar Left join and Fill\nnulls with 0 when an empty day means none), or choose missing = linear or seasonal». It fills nothing unless you\nask, because an empty day of orders is often a day with ",[21,4944,4945],{},"no"," order, a 0, which an interpolation would invent.\nRows before the first value and after the last are left out and counted.",[1626,4948,4949,4972],{},[649,4950,4951,4954,4955,4957,4958,4961,4962,4964,4965,4968,4969,4971],{},[21,4952,4953],{},"An empty period means none:"," a ",[21,4956,1908],{}," of the orders has no row for a day without one. Take a\n",[21,4959,4960],{},"calendar"," table (one row per day, as the sample data's ",[283,4963,4960],{},"), keep the days of the span, ",[21,4966,4967],{},"Left join","\nthe grouped orders to it on the day, and add ",[21,4970,3906],{}," with 0 on the count.",[649,4973,4974,4977,4978,621,4981,4983,4984,4987,4988,4991,4992,4994,4995,4997],{},[21,4975,4976],{},"An empty period means unknown:"," choose ",[21,4979,4980],{},"A period without a value",[623,4982,811],{}," (a straight line between the two\nneighbours) or ",[623,4985,4986],{},"seasonal"," (the interpolation of the ",[283,4989,4990],{},"forecast"," package: a robust STL of a first fill, the seasonally\nadjusted series interpolated, the season added back). Each filled instant has ",[283,4993,4616],{}," true, ",[283,4996,4608],{}," empty,\nand the report counts them and says the method.",[17,4999,5000],{},"Other refusals say what to do and come before any fit: a series with two rows for one period («aggregate first with Group by»),\ntimes off the frequency's grid, a text or a true\u002Ffalse value, a value of 0 or below with a log, Box–Cox or multiplicative\ndecomposition, a column constant everywhere, values so large or so small that their squares leave the range of a\nnumber («rescale the column first»), a series too short for a period («the series has 600 days; a period of\n365 needs more than 730: drop it, or a longer series»), one seasonal span per period («give one seasonal span per period (2 periods, 3\nspans), or none»), a period for a yearly or whole-number series that has none, and IMFs read as noise beyond those\nfound.",[3185,5002,5004],{"id":5003},"limits","Limits",[153,5006,5007,5015],{},[156,5008,5009],{"role":158},[160,5010,5011,5013],{"role":162},[164,5012,3005],{"role":166},[164,5014,3008],{"role":166},[170,5016,5017,5028,5036,5044,5052,5058,5066],{"role":158},[160,5018,5019,5022],{"role":162},[175,5020,5021],{"role":177,"data-label":3005,"data-place":179},"Rows",[175,5023,5024,5027],{"role":177,"data-label":3008,"data-place":183},[21,5025,5026],{},"200,000"," (the group's, which an administrator may change); ARIMA stops at 20,000 whatever the group allows. Beyond it the step fails before the Job",[160,5029,5030,5033],{"role":162},[175,5031,5032],{"role":177,"data-label":3005,"data-place":179},"Period",[175,5034,5035],{"role":177,"data-label":3008,"data-place":183},"2 to 10,000 steps (hourly data with a yearly cycle has 8,766)",[160,5037,5038,5041],{"role":162},[175,5039,5040],{"role":177,"data-label":3005,"data-place":179},"Periods of MSTL",[175,5042,5043],{"role":177,"data-label":3008,"data-place":183},"4, distinct",[160,5045,5046,5049],{"role":162},[175,5047,5048],{"role":177,"data-label":3005,"data-place":179},"IMFs",[175,5050,5051],{"role":177,"data-label":3008,"data-place":183},"16 at most (ten by default)",[160,5053,5054,5056],{"role":162},[175,5055,4803],{"role":177,"data-label":3005,"data-place":179},[175,5057,2538],{"role":177,"data-label":3008,"data-place":183},[160,5059,5060,5063],{"role":162},[175,5061,5062],{"role":177,"data-label":3005,"data-place":179},"Smoother spans",[175,5064,5065],{"role":177,"data-label":3008,"data-place":183},"Whole numbers, 2,000,001 at most (STL's own periodic span for 200,000 rows); a period, a span or a lag of 7.5 is refused before the Job",[160,5067,5068,5070],{"role":162},[175,5069,3080],{"role":177,"data-label":3005,"data-place":179},[175,5071,5072],{"role":177,"data-label":3008,"data-place":183},"A run on 100,000 rows takes under ten seconds of R with every option on; 200,000 rows about twenty",[3185,5074,5076],{"id":5075},"mlflow-and-no-model","MLflow, and no model",[17,5078,5079,5080,5082,5083,5086,5087,5089],{},"A flow run is logged to MLflow like any other: the parameters, the numbers of ",[283,5081,1635],{}," and of each check, the\nresults table and the report. The decomposed series is the flow's data, not logged. There is ",[21,5084,5085],{},"no model to register",": a ",[623,5088,4404],{},"\nis not offered, and a run that sends one is refused with «a decomposition registers no model: its run is logged to MLflow».",[17,5091,5092,5094,5095,5098,5099,5101,5102,5104,5105,5107,5108,5110,5111,5113,5114,5117],{},[623,5093,1021],{}," the sample flow ",[21,5096,5097],{},"Orders: weekly and yearly seasons"," (created with the sample data when the time\nseries group is enabled): the ",[21,5100,4960],{},"'s days from 1 July 2023 to 15 July 2026 ",[21,5103,4967],{}," the orders\ncounted by ",[21,5106,1908],{}," on the day, ",[21,5109,3906],{}," with 0 on the count (a Sunday in August has none), then\nDecomposition: ",[21,5112,4501],{},", periods 7 and 365, ",[21,5115,5116],{},"Robust",", frequency daily. The first page says whether the weekly\nand the yearly patterns are supported, how strong they are and whether the remainder is noise.",[501,5119,5121],{"id":5120},"ab-tests-r","A\u002FB tests (R)",[17,5123,2246,5124,99,5127,5130,5131,5134,5135,1679,5137,5139,5140,5143,5144,5147,5148,5151,5152,5154,5155,5157],{},[283,5125,5126],{},"ab_test",[283,5128,5129],{},"ab_plan",". The group ",[21,5132,5133],{},"Experiments"," has two nodes, ",[21,5136,98],{},[21,5138,102],{},", for experiments in which users (or sessions, shops, devices: the\n",[623,5141,5142],{},"randomization units",") are split at random between a ",[21,5145,5146],{},"control"," and one or more ",[21,5149,5150],{},"treatments"," and a\nmetric is measured on each. Neither node makes a model: there is no model card, no ",[623,5153,4404],{},"\nand no ",[68,5156,58],{"href":2974}," for them; a run is logged to MLflow like any other (below).",[17,5159,5160,5163,5164,5166,5167,5170],{},[21,5161,5162],{},"When to use which node."," The ",[68,5165,191],{"href":144}," nodes compare groups of rows: a t-test on a\ncolumn, a test of two proportions. Use the A\u002FB test node when the question is «did this treatment move\nthe metric?» for an experiment: it also checks that the units fell in the variants as planned (the\n",[623,5168,5169],{},"sample ratio mismatch","), reads rates, means and ratios per unit, can use the visitor's behaviour before the\nexperiment to sharpen the answer (CUPED), looks at the data again and again without breaking its\nguarantee (the sequential reading), and gives the decision on the first page. Its comparison of two\nmeans is Welch's t-test, the same numbers as the Statistics node's. Use a Statistics node for a plain test\nwithout an experiment around it. Benjamini–Hochberg's correction and the power of a test, which the\nStatistics page lists as not done, are in this group.",[3185,5172,5174],{"id":5173},"the-input-one-row-per-unit-or-sums","The input: one row per unit, or sums",[17,5176,1703,5177,5180],{},[21,5178,5179],{},"rows are"," either:",[1626,5182,5183,5201],{},[649,5184,5185,5188,5189,5192,5193,5196,5197,5200],{},[21,5186,5187],{},"one per unit"," (the default): one row per visitor, with its variant and its metric. When a unit\nhas several rows (one per session or per order), choose the ",[21,5190,5191],{},"Unit column"," and the node puts the rows of\neach unit together first: a binary metric is true if any row is, a continuous one is summed, the\ncovariate must be the same on every row of the unit. A unit whose rows carry ",[21,5194,5195],{},"more than one\nvariant"," saw both arms and is left out, and the check ",[21,5198,5199],{},"crossover"," says how many;",[649,5202,5203,5206,5207,5210,5211,5214,5215,5218],{},[21,5204,5205],{},"already summed",": one row per variant, or per variant and day, with the ",[21,5208,5209],{},"units",", the\n",[21,5212,5213],{},"sum of the metric"," (for a rate, the units that converted) and, for a mean, the ",[21,5216,5217],{},"sum of the squared\nmetric",". It cannot do what needs each unit: ratio metrics, CUPED, the cap, secondary metrics.",[17,5220,5221,5222,621,5224,5227,5228,5230,5231,5233,5234,5236,5237,5239],{},"Build the first shape with ",[21,5223,1908],{},[283,5225,5226],{},"visitor"," when your rows are sessions: the ",[623,5229,1914],{}," of a\ntrue\u002Ffalse column for a conversion, the ",[623,5232,3719],{}," of the amounts for a revenue. After a ",[21,5235,4967],{},"\nof the buyers, a visitor who never bought has an empty revenue and the node leaves the row out:\nthat removes exactly the people who did not buy. The node says so in a note («put a Fill nulls with 0 before\nthe node if an empty value means no revenue»): put the ",[21,5238,3906],{}," before it.",[3185,5241,5243],{"id":5242},"the-form","The form",[153,5245,5246,5254],{},[156,5247,5248],{"role":158},[160,5249,5250,5252],{"role":162},[164,5251,1270],{"role":166},[164,5253,366],{"role":166},[170,5255,5256,5269,5290,5306,5315,5325,5335,5344,5354,5368,5385,5395,5405,5415,5425,5435,5449,5459,5473,5483],{"role":158},[160,5257,5258,5266],{"role":162},[175,5259,5260,99,5263],{"role":177,"data-label":1270,"data-place":179},[21,5261,5262],{},"Variant column",[21,5264,5265],{},"Control",[175,5267,5268],{"role":177,"data-label":366,"data-place":183},"The column that says which variant each unit saw (text, integer, true\u002Ffalse or date; at most 20 values) and the value that is the control. Every other value is a treatment",[160,5270,5271,5276],{"role":162},[175,5272,5273],{"role":177,"data-label":1270,"data-place":179},[21,5274,5275],{},"Type of metric",[175,5277,5278,5281,5282,5285,5286,5289],{"role":177,"data-label":366,"data-place":183},[21,5279,5280],{},"Binary"," (true\u002Ffalse or 0\u002F1: a conversion), ",[21,5283,5284],{},"continuous"," (a number: revenue, time) or ",[21,5287,5288],{},"ratio"," (a numerator over a denominator per unit: clicks over impressions)",[160,5291,5292,5303],{"role":162},[175,5293,5294,303,5297,303,5300],{"role":177,"data-label":1270,"data-place":179},[21,5295,5296],{},"Metric",[21,5298,5299],{},"Numerator",[21,5301,5302],{},"Denominator",[175,5304,5305],{"role":177,"data-label":366,"data-place":183},"The columns of the metric. A ratio is the sum of the numerators over the sum of the denominators of each variant, with the delta method for its variance",[160,5307,5308,5312],{"role":162},[175,5309,5310],{"role":177,"data-label":1270,"data-place":179},[21,5311,5191],{},[175,5313,5314],{"role":177,"data-label":366,"data-place":183},"The unit's identifier, when a unit has several rows",[160,5316,5317,5322],{"role":162},[175,5318,5319],{"role":177,"data-label":1270,"data-place":179},[21,5320,5321],{},"A higher value is better",[175,5323,5324],{"role":177,"data-label":366,"data-place":183},"On by default; off for a cost, a latency, a bounce rate. It decides which direction is «better» and «worse»",[160,5326,5327,5332],{"role":162},[175,5328,5329],{"role":177,"data-label":1270,"data-place":179},[21,5330,5331],{},"Alternative",[175,5333,5334],{"role":177,"data-label":366,"data-place":183},"Two-sided (default), greater or less, on treatment minus control",[160,5336,5337,5341],{"role":162},[175,5338,5339],{"role":177,"data-label":1270,"data-place":179},[21,5340,1425],{},[175,5342,5343],{"role":177,"data-label":366,"data-place":183},"0.05. The level of every test and interval of the node, written in the report",[160,5345,5346,5351],{"role":162},[175,5347,5348],{"role":177,"data-label":1270,"data-place":179},[21,5349,5350],{},"Correction across treatments",[175,5352,5353],{"role":177,"data-label":366,"data-place":183},"Holm (default), Benjamini–Hochberg, Bonferroni or none, for the comparisons of the treatments with the control. With one treatment it changes nothing, and the report says so",[160,5355,5356,5361],{"role":162},[175,5357,5358],{"role":177,"data-label":1270,"data-place":179},[21,5359,5360],{},"Covariate before the experiment (CUPED)",[175,5362,5363,5364,5367],{"role":177,"data-label":366,"data-place":183},"A metric measured on each unit ",[21,5365,5366],{},"before"," the experiment started (the revenue of the 28 days before). It must precede the assignment: a covariate measured afterwards is changed by the treatment and biases the result. The node removes the part of the metric the covariate explains, so the same data detect smaller lifts. A variant's own interval also counts the uncertainty of the covariate's mean over all the units; a comparison does not need it (it cancels in a difference)",[160,5369,5370,5375],{"role":162},[175,5371,5372],{"role":177,"data-label":1270,"data-place":179},[21,5373,5374],{},"A unit without the covariate",[175,5376,5377,5380,5381,5384],{"role":177,"data-label":366,"data-place":183},[21,5378,5379],{},"Fill"," (default): it gets the mean of the covariate of the units of its own variant that have one, and counts with its own metric; ",[21,5382,5383],{},"Exclude",": it is left out of the comparisons. The report counts either",[160,5386,5387,5392],{"role":162},[175,5388,5389],{"role":177,"data-label":1270,"data-place":179},[21,5390,5391],{},"Cap at the percentile",[175,5393,5394],{"role":177,"data-label":366,"data-place":183},"For a continuous metric: values above this percentile of all units are set to it, which limits the weight of a few huge orders. Decide it before looking at the results",[160,5396,5397,5402],{"role":162},[175,5398,5399],{"role":177,"data-label":1270,"data-place":179},[21,5400,5401],{},"Level of the split check",[175,5403,5404],{"role":177,"data-label":366,"data-place":183},"0.001: the sample ratio mismatch test, stricter than the comparison's because a false alarm throws away a sound experiment",[160,5406,5407,5412],{"role":162},[175,5408,5409],{"role":177,"data-label":1270,"data-place":179},[21,5410,5411],{},"Expected split of the variants",[175,5413,5414],{"role":177,"data-label":366,"data-place":183},"Empty: equal shares. Otherwise a number for each value of the variant column (50 and 50, 90 and 10, 1, 1 and 2), normalized",[160,5416,5417,5422],{"role":162},[175,5418,5419],{"role":177,"data-label":1270,"data-place":179},[21,5420,5421],{},"Smallest lift that matters",[175,5423,5424],{"role":177,"data-label":366,"data-place":183},"0.02, 2 %: your business margin. It marks the charts and the reading of the power; it is never a test",[160,5426,5427,5432],{"role":162},[175,5428,5429],{"role":177,"data-label":1270,"data-place":179},[21,5430,5431],{},"Power",[175,5433,5434],{"role":177,"data-label":366,"data-place":183},"0.8: the power of the «lift detectable at this size»",[160,5436,5437,5442],{"role":162},[175,5438,5439],{"role":177,"data-label":1270,"data-place":179},[21,5440,5441],{},"Bayesian reading",[175,5443,5444,5445,5448],{"role":177,"data-label":366,"data-place":183},"On: probability of beating the control, expected loss, credible intervals. For a binary metric a Beta prior (1 and 1 by default: uniform); ",[21,5446,5447],{},"Expected loss accepted",", 0.001, is the loss you can live with as a share of the control's mean",[160,5450,5451,5456],{"role":162},[175,5452,5453],{"role":177,"data-label":1270,"data-place":179},[21,5454,5455],{},"Date column",[175,5457,5458],{"role":177,"data-label":366,"data-place":183},"The day each unit entered: the daily share of each variant, the daily series and the sequential curve",[160,5460,5461,5466],{"role":162},[175,5462,5463],{"role":177,"data-label":1270,"data-place":179},[21,5464,5465],{},"Sequential reading",[175,5467,5468,5469,5472],{"role":177,"data-label":366,"data-place":183},"Off by default; see below. ",[21,5470,5471],{},"Scale of the sequential mixture"," (τ), 0.05: the order of magnitude of the relative change you expect (0.05 is 5 %). Any value keeps the guarantee on false alarms; the choice is yours. A small τ suits effects of a few percentage points, but on an experiment with little data it stays silent even before a large effect: raise it for big changes",[160,5474,5475,5480],{"role":162},[175,5476,5477],{"role":177,"data-label":1270,"data-place":179},[21,5478,5479],{},"Secondary metrics",[175,5481,5482],{"role":177,"data-label":366,"data-place":183},"Other columns (up to 10) reported and corrected among themselves, never with the primary",[160,5484,5485,5489],{"role":162},[175,5486,5487],{"role":177,"data-label":1270,"data-place":179},[21,5488,1455],{},[175,5490,5491,5494,5495,5498],{"role":177,"data-label":366,"data-place":183},[21,5492,5493],{},"Results"," (the ten columns) or ",[21,5496,5497],{},"Variants"," (one row per variant and metric)",[17,5500,5501],{},"The defaults are in the form, not hidden: 0.001, 0.02, 0.05 and 0.001 are orders of magnitude of\nweb experiments, not the product's opinion of your data. The form greys out the choices that do not fit\ntogether and says why in words (a ratio needs rows of units; the sequential p-value is two-sided).",[3185,5503,5505],{"id":5504},"what-it-computes","What it computes",[1626,5507,5508,5522,5528,5534,5552,5578,5584],{},[649,5509,5510,5513,5514,5517,5518,5521],{},[21,5511,5512],{},"The comparison."," For each treatment against the control: the difference and its interval, the\n",[21,5515,5516],{},"relative lift"," and its interval (Fieller's, which excludes 0 exactly when the two-sided test rejects),\nthe statistic, the p-value and the p-value adjusted for the treatments. A rate is compared with the\nnormal (z) test, a mean with Welch's t-test, a ratio by the delta method. The ",[21,5519,5520],{},"decision"," of a\ntreatment is a verdict from the adjusted p-value against the node's significance level: better, worse or not\nsignificant, or not computed with its reason.",[649,5523,5524,5527],{},[21,5525,5526],{},"The split of the units (SRM)."," Pearson's χ² of the units per variant against the expected shares,\nat the level of the split check. When it fails, the first page opens with a band that says the units are\nnot split as planned and the comparisons may be biased: look for what removed units from one variant (a\nfilter, a bot rule, a redirect that fails) before reading them. Every number stays in the report.",[649,5529,5530,5533],{},[21,5531,5532],{},"The other checks."," With a covariate, whether the variants were alike before the experiment\n(Welch's F of the covariate across the variants) and, with empty covariates, whether the empty ones are\nspread alike across the variants; the crossover; a variant whose metric has no variance.",[649,5535,5536,5539,5540,5543,5544,5547,5548,5551],{},[21,5537,5538],{},"The Bayesian reading."," The probability that each treatment beats the control, that each variant is\nbest, the expected loss of choosing a treatment instead of the control (absolute and relative to the control's\nmean) and the credible intervals. It is computed by quadrature, with no random numbers.\n",[21,5541,5542],{},"The probability of beating the control is not a p-value",": the p-value is the probability of data at least this extreme\n",[623,5545,5546],{},"if there were no difference","; the probability of beating is the probability of the difference ",[623,5549,5550],{},"given the data and the\nprior",". The report says so and never colours it.",[649,5553,5554,5557,5558,5561,5562,5565,5566,5569,5570,5573,5574,5577],{},[21,5555,5556],{},"The sequential reading."," The node runs on a snapshot and remembers nothing between runs. With ",[623,5559,5560],{},"Sequential\nreading"," it gives, for each treatment, the ",[21,5563,5564],{},"always-valid p-value"," and a confidence sequence of the\nlift: a p-value whose guarantee holds however often, and whenever, someone looks and decides to stop. ",[21,5567,5568],{},"If you\nlooked at the results before the planned end of the experiment, read the sequential decision; if you did not,\nread the fixed one."," With a date column it draws the curve over the days: a reconstruction from today's data\n(a unit's revenue then was smaller), as the report says under the chart. Two runs a week apart can give a later p-value\n",[623,5571,5572],{},"higher"," than the earlier one, because the metrics mature: each run is valid for its data, read the latest. It\nis two-sided only.\n",[21,5575,5576],{},"Choosing τ."," τ says what size of change the mixture is tuned to notice. Whatever τ you give, the chance of a false alarm over any number of looks stays within the significance level; τ only moves where the test is sharp. If you expect a few percent, keep 0.05; if you expect, or care only about, big changes (tens of percent) or the experiment is small, raise it (0.2, say), because a small τ on few units can leave the p-value at 1 before a large effect.",[649,5579,5580,5583],{},[21,5581,5582],{},"The lift detectable at this size."," With the units of the run, the lift detected with the chosen power and\nthe power at your smallest lift: it helps read a «not significant». It is never the power at the observed effect.",[649,5585,5586,5589,5590,5593,5594,5597,5598,231,5600,5603],{},[21,5587,5588],{},"Secondary metrics."," Each one is compared in the same way. Their comparisons are corrected ",[21,5591,5592],{},"among\nthemselves",", never with the primary: the primary alone decides. The first page lists the ones worse than the control; their\nown page has every comparison. Each secondary metric has its own direction, «higher is better» or «lower is better» (",[283,5595,5596],{},"secondary_directions",", a\nmap from the column to ",[283,5599,5572],{},[283,5601,5602],{},"lower","; in the editor, one select under the secondary metrics); a metric not given one takes\nthe primary's. The report writes ↑ or ↓ beside the metric's name, and «worse» and «better» are read in its direction:\na latency, returns or cancellations can be guardrails beside a conversion. The direction changes no number, only the verdict.",[3185,5605,1435],{"id":5606},"how-a-check-speaks",[17,5608,5609,5610,2623,5612],{},"The nodes follow the rule of ",[68,5611,1435],{"href":1434},[21,5613,5614],{},"no number of\nTabularia's decides a verdict.",[153,5616,5617,5627],{},[156,5618,5619],{"role":158},[160,5620,5621,5624],{"role":162},[164,5622,5623],{"role":166},"It is",[164,5625,5626],{"role":166},"Which checks",[170,5628,5629,5639,5649],{"role":158},[160,5630,5631,5636],{"role":162},[175,5632,1572,5633],{"role":177,"data-label":5623,"data-place":179},[21,5634,5635],{},"verdict from a test",[175,5637,5638],{"role":177,"data-label":5626,"data-place":183},"The decision of each treatment (adjusted p against the significance level), the split of the units (against the level of the split check), the balance of the covariate and of its empty values, the sequential decision",[160,5640,5641,5646],{"role":162},[175,5642,1572,5643],{"role":177,"data-label":5623,"data-place":179},[21,5644,5645],{},"fact",[175,5647,5648],{"role":177,"data-label":5626,"data-place":183},"The crossover (units seen in more than one variant: ok when none) and a variant with no variance",[160,5650,5651,5656],{"role":162},[175,5652,1572,5653,5655],{"role":177,"data-label":5623,"data-place":179},[21,5654,4855],{},", with no colour and no advice",[175,5657,5658],{"role":177,"data-label":5626,"data-place":183},"The probability of beating the control, the probability of being the best, the expected losses (compared with your threshold only as «below» or «above», in a sentence), the lift detectable at this size, the skewness of a continuous metric, the variance reduction of CUPED, the position of the interval against your smallest lift",[3185,5660,4574],{"id":5661},"the-output-1",[17,5663,5664,5666,5667,5671,5672,5674,5675,5678,5679,5682,5683,307,5686,303,5689,303,5692,5694,5695,5697,5698,5700,5701,5703,5704,231,5707,329],{},[21,5665,5493],{}," (the default) are the ",[68,5668,5670],{"href":5669},"#the-output","ten columns",". The sections: ",[283,5673,1635],{}," (the formula, the decision, the\ncounts), ",[283,5676,5677],{},"variant"," (per variant: units, share, expected share, mean, standard error, interval, skewness, conversions…),\n",[283,5680,5681],{},"comparison"," (per treatment and control: difference, lift with their intervals, statistic, p, adjusted p, detectable lift), ",[283,5684,5685],{},"bayes",[283,5687,5688],{},"sequential",[283,5690,5691],{},"secondary",[283,5693,2883],{}," (the checks), ",[283,5696,4683],{}," (the charts' points), ",[283,5699,4692],{}," (the histogram of a continuous\nmetric) and ",[283,5702,4695],{}," (the sentences of the report). Keys read as ",[283,5705,5706],{},"comparison|B|A|p_adjusted",[283,5708,5709],{},"variant|A||mean",[17,5711,5712,5714,5715,303,5718,5721,5722,303,5724,303,5727,303,5729,303,5732,303,5735,5738,5739,303,5742,303,5745,303,5747,303,5750,303,5753,5756,5757,5762],{},[21,5713,5497],{}," gives a table one step can use: one row per variant and metric, with ",[283,5716,5717],{},"metric",[283,5719,5720],{},"role"," (primary or\nsecondary), ",[283,5723,5677],{},[283,5725,5726],{},"is_control",[283,5728,5209],{},[283,5730,5731],{},"share",[283,5733,5734],{},"expected_share",[283,5736,5737],{},"mean",", its interval, the difference and the\nlift with their intervals, ",[283,5740,5741],{},"p_value",[283,5743,5744],{},"p_adjusted",[283,5746,5520],{},[283,5748,5749],{},"prob_beat_control",[283,5751,5752],{},"prob_best",[283,5754,5755],{},"expected_loss"," and the\nsequential p-value and interval. ",[21,5758,1703,5759,5761],{},[283,5760,5677],{}," column keeps the input column's type",": an Int64 stays Int64, a\ntrue\u002Ffalse stays true\u002Ffalse, so that the next join on it needs no cast. The columns are known in the editor before the\nRun, as for the other models.",[3185,5764,5766],{"id":5765},"the-report-and-its-explanation","The report, and its explanation",[17,5768,5769],{},"The Report tab draws A4 pages in the language of the interface (five languages):",[646,5771,5772,5778,5784,5794],{},[649,5773,5774,5777],{},[21,5775,5776],{},"The decision",": the headline, chosen by verdicts only (in this order: the split of the units failed; a treatment\nis better; a treatment is worse; no variant shows a difference from the control; no comparison could be computed,\nwhich is no verdict), the cards, the treatments' table, the interval\nchart of the lifts with the minimum lift in the caption, the checks with the alpha line, two lines of measures.",[649,5779,5780,5783],{},[21,5781,5782],{},"The variants",": units assigned and used, the split against the expected, the daily share of each variant (with a date),\nCUPED, the histograms of a continuous metric.",[649,5785,5786,5789,5790,5793],{},[21,5787,5788],{},"The comparisons"," and the power reading; 4. ",[21,5791,5792],{},"the Bayesian page",": the posterior densities and the table;",[649,5795,5796,5799,5800,5803,5804,5806],{},[21,5797,5798],{},"the sequential page",": the lift with its confidence sequence and the p-value over the days; 6. ",[21,5801,5802],{},"the secondary\nmetrics","; 7. ",[21,5805,4918],{},"; 8. the notes.",[17,5808,5809,5810,5813,5814,5816,5817,5819,5820,5822,5823,5825,5826,5828],{},"The report ",[21,5811,5812],{},"explains the method"," to readers who are not statisticians, in two places, from the same numbers so that they cannot\ndisagree. Under each block, a ",[21,5815,4695],{},": one to three sentences in italics with the run's numbers («Of 12,480 users of\nB, 512 converted: 4.10 %, against 3.62 % for A…», «If B were no different from A, a difference this large would appear by\nchance with probability 0.006…»). At the end, ",[21,5818,4918],{},": for each analysis that ran, the hypothesis, why\nthat method and what it did to the numbers, and a box with the formulas. The reading of a ",[623,5821,4764],{}," may say significant or\nworse; the reading of a ",[623,5824,4855],{}," never does. Every sentence comes from a template in five languages and is filled with the\nnumbers of the run: the report has no text written at run time and none written by an AI. ",[21,5827,234],{}," has one sheet each for the\ntreatments, the variants, the checks, the Bayesian table, the sequential table, the secondary metrics and the reading.",[3185,5830,5832],{"id":5831},"planning-an-experiment-ab-test-planning","Planning an experiment: A\u002FB test planning",[17,5834,5835,5837,5838,5841,5842,1947],{},[283,5836,5129],{}," reads ",[21,5839,5840],{},"historical data of the metric",", with no experiment in them (the same shapes as the A\u002FB test, without the\nvariant and the control), and answers one of three questions (",[21,5843,5844],{},"Compute",[153,5846,5847,5855],{},[156,5848,5849],{"role":158},[160,5850,5851,5853],{"role":162},[164,5852,5844],{"role":166},[164,5854,4591],{"role":166},[170,5856,5857,5867,5880],{"role":158},[160,5858,5859,5864],{"role":162},[175,5860,5861],{"role":177,"data-label":5844,"data-place":179},[21,5862,5863],{},"Sample size",[175,5865,5866],{"role":177,"data-label":4591,"data-place":183},"The units per variant and in total, the days and the weeks, to detect the smallest lift that matters at the significance level and the power chosen",[160,5868,5869,5877],{"role":162},[175,5870,5871,281,5874,286],{"role":177,"data-label":5844,"data-place":179},[21,5872,5873],{},"The detectable lift with these units",[623,5875,5876],{},"Units per variant",[175,5878,5879],{"role":177,"data-label":4591,"data-place":183},"The smallest relative lift the units reach",[160,5881,5882,5891],{"role":162},[175,5883,5884,281,5887,5890],{"role":177,"data-label":5844,"data-place":179},[21,5885,5886],{},"The detectable lift in these days",[623,5888,5889],{},"Days",", needs a date column)",[175,5892,5893],{"role":177,"data-label":4591,"data-place":183},"The same for a duration",[17,5895,5896,5897,1802,5900,1802,5903,5906,5907,5910,5911,5914,5915,5918,5919,5922,5923,5926,5927,5930],{},"Further options: the number of ",[21,5898,5899],{},"variants, control included",[21,5901,5902],{},"control's share",[21,5904,5905],{},"share of the traffic"," in the\nexperiment, the correction, and a ",[21,5908,5909],{},"covariate"," (the sizes again with CUPED: the variance times 1 − ρ²). The ",[21,5912,5913],{},"date"," is the day each\nunit ",[623,5916,5917],{},"first appeared",": the daily new units give the duration. With ",[623,5920,5921],{},"k"," variants the plan keeps each comparison at α\u002F(k − 1)\n(a conservative plan, as Holm's first step and Bonferroni's), says so, and says that ",[21,5924,5925],{},"whole weeks"," cover the weekly cycle,\nwithout a rule. When the history is shorter than the planned days a sentence says it, without colour. Its output is the\npower against the lift, the MDE against the days, a grid of lifts around yours as a table (",[21,5928,5929],{},"Plan"," output) and the history's\nhistogram; no check is a test, so the node has no verdicts. The sizes are those of the normal approximation of the test the\nA\u002FB node runs, so that the plan and the test agree: the A\u002FB node's «detectable lift» on an experiment of the planned size\nagrees with the planned lift.",[3185,5932,5934],{"id":5933},"limits-and-refusals","Limits and refusals",[153,5936,5937,5945],{},[156,5938,5939],{"role":158},[160,5940,5941,5943],{"role":162},[164,5942,3005],{"role":166},[164,5944,3008],{"role":166},[170,5946,5947,5955,5962,5970,5977,5984],{"role":158},[160,5948,5949,5952],{"role":162},[175,5950,5951],{"role":177,"data-label":3005,"data-place":179},"Variants (control included)",[175,5953,5954],{"role":177,"data-label":3008,"data-place":183},"20: «filter the variants you compare»",[160,5956,5957,5959],{"role":162},[175,5958,5876],{"role":177,"data-label":3005,"data-place":179},[175,5960,5961],{"role":177,"data-label":3008,"data-place":183},"At least 2",[160,5963,5964,5967],{"role":162},[175,5965,5966],{"role":177,"data-label":3005,"data-place":179},"Looks of the sequential reading",[175,5968,5969],{"role":177,"data-label":3008,"data-place":183},"1,000 days; beyond, equal periods of days, with a note",[160,5971,5972,5974],{"role":162},[175,5973,5479],{"role":177,"data-label":3005,"data-place":179},[175,5975,5976],{"role":177,"data-label":3008,"data-place":183},"10",[160,5978,5979,5981],{"role":162},[175,5980,5021],{"role":177,"data-label":3005,"data-place":179},[175,5982,5983],{"role":177,"data-label":3008,"data-place":183},"The group's: 5,000,000 unless an administrator changed it",[160,5985,5986,5989],{"role":162},[175,5987,5988],{"role":177,"data-label":3005,"data-place":179},"Memory and time",[175,5990,5991],{"role":177,"data-label":3008,"data-place":183},"2 GiB and 1 CPU, 1,800 seconds in the group",[17,5993,5994],{},"The node stops with a sentence that says what to do: the control has no row, only the control has rows, a share missing for a\nvariant, a binary metric that is not true\u002Ffalse or 0\u002F1, a variant with a single unit, a covariate with two values for one unit,\nno unit with the covariate, whole numbers expected in the sums, a denominator that sums to 0, a history with no row or with the\nsame metric on every unit, a lift no size reaches. There is no random number anywhere: the same rows give the same numbers.\nIt does not do bootstrap or permutation tests, a different test for each metric of the secondary ones, or a model card.",[3185,5996,5998],{"id":5997},"mlflow-without-a-model","MLflow, without a model",[17,6000,6001,6002,6004,6005,303,6008,99,6011,6014,6015,6018,6019,99,6022,6025,6026,6029,6030,6032],{},"A flow run logs, to the node's MLflow experiment, one run per analysis: the node's parameters, every number of the ",[283,6003,1635],{},"\nsection, ",[283,6006,6007],{},"comparison.\u003Cvariant>.\u003Cnumber>",[283,6009,6010],{},"bayes.\u003Cvariant>.\u003Cnumber>",[283,6012,6013],{},"sequential.\u003Cvariant>.\u003Cnumber>"," as metrics,\nthe checks as ",[283,6016,6017],{},"assumption.srm.p_value"," and the like, and the files ",[283,6020,6021],{},"tabularia\u002Fresults.parquet",[283,6023,6024],{},"tabularia\u002Freport.pdf"," (with\nits reading, in the flow owner's language). MLflow becomes a register of experiments, searchable by flow and node. ",[21,6027,6028],{},"There is\nno model to register",": the form does not offer ",[623,6031,4404],{},", a request for it is refused with «an A\u002FB test\nregisters no model: its run is logged to MLflow», and no Predict node can apply these nodes.",[3185,6034,6036],{"id":6035},"trying-it-on-the-sample-data","Trying it on the sample data",[17,6038,6039,6040,307,6042,303,6045,99,6048,281,6051,6054,6055,6058,6059,6062,6063,6066,6067,6070,6071,6073,6074,3695,6077,6079],{},"The sample data of the pasta and bakery company have a web shop that runs three experiments, in the tables ",[283,6041,94],{},[283,6043,6044],{},"experiment_users",[283,6046,6047],{},"experiment_history",[283,6049,6050],{},"experiment_daily",[283,6052,6053],{},"esperimenti…"," in the ",[283,6056,6057],{},"analytics"," database; they follow the same sample databases as the examples above). When the group is\nenabled, the seed also creates two flows, ",[21,6060,6061],{},"Experiment: checkout"," (the visitors of the new checkout: conversion, the\nrevenue of the 28 days before as covariate, the sequential look by entry day, revenue as a secondary metric) and ",[21,6064,6065],{},"Experiment\nplanning"," (how many visitors, and how many days, to see a 5 % lift in revenue per visitor). The checkout's B beats the\ncontrol; the free shipping experiment (",[283,6068,6069],{},"spedizione_gratuita",") opens with the split band, because a filter dropped 7 % of B's\nlow-engagement visitors from day 12 on: B looks better than it is, which is what the check is for. Change the ",[21,6072,1886],{}," of the checkout flow to\n",[283,6075,6076],{},"esperimento_id",[283,6078,6069],{}," to see it.",[501,6081,6083],{"id":6082},"pre-trained-forecasting-timestral","Pre-trained forecasting (Timestral)",[17,6085,808,6086,6089,6090,6093,6094,329],{},[283,6087,6088],{},"timestral",", in its own group, ",[21,6091,6092],{},"Pre-trained forecasting"," (Python). Node name in the palette:\n",[21,6095,117],{},[3185,6097,6099],{"id":6098},"the-licence-of-the-weights-first","The licence of the weights, first",[17,6101,6102,6103,6106,6107,6110],{},"The model's weights are Mistral AI's, not Tabularia's, and they come under a licence of their own, the ",[623,6104,6105],{},"Modified MIT\nLicense",". ",[21,6108,6109],{},"Tabularia does not ship them",": the group's image downloads them from Mistral AI's repositories on Hugging Face,\ninto your cluster, when an administrator enables the group. The clause below is point 2 of the licence, quoted here\nword for word:",[2696,6112,6113],{},[646,6114,6116],{"start":6115},2,[649,6117,6118,6119,6123,6124,329],{},"You are not authorized to exercise any rights under this license if the global consolidated\nmonthly revenue of your company (or that of your employer) exceeds $20 million (or its equivalent\nin another currency) for the preceding month. This restriction in (b) applies to the Model and\nany derivatives, modifications, or combined works based on it, whether provided by Mistral AI or\nby a third party. You may contact Mistral AI (",[68,6120,6122],{"href":6121},"mailto:sales@mistral.ai","sales@mistral.ai",") to request a commercial license,\nwhich Mistral AI may grant you at its sole discretion, or choose to use the Model on Mistral AI's\nhosted services available at ",[68,6125,6126],{"href":6126,"rel":6127},"https:\u002F\u002Fmistral.ai\u002F",[6128],"nofollow",[17,6130,6131,6132,6135,6136,303,6139,303,6142,303,6145,6148,6149,6152],{},"The full text is the file ",[283,6133,6134],{},"LICENSE"," of the four repositories (",[283,6137,6138],{},"mistralai\u002FTimestral-5M",[283,6140,6141],{},"-28M",[283,6143,6144],{},"-123M",[283,6146,6147],{},"-209M",": the same\n1,695 bytes, sha256 ",[283,6150,6151],{},"648194727930df730890e9f9affdbcc5c930d406d6829559b25ca3d5a973fc8c","), and Tabularia keeps the same bytes\nbeside the group's recipe and in every image it builds.",[17,6154,6155,6156,6159,6160,6163,6164,6166,6167,6169],{},"This is the clause of the licence of Mistral AI's weights; the official file is authoritative for its full text and its\ninterpretation. ",[21,6157,6158],{},"Tabularia quotes the licence and never explains it",": the panel, the form of the node, the reports and the\nassistants say the clause word for word, in English in every language, or point to the official file. ",[21,6161,6162],{},"The administrator\ndecides, and takes the responsibility",": when enabling the group (or building it again, or changing the sizes) the panel shows\nthe clause, the sizes to download (on a group already built, ",[21,6165,470],{}," ticks the sizes of the version in use; a group never\nbuilt ticks all four), and a box «I have read the licence of the weights and accept it on behalf of my organisation.», which\nstays unticked until a person ticks it; ",[21,6168,476],{}," is disabled before.",[17,6171,6172,6173,1918,6175,6177,6178,6181,6182,6184],{},"The acceptance is recorded in the ",[68,6174,299],{"href":298},[283,6176,320],{}," (the licence's sha256, the\nsizes, who and when), and each version of the group keeps a line saying under which acceptance it was built, shown on the group's\ncard («Weights licence: Modified MIT (Mistral AI), accepted by … on …»). A version in use keeps running whatever the audit\nholds later; but with an audit retention set, once the row is gone the next build, including the automatic one after an\nupgrade, asks again, and until an administrator does the group waits as ",[21,6179,6180],{},"Licence to accept"," and its steps stop with a\nsentence. A Tabularia release that changes the licence's text always asks again. ",[21,6183,495],{}," stops the nodes; it does not\nwithdraw a past acceptance. Each report ends with the licence's text, the weights used (repository, revision, sha256) and who\naccepted it, and each MLflow run is tagged with the weights and the licence's sha256.",[3185,6186,4437],{"id":6187},"what-it-does",[17,6189,6190,6192,6193,6196,6197,6200,6201,6204],{},[21,6191,117],{}," forecasts each series from its own past with a model trained in advance, by its authors, on a very large\ncollection of other series: ",[21,6194,6195],{},"nothing is fitted on your data"," and nothing about it is learned or kept. For each series it\nwrites the median forecast and bands (by default the 90 % and the 80 % ones) for the next steps, and it can read series that go with\nit: ",[21,6198,6199],{},"past covariates"," (known up to the last observed value, such as a price) and ",[21,6202,6203],{},"known covariates"," (known also in the\nfuture, such as a planned promotion or the holidays).",[17,6206,6207,6212,6213,6216,6217,6219],{},[21,6208,6209,6210],{},"Choose it instead of ",[68,6211,2059],{"href":4411}," when you have many series (a series for each shop, product or channel, up to 10,000\nof them), a short history, a series that changes shape, or no time to look for orders: it forecasts all of them with the same\nsettings in seconds, with bands, and tells you how it did on the last steps it was not shown. ",[21,6214,6215],{},"Keep ARIMA"," when you want a model\nyou can read (its coefficients, its residual checks), a model you register and apply with ",[68,6218,58],{"href":2974},", or when the\nweights' licence does not suit you: ARIMA is Tabularia's own and free of any such condition. The two can run on the same table in\nthe same flow; the Timestral report compares its forecast with a plain seasonal one, not with ARIMA's.",[3185,6221,5243],{"id":6222},"the-form-1",[153,6224,6225,6234],{},[156,6226,6227],{"role":158},[160,6228,6229,6231],{"role":162},[164,6230,1270],{"role":166},[164,6232,6233],{"role":166},"What it is",[170,6235,6236,6251,6261,6270,6280,6290,6307,6320,6330,6349,6362,6372],{"role":158},[160,6237,6238,6248],{"role":162},[175,6239,6240,303,6242,303,6245],{"role":177,"data-label":1270,"data-place":179},[21,6241,2069],{},[21,6243,6244],{},"Value column",[21,6246,6247],{},"Frequency",[175,6249,6250],{"role":177,"data-label":6233,"data-place":183},"One row per period (per series); hourly (a date-time column), daily, weekly, monthly, quarterly, yearly or whole numbers. The value is empty in the future rows that carry known covariates",[160,6252,6253,6258],{"role":162},[175,6254,6255],{"role":177,"data-label":1270,"data-place":179},[21,6256,6257],{},"Series column",[175,6259,6260],{"role":177,"data-label":6233,"data-place":183},"One series for each value of this column; none: the table is one series",[160,6262,6263,6267],{"role":162},[175,6264,6265],{"role":177,"data-label":1270,"data-place":179},[21,6266,2081],{},[175,6268,6269],{"role":177,"data-label":6233,"data-place":183},"Steps in a season, for the seasonal naïve forecast and the scale of the errors (24, 7, 52, 12, 4 by default); 1: none",[160,6271,6272,6277],{"role":162},[175,6273,6274],{"role":177,"data-label":1270,"data-place":179},[21,6275,6276],{},"Model size",[175,6278,6279],{"role":177,"data-label":6233,"data-place":183},"5M, 28M (the default), 123M or 209M: the sizes your administrator downloaded. A larger size is a little better on the authors' benchmarks, slower and heavier in memory",[160,6281,6282,6287],{"role":162},[175,6283,6284],{"role":177,"data-label":1270,"data-place":179},[21,6285,6286],{},"Steps ahead",[175,6288,6289],{"role":177,"data-label":6233,"data-place":183},"1 to 1,024 (28 by default), after each series' last observed value. Not used with known covariates: their future rows are the horizon",[160,6291,6292,6297],{"role":162},[175,6293,6294],{"role":177,"data-label":1270,"data-place":179},[21,6295,6296],{},"Quantile levels",[175,6298,6299,6300,6303,6304,6306],{"role":177,"data-label":6233,"data-place":183},"The levels written as columns ",[283,6301,6302],{},"quantile_0.05","… from the 21 the model has (0.01, 0.05, 0.1 … 0.9, 0.95, 0.99); the median is the ",[283,6305,4990],{}," column",[160,6308,6309,6317],{"role":162},[175,6310,6311,303,6314],{"role":177,"data-label":1270,"data-place":179},[21,6312,6313],{},"Past covariates",[21,6315,6316],{},"Known covariates",[175,6318,6319],{"role":177,"data-label":6233,"data-place":183},"Up to 16 columns together (numbers, true or false, or categories). With known covariates the input holds the future rows, with the value empty",[160,6321,6322,6327],{"role":162},[175,6323,6324],{"role":177,"data-label":1270,"data-place":179},[21,6325,6326],{},"Steps kept out to test",[175,6328,6329],{"role":177,"data-label":6233,"data-place":183},"The last k observed values of each series are kept out, forecast from before them and measured. Empty: as many as the steps ahead; 0: no test and no measures",[160,6331,6332,6336],{"role":162},[175,6333,6334],{"role":177,"data-label":1270,"data-place":179},[21,6335,4980],{},[175,6337,6338,6341,6342,6344,6345,6348],{"role":177,"data-label":6233,"data-place":183},[623,6339,6340],{},"Refuse"," (the default; fill it in the flow with a calendar Left join and Fill nulls), ",[623,6343,811],{}," (a line between the neighbours) or ",[623,6346,6347],{},"the model's own"," (left to the model)",[160,6350,6351,6359],{"role":162},[175,6352,6353,303,6356],{"role":177,"data-label":1270,"data-place":179},[21,6354,6355],{},"Average with the negated series",[21,6357,6358],{},"No negative forecast…",[175,6360,6361],{"role":177,"data-label":6233,"data-place":183},"The library's defaults, both on: steadier and twice the time; a series that is never negative gets no negative forecast",[160,6363,6364,6369],{"role":162},[175,6365,6366],{"role":177,"data-label":1270,"data-place":179},[21,6367,6368],{},"Alpha",[175,6370,6371],{"role":177,"data-label":6233,"data-place":183},"The comparison's test (0.05)",[160,6373,6374,6378],{"role":162},[175,6375,6376],{"role":177,"data-label":1270,"data-place":179},[21,6377,1455],{},[175,6379,6380],{"role":177,"data-label":6233,"data-place":183},"The forecast table, or the table of the results",[3185,6382,4574],{"id":6383},"the-output-2",[17,6385,6386,6389,6390,303,6393,303,6395,303,6397,6399,6400,6403,6404,303,6406,99,6409,6412,6413,6416,6417,6420],{},[21,6387,6388],{},"The forecast table"," (the default) is one row per series and period: ",[283,6391,6392],{},"series",[283,6394,1618],{},[283,6396,4608],{},[283,6398,4990],{}," (the median),\nthe quantile columns, ",[283,6401,6402],{},"baseline"," (the seasonal naïve forecast), ",[283,6405,4616],{},[283,6407,6408],{},"is_holdout",[283,6410,6411],{},"is_forecast","; with ",[21,6414,6415],{},"Write the observed rows\ntoo"," on, the history comes first so that one table draws both. The time and the series keep the exact type of the input's columns.\nThe ",[21,6418,6419],{},"results table"," has the across-series measures and a row for each series.",[3185,6422,6424],{"id":6423},"what-the-report-says","What the report says",[17,6426,6427],{},"The first page has the licence line, the series, the model and its size, the horizon and the holdout, and:",[1626,6429,6430,6454],{},[649,6431,6432,1632,6435,6438,6439,6442,6443,1802,6446,6449,6450,6453],{},[21,6433,6434],{},"Measures, with no verdict",[21,6436,6437],{},"MASE"," of the forecast and of the seasonal naïve forecast on the held-out steps (a MASE\nbelow 1: an error smaller than the in-sample seasonal naïve's), the ",[21,6440,6441],{},"relative MASE"," (the two divided: below 1, Timestral's errors are the smaller), the\n",[21,6444,6445],{},"sMAPE",[21,6447,6448],{},"scaled pinball loss"," (the weighted quantile loss, WQL = 2 × the pinball loss ÷ the mean absolute value, comparable across series) and the ",[21,6451,6452],{},"coverage"," of the 80 % and 90 % bands\n(the share of the held-out steps inside them). What the means leave out is counted under them: the steps where the value and\nthe forecast are both 0 (sMAPE cannot say them) and the series whose relative MASE has no logarithm (a MASE of 0). The coverage has no test on purpose: the steps of one forecast are not independent,\nand a test would claim more certainty than the data hold. A series too short for its measures is forecast and says so.",[649,6455,6456,6459,6460,6463,6464,6467],{},[21,6457,6458],{},"One test, Wilcoxon's signed-rank test",", on the series' differences between the two MASEs (the pre-trained forecast against the\nseasonal naïve), two-sided, at the node's alpha: ",[623,6461,6462],{},"is its advantage more than the luck of these series?"," It needs at least two series\nwith their measures; with one series there is no test and the measures stay. With few series the test cannot reach a small p-value:\nfive series give 0.0625 at the best, so they can never be «supported» at 0.05, and the reading says so. When it rejects, the\nforecast ahead is the one whose ranks add up to more (the sign of the rank-biserial correlation, written as ",[283,6465,6466],{},"rank_biserial","),\nnot the sign of the median difference, which a few large differences can put on the other side. This is the only\nverdict the page gives.",[17,6469,6470,6471,303,6473,303,6476,99,6479,6482],{},"The next pages draw each series (the history, the bands, the median and the baseline, up to 12 of them), the holdout, the table of\nevery series' measures, the limits and how the report was computed, and end with the notes and the licence. The Excel has the sheets\n",[623,6472,2073],{},[623,6474,6475],{},"Checks",[623,6477,6478],{},"Reading",[623,6480,6481],{},"Licence","; the forecast itself is the node's output.",[3185,6484,5934],{"id":6485},"limits-and-refusals-1",[153,6487,6488,6496],{},[156,6489,6490],{"role":158},[160,6491,6492,6494],{"role":162},[164,6493,3005],{"role":166},[164,6495,3008],{"role":166},[170,6497,6498,6505,6512,6520,6528,6536,6544],{"role":158},[160,6499,6500,6502],{"role":162},[175,6501,3015],{"role":177,"data-label":3005,"data-place":179},[175,6503,6504],{"role":177,"data-label":3008,"data-place":183},"1,000,000 (the group's setting, which an administrator may change)",[160,6506,6507,6509],{"role":162},[175,6508,2073],{"role":177,"data-label":3005,"data-place":179},[175,6510,6511],{"role":177,"data-label":3008,"data-place":183},"10,000: more is refused («filter or aggregate first»)",[160,6513,6514,6517],{"role":162},[175,6515,6516],{"role":177,"data-label":3005,"data-place":179},"Context per series",[175,6518,6519],{"role":177,"data-label":3008,"data-place":183},"the model reads the last 32,768 values; a longer series is cut for the model, and noted",[160,6521,6522,6525],{"role":162},[175,6523,6524],{"role":177,"data-label":3005,"data-place":179},"Horizon, holdout",[175,6526,6527],{"role":177,"data-label":3008,"data-place":183},"1,024 steps; with known covariates, the future rows must follow the last value without a hole",[160,6529,6530,6533],{"role":162},[175,6531,6532],{"role":177,"data-label":3005,"data-place":179},"Covariates",[175,6534,6535],{"role":177,"data-label":3008,"data-place":183},"16, past and known together; a text one at most 1,000 values",[160,6537,6538,6541],{"role":162},[175,6539,6540],{"role":177,"data-label":3005,"data-place":179},"Memory, CPU, time",[175,6542,6543],{"role":177,"data-label":3008,"data-place":183},"4 GiB and 2 CPUs, up to 60 minutes (the group's settings); the node's own timeout within it",[160,6545,6546,6549],{"role":162},[175,6547,6548],{"role":177,"data-label":3005,"data-place":179},"Sizes",[175,6550,6551,6552,6554],{"role":177,"data-label":3008,"data-place":183},"only those the administrator downloaded; asking for another stops the step ",[21,6553,5366],{}," the Job with «Timestral-209M was not downloaded by this installation…»",[17,6556,6557,6558,6561],{},"After its first batch the node projects the total time, and ",[21,6559,6560],{},"if it will not fit the step's timeout it stops at once",", with the speed it\nmeasured and what to choose (a smaller size, fewer series, a longer timeout), instead of running to the time-out. It also refuses a series\nwith gaps (unless you choose to fill them), a duplicated time, a time off the frequency's grid, and covariates it cannot read.",[17,6563,6564,6567,6568,6571,6572,88],{},[21,6565,6566],{},"Measured"," (2 CPUs of a 2018 laptop, the weights warm in memory; a forecast and a holdout of 28 daily steps, which are two forecasts\na series; add about 2 seconds for Python and PyTorch): 100 series of 1,000 points take from 2 seconds (5M) to 48 seconds (209M), and\n7.5 seconds with 28M; 1,000 series of 100 points take from 4 to 72 seconds (28M: 12); 10,000 series of 100 points take 38 seconds with\n5M; one series of 100,000 points (the model reads 32,768) takes 1 to 16 seconds. The memory does not grow with the table: 28M peaks at\nabout 0.4 GB, 209M at about 1.3 GB. The image weighs ",[21,6569,6570],{},"about 1.5 GB with 5M and 28M and 2.8 GB with the four sizes"," (see\n",[68,6573,345],{"href":344},[3185,6575,5076],{"id":6576},"mlflow-and-no-model-1",[17,6578,6579,6580,6582,6583,6586,6587,303,6590,303,6593,307,6596,99,6599,6106,6602,5086,6605,6607,6608,6614],{},"A flow run is logged to MLflow like any other: the parameters, the measures of ",[283,6581,1635],{}," and of the comparison, ",[283,6584,6585],{},"series.\u003Clabel>.\u003Cmeasure>","\nfor the first 100 series, the results table and the report, and the tags ",[283,6588,6589],{},"tabularia.weights.repo",[283,6591,6592],{},".revision",[283,6594,6595],{},".sha256",[283,6597,6598],{},"tabularia.weights.licence_sha256",[283,6600,6601],{},"tabularia.size",[21,6603,6604],{},"There is no model to register",[623,6606,4404],{}," is not\noffered, and a run that sends one is refused with «a pre-trained forecast registers no model: its run is logged to MLflow». ",[21,6609,6610,6611,6613],{},"There is no\n",[68,6612,58],{"href":2974}," for it either",": nothing is estimated from your data, the «model» is Mistral AI's weights, and forecasting new\nrows is running this node again on them.",[17,6616,6617,5094,6619,6622,6623,6625,6626,6628,6629,6631,6632,6635,6636,6639],{},[623,6618,1021],{},[21,6620,6621],{},"Orders by channel: four weeks ahead"," (created with the sample data when the group is enabled, with\n28M when the installation holds it and otherwise its smallest size): the ",[21,6624,4960],{},"'s days from 1 July 2023 to 12 August 2026 are crossed\nwith the five sales channels and ",[21,6627,4967],{}," the orders counted by ",[21,6630,1908],{}," on the day and the channel; a day up to 15 July 2026\nwithout an order is a 0, the 28 days after are left empty (the future rows), and the calendar's ",[283,6633,6634],{},"festivo"," column (the Italian public\nholidays, Ferragosto among them) goes in as a ",[21,6637,6638],{},"known covariate",". Forecast (Timestral) forecasts the five series, with the last 28\ndays held out. It is never scheduled.",[501,6641,6643],{"id":6642},"volatility-garch-r","Volatility (GARCH) (R)",[17,6645,808,6646,4372,6649,6651,6652,329],{},[283,6647,6648],{},"garch",[21,6650,4375],{}," beside ARIMA. The R package is ",[283,6653,6654],{},"rugarch",[17,6656,6657,6658,6660,6661,6664,6665,6667,6668,6670,6671,6673,6674,6677,6678,6680,6681,329],{},"The prices of a market do not move by the same amount every day: calm weeks are followed by calm weeks and a bad day by\nmore bad days. ",[21,6659,75],{}," estimates how large the day's movement is ",[623,6662,6663],{},"expected"," to be, day by day, from the\nseries of prices or of returns, and says how long an agitation lasts, whether falls agitate more than rises, how heavy\nthe tails are, and how many days broke the 1-day value at risk it computes. It makes a ",[21,6666,1635],{},": a model card, so it\ncan be registered with ",[623,6669,4404],{}," and applied with ",[68,6672,58],{"href":2974}," (below). To forecast the ",[623,6675,6676],{},"level"," of a\nseries use ",[68,6679,2059],{"href":4411},"; to measure the risk over the next days by simulation use ",[68,6682,83],{"href":87},[17,6684,6685,6686,1802,6688,6690,6691,6693,6694,6697,6698,303,6701,6704],{},"The node asks for the ",[21,6687,2069],{},[21,6689,2073],{}," (a price or a return) and the ",[21,6692,2077],{},";\n",[21,6695,6696],{},"Trading days"," is the frequency ",[623,6699,6700],{},"Whole numbers (steps)",[283,6702,6703],{},"index",": each row is a step and the dates are only labels, so a series\nwith no weekends and no holidays has no gap to fill.",[153,6706,6707,6717],{},[156,6708,6709],{"role":158},[160,6710,6711,6713,6715],{"role":162},[164,6712,1270],{"role":166},[164,6714,4437],{"role":166},[164,6716,567],{"role":166},[170,6718,6719,6759,6785,6798,6818,6834,6845,6861,6874],{"role":158},[160,6720,6721,6726,6756],{"role":162},[175,6722,6723],{"role":177,"data-label":1270,"data-place":179},[21,6724,6725],{},"The series holds",[175,6727,6728,902,6731,6734,6735,6738,6739,6742,6743,6746,6747,6750,6751,6742,6753,6755],{"role":177,"data-label":4437,"data-place":183},[623,6729,6730],{},"Returns",[623,6732,6733],{},"Prices",": with prices the node computes the returns, ",[21,6736,6737],{},"log"," (ln P",[6740,6741,1737],"sub",{}," \u002F P",[6740,6744,6745],{},"t−1",") or ",[21,6748,6749],{},"simple"," (P",[6740,6752,1737],{},[6740,6754,6745],{}," − 1)",[175,6757,6758],{"role":177,"data-label":567,"data-place":183},"Returns, log",[160,6760,6761,6766,6783],{"role":162},[175,6762,6763],{"role":177,"data-label":1270,"data-place":179},[21,6764,6765],{},"Variance model",[175,6767,6768,303,6771,6774,6775,6778,6779,6782],{"role":177,"data-label":4437,"data-place":183},[21,6769,6770],{},"ARCH",[21,6772,6773],{},"GARCH"," (Bollerslev), ",[21,6776,6777],{},"GJR-GARCH"," (a fall adds to the variance more than a rise; Glosten, Jagannathan and Runkle) or ",[21,6780,6781],{},"EGARCH"," (Nelson: the log of the variance, so no sign constraints)",[175,6784,6773],{"role":177,"data-label":567,"data-place":183},[160,6786,6787,6792,6795],{"role":162},[175,6788,6789],{"role":177,"data-label":1270,"data-place":179},[21,6790,6791],{},"Orders",[175,6793,6794],{"role":177,"data-label":4437,"data-place":183},"ARCH lags 1 to 3, GARCH lags 0 to 3, AR and MA lags of the mean 0 to 5, a constant in the mean",[175,6796,6797],{"role":177,"data-label":567,"data-place":183},"(1, 1), no AR or MA, a constant",[160,6799,6800,6804,6816],{"role":162},[175,6801,6802],{"role":177,"data-label":1270,"data-place":179},[21,6803,1354],{},[175,6805,6806,303,6809,231,6812,6815],{"role":177,"data-label":4437,"data-place":183},[21,6807,6808],{},"Normal",[21,6810,6811],{},"Student t",[21,6813,6814],{},"skewed Student t"," of the errors (standardized: mean 0, variance 1)",[175,6817,6811],{"role":177,"data-label":567,"data-place":183},[160,6819,6820,6824,6832],{"role":162},[175,6821,6822],{"role":177,"data-label":1270,"data-place":179},[21,6823,870],{},[175,6825,6826,6828,6829],{"role":177,"data-label":4437,"data-place":183},[21,6827,5116],{}," (the quasi-maximum-likelihood sandwich, valid when the distribution is wrong) or ",[21,6830,6831],{},"classical",[175,6833,5116],{"role":177,"data-label":567,"data-place":183},[160,6835,6836,6840,6843],{"role":162},[175,6837,6838],{"role":177,"data-label":1270,"data-place":179},[21,6839,6286],{},[175,6841,6842],{"role":177,"data-label":4437,"data-place":183},"Forecasts of the volatility after the last row",[175,6844,5976],{"role":177,"data-label":567,"data-place":183},[160,6846,6847,6852,6858],{"role":162},[175,6848,6849],{"role":177,"data-label":1270,"data-place":179},[21,6850,6851],{},"Last returns kept out to test the VaR",[175,6853,6854,6855,6857],{"role":177,"data-label":4437,"data-place":183},"The last ",[623,6856,5921],{}," returns (0 to 1,000) are not used by the fit: the 1-day VaR is computed on them and backtested (Kupiec, Christoffersen)",[175,6859,6860],{"role":177,"data-label":567,"data-place":183},"0",[160,6862,6863,6868,6871],{"role":162},[175,6864,6865],{"role":177,"data-label":1270,"data-place":179},[21,6866,6867],{},"VaR level",[175,6869,6870],{"role":177,"data-label":4437,"data-place":183},"The level of the 1-day value at risk",[175,6872,6873],{"role":177,"data-label":567,"data-place":183},"99 %",[160,6875,6876,6880,6883],{"role":162},[175,6877,6878],{"role":177,"data-label":1270,"data-place":179},[21,6879,1455],{},[175,6881,6882],{"role":177,"data-label":4437,"data-place":183},"The volatility, one row per instant (default), or the results table",[175,6884,6885],{"role":177,"data-label":567,"data-place":183},"The volatility",[17,6887,6888,6891],{},[21,6889,6890],{},"The estimation scale."," The fit runs on the returns divided by their standard deviation and the results are brought\nback to the series' units; the notes of the report say the scale.",[3185,6893,6895],{"id":6894},"what-it-reports","What it reports",[17,6897,6898,6899,6902],{},"On the ",[21,6900,6901],{},"first page",", before any number is trusted:",[1626,6904,6905,6917,6931,6942],{},[649,6906,6907,6910,6911,6914,6915,329],{},[21,6908,6909],{},"Persistence"," (how much of today's variance carries to tomorrow) and the ",[21,6912,6913],{},"half-life"," of a shock, in steps and in the\nfrequency's own unit («about 23 trading days»); a persistence at 1 or above (an integrated variance) is said, and the\nhalf-life and the long-run volatility are ",[623,6916,1766],{},[649,6918,1703,6919,6922,6923,6926,6927,6930],{},[21,6920,6921],{},"volatility now"," (σ",[6740,6924,6925],{},"T+1",") and the ",[21,6928,6929],{},"long-run volatility"," under it.",[649,6932,6933,6934,6937,6938,6941],{},"For GJR and EGARCH, the ",[21,6935,6936],{},"asymmetry",", with its p-value; the ",[21,6939,6940],{},"tail"," (ν, the degrees of freedom, and for the skewed t the\nskew ξ, each with its interval); the news-impact curve in the pages after.",[649,6943,6944,6947,6948,6950,6951,6954,6955,6958,6959,99,6962,6965],{},[21,6945,6946],{},"The checks",", each a test whose p-value is read against the node's ",[21,6949,1639],{}," (0.05):\nthe weighted Ljung–Box test (Fisher and Gallagher) of the standardized residuals and of their squares (is there\nautocorrelation left in the mean, or ARCH left in the variance), the ARCH-LM test, ",[21,6952,6953],{},"Nyblom's stability test"," (the\njoint test and one per parameter, Holm-adjusted: do the parameters stay put over the sample), the sign-bias test (Engle\nand Ng), and with held-out returns the backtest of the 1-day VaR: ",[21,6956,6957],{},"Kupiec"," (does the VaR break as often as its level\nsays), ",[21,6960,6961],{},"Christoffersen's independence",[21,6963,6964],{},"conditional coverage",". A check that fails never stops the node: it is a row\nwith its verdict and its advice («volatility the model misses: raise an order, or try GJR or EGARCH»).",[17,6967,6968,6971,6972,6974,6975,6977],{},[21,6969,6970],{},"Verdicts only come from the tests."," The persistence, the half-life, the long-run volatility, the estimates, the\ninformation criteria and the count of violations are ",[21,6973,4876],{},": the report states them and never calls one good or\nbad. The VaR is a measure too; the verdict on it is Kupiec's test. Nyblom's p-values are computed by the node (the\npackage gives only three critical values, which would answer only three levels of alpha). With few violations expected\n(250 days at 99 % expect 2.5) the tests can see only a large error, and the report says the expected count beside each\nverdict. A parameter at a bound of its range (an ARCH coefficient of exactly 0 is the usual case) is a ",[21,6976,5645],{}," the\nreport names, not a failure.",[3185,6979,4574],{"id":6980},"the-output-3",[17,6982,6983,6984,6987,6988,6990,6991,303,6993,6996,6997,303,6999,303,7002,303,7005,7008,7009,307,7012,303,7014,7016,7017,7020,7021,303,7023,303,7025,303,7027,303,7030,303,7032,672,7034,7036,7037,99,7039,7041],{},"The default output ",[21,6985,6986],{},"Volatility"," is one row per instant and then the forecast rows: ",[283,6989,1618],{}," (the input's own type, kept to\nthe last digit), ",[283,6992,4608],{},[283,6994,6995],{},"return"," (with prices), ",[283,6998,5737],{},[283,7000,7001],{},"sigma",[283,7003,7004],{},"std_residual",[283,7006,7007],{},"var"," (the 1-day VaR), ",[283,7010,7011],{},"violation",[283,7013,6408],{},[283,7015,6411],{},". The first price has no return: its row is kept with the model's columns empty. The ",[21,7018,7019],{},"results\ntable"," has the ten columns of the other models: sections ",[283,7022,1635],{},[283,7024,1643],{},[283,7026,2883],{},[283,7028,7029],{},"backtest",[283,7031,4683],{},[283,7033,4692],{},[283,7035,4695],{},". The report is the same ",[21,7038,230],{},[21,7040,234],{}," as every model's.",[3185,7043,7045],{"id":7044},"predict-a-volatility-every-day-without-refitting","Predict: a volatility every day, without refitting",[17,7047,7048,7049,7051,7052,7055,7056,7058,7059,7061,7062,7065,7066,7068],{},"A registered GARCH is applied with ",[68,7050,58],{"href":2974}," to the returns (or prices) that come ",[21,7053,7054],{},"after"," the last day it\nsaw. The filter runs the model's parameters, fixed, from the state the card keeps (a few hundred bytes: the last shocks,\nvariances and returns, no series), and adds to each row ",[283,7057,1726],{}," (the volatility σ",[6740,7060,1737],{}," of that day given the days\nbefore it) and ",[283,7063,7064],{},"prediction_var"," (the 1-day VaR at the card's level). With ",[21,7067,6286],{}," it appends forecast rows after\nthe last one. The rules of continuity, checked before the Job:",[1626,7070,7071,7082,7088,7091],{},[649,7072,7073,7074,7077,7078,7081],{},"the rows are the ",[21,7075,7076],{},"consecutive periods right after the card's last day",", in order and ",[21,7079,7080],{},"none missing","; the first\nnot after the card's last day is refused («the rows start before the model's last day: Predict continues a series»), a\ngap is refused, a time held twice is refused, an empty value is refused, and a time of another kind than the model's too;",[649,7083,7084,7085,7087],{},"with the frequency ",[623,7086,6700],{}," on dates only the order is checked, as the fit does;",[649,7089,7090],{},"with prices the first return is from the card's last price; the output has one row per new price and no input column;",[649,7092,7093,7094,7096],{},"without ",[21,7095,6286],{},", a Predict with new rows adds no forecast rows, and one with none gives the card's own horizon,\nso the table is never empty; a variance that diverges is refused.",[17,7098,7099],{},"Predicting the rows a model was fitted on gives the fit's own volatility to within 1e-10. This is the daily use of the\nmodel: fitted monthly, applied each day.",[3185,7101,5934],{"id":7102},"limits-and-refusals-2",[153,7104,7105,7113],{},[156,7106,7107],{"role":158},[160,7108,7109,7111],{"role":162},[164,7110,3005],{"role":166},[164,7112,3008],{"role":166},[170,7114,7115,7126,7136,7144],{"role":158},[160,7116,7117,7119],{"role":162},[175,7118,5021],{"role":177,"data-label":3005,"data-place":179},[175,7120,7121,7122,7125],{"role":177,"data-label":3008,"data-place":183},"The group's 200,000 returns, an administrator may lower it; fewer than ",[21,7123,7124],{},"100"," returns are refused («too short»), and so is a training part shorter than the held-out part",[160,7127,7128,7130],{"role":162},[175,7129,3080],{"role":177,"data-label":3005,"data-place":179},[175,7131,7132,7135],{"role":177,"data-label":3008,"data-place":183},[21,7133,7134],{},"1,000 returns 2.6 s, 10,000 returns 7.8 s, 100,000 returns 59 s"," of R (the heaviest combination, AR(1)-GJR with a skewed t and 250 held out; GARCH(1,1) with a t takes 19 s at 100,000), on one CPU; the fit is most of it",[160,7137,7138,7141],{"role":162},[175,7139,7140],{"role":177,"data-label":3005,"data-place":179},"Memory",[175,7142,7143],{"role":177,"data-label":3008,"data-place":183},"364 MiB at 1,000 returns, 466 MiB at 100,000",[160,7145,7146,7149],{"role":162},[175,7147,7148],{"role":177,"data-label":3005,"data-place":179},"Steps ahead, held out, lags of the tests",[175,7150,7151],{"role":177,"data-label":3008,"data-place":183},"1,000 each",[17,7153,7154,7155,7157,7158,7161,7162,7164],{},"The node refuses, with a sentence and the way out: a series with gaps (the decomposition's rule), a constant series, a price\nthat is zero or negative, returns too small or too large to square, a series too short, a model no solver can fit. (A GJR whose\nfit lets a fall lower the variance is reported here; it is the ",[68,7156,83],{"href":87}," that cannot simulate it.)\n",[21,7159,7160],{},"Not in this node:"," several series at\nonce (a portfolio), regressors in the variance, a GARCH in the mean, long memory, regime switching, a trading calendar for\nthe future dates (with the frequency ",[623,7163,6700],{}," on dates, the forecast's times are calendar days: the step number is\nthe reliable one).",[3185,7166,267],{"id":7167},"mlflow",[17,7169,7170,7171,303,7173,303,7175,99,7177,7179,7180,7183,7184,7187,7188,7190],{},"The run is logged as every model's: the parameters, the numbers of ",[283,7172,1635],{},[283,7174,1643],{},[283,7176,2883],{},[283,7178,7029],{},", the results\ntable, the report and the model card (",[283,7181,7182],{},"model.json",", with the ",[283,7185,7186],{},"MLmodel","); ",[21,7189,4404],{}," makes the version\nPredict applies.",[17,7192,7193,5094,7195,7198,7199,4286,7201,3695,7204,303,7207,7209,7210,7213,7214,7217,7218,281,7220,7222,7223,88],{},[623,7194,1021],{},[21,7196,7197],{},"Durum wheat: volatility"," (created with the sample data when the time series group is\nenabled): ",[21,7200,1886],{},[283,7202,7203],{},"materia",[283,7205,7206],{},"grano_duro",[21,7208,738],{}," of the price to a decimal, ",[21,7211,7212],{},"Sort"," by the day, then\nVolatility (GARCH) on the prices: log returns, ",[21,7215,7216],{},"GJR-GARCH(1,1)",", skewed Student t, frequency ",[623,7219,6700],{},[283,7221,6703],{},"), 250\nreturns held out (",[68,7224,71],{"href":7225},"#trying-them-on-the-sample-data",[501,7227,7229],{"id":7228},"risk-simulation-r","Risk simulation (R)",[17,7231,808,7232,4372,7235,4376],{},[283,7233,7234],{},"risk_simulation",[21,7236,4375],{},[17,7238,7239,7240,6106,7247,7249,7250,1806,7253,7256,7257,7260,7261,7264,7265,7268,7269,7272,7273,7275,7276,7278],{},"The question of a risk office or of a purchasing office is not «what is the volatility» but ",[21,7241,7242,7243,7246],{},"«how much could I lose, and\nhow likely is a level, over the next ",[623,7244,7245],{},"h"," days»",[21,7248,83],{}," fits its own ARIMA or GARCH to the series, with the\nsame options and the same code as those nodes (the same options give the same estimates), and simulates thousands of\nfuture paths from the end of the series. From the paths it measures the risk: the ",[21,7251,7252],{},"value at risk",[21,7254,7255],{},"expected\nshortfall"," at the horizon and at each step, the ",[21,7258,7259],{},"probability of passing a level"," (and of ever having passed it before\nthe horizon), the ",[21,7262,7263],{},"maximum drawdown",", and the ",[21,7266,7267],{},"fan"," of the series. A risk simulation ",[21,7270,7271],{},"makes no model",": no model card,\nno ",[623,7274,4404],{}," (a run that sends one is refused with «a risk simulation registers no model: register the GARCH\nor ARIMA node instead»), no ",[68,7277,58],{"href":2974},"; the run is logged to MLflow like any other.",[17,7280,7281,7284,7285,7288,7289,7292,7293,7296,7297,7300],{},[21,7282,7283],{},"From a model on the canvas, in one click."," The menu of an ARIMA or of a GARCH node (right click, or ",[283,7286,7287],{},"Shift+F10"," on a\nPC and ",[283,7290,7291],{},"m"," on a Mac, then the arrows and Enter) has ",[21,7294,7295],{},"Simulate risk from this model",": it drops a Risk simulation node on\nthe ",[21,7298,7299],{},"same input"," as the model, selected, with the model's options copied (a default the model relies on is written as its\nvalue). An ARIMA with explanatory columns is refused with a sentence: the future values of the columns cannot be simulated.",[153,7302,7303,7313],{},[156,7304,7305],{"role":158},[160,7306,7307,7309,7311],{"role":162},[164,7308,1270],{"role":166},[164,7310,4437],{"role":166},[164,7312,567],{"role":166},[170,7314,7315,7336,7352,7363,7382,7401,7416,7433,7449,7461,7474,7499,7510,7521],{"role":158},[160,7316,7317,7322,7334],{"role":162},[175,7318,7319],{"role":177,"data-label":1270,"data-place":179},[21,7320,7321],{},"Model",[175,7323,7324,7326,7327,6746,7329,7326,7331,7333],{"role":177,"data-label":4437,"data-place":183},[21,7325,6773],{}," (its options as in ",[68,7328,75],{"href":79},[21,7330,2059],{},[68,7332,2059],{"href":4411},", with orders given or searched for, and no explanatory columns)",[175,7335,6773],{"role":177,"data-label":567,"data-place":183},[160,7337,7338,7343,7349],{"role":162},[175,7339,7340],{"role":177,"data-label":1270,"data-place":179},[21,7341,7342],{},"Simulated paths",[175,7344,7345,7346],{"role":177,"data-label":4437,"data-place":183},"The number of simulated futures, 100 to ",[21,7347,7348],{},"10,000,000",[175,7350,7351],{"role":177,"data-label":567,"data-place":183},"10,000",[160,7353,7354,7358,7361],{"role":162},[175,7355,7356],{"role":177,"data-label":1270,"data-place":179},[21,7357,6286],{},[175,7359,7360],{"role":177,"data-label":4437,"data-place":183},"The horizon, 1 to 1,000",[175,7362,5976],{"role":177,"data-label":567,"data-place":183},[160,7364,7365,7370,7380],{"role":162},[175,7366,7367],{"role":177,"data-label":1270,"data-place":179},[21,7368,7369],{},"Innovations",[175,7371,7372,7375,7376,7379],{"role":177,"data-label":4437,"data-place":183},[21,7373,7374],{},"Parametric"," (draws from the model's distribution) or ",[21,7377,7378],{},"resampled"," (the model's own standardized residuals resampled: filtered historical simulation, Barone-Adesi, Giannopoulos and Vosper; an ARIMA's residuals)",[175,7381,7374],{"role":177,"data-label":567,"data-place":183},[160,7383,7384,7389,7399],{"role":162},[175,7385,7386],{"role":177,"data-label":1270,"data-place":179},[21,7387,7388],{},"Which side is the risk",[175,7390,7391,7394,7395,7398],{"role":177,"data-label":4437,"data-place":183},[21,7392,7393],{},"Falls"," (a return, a stock, a cash balance) or ",[21,7396,7397],{},"rises"," (demand, costs, claims)",[175,7400,7393],{"role":177,"data-label":567,"data-place":183},[160,7402,7403,7410,7413],{"role":162},[175,7404,7405,303,7407],{"role":177,"data-label":1270,"data-place":179},[21,7406,6867],{},[21,7408,7409],{},"Expected shortfall level",[175,7411,7412],{"role":177,"data-label":4437,"data-place":183},"The levels of the two measures",[175,7414,7415],{"role":177,"data-label":567,"data-place":183},"99 %, 97.5 %",[160,7417,7418,7423,7430],{"role":162},[175,7419,7420],{"role":177,"data-label":1270,"data-place":179},[21,7421,7422],{},"Quantiles",[175,7424,7425,7426,7429],{"role":177,"data-label":4437,"data-place":183},"The fan's bands and the summary's ",[283,7427,7428],{},"quantile_\u003Cq>"," columns, up to nine, each in (0, 1)",[175,7431,7432],{"role":177,"data-label":567,"data-place":183},"1, 5, 25, 50, 75, 95, 99 %",[160,7434,7435,7440,7447],{"role":162},[175,7436,7437],{"role":177,"data-label":1270,"data-place":179},[21,7438,7439],{},"Level to watch",[175,7441,7442,7443,7446],{"role":177,"data-label":4437,"data-place":183},"A level, ",[21,7444,7445],{},"in the series' unit"," (a price when the series is prices, a return when it is returns, never a return for prices), whose crossing is counted",[175,7448,1286],{"role":177,"data-label":567,"data-place":183},[160,7450,7451,7456,7459],{"role":162},[175,7452,7453],{"role":177,"data-label":1270,"data-place":179},[21,7454,7455],{},"Position (an amount)",[175,7457,7458],{"role":177,"data-label":4437,"data-place":183},"An amount invested: the VaR and the expected shortfall are also given in money (position × the relative change), in the measures' table and in their readings",[175,7460,1286],{"role":177,"data-label":567,"data-place":183},[160,7462,7463,7468,7471],{"role":162},[175,7464,7465],{"role":177,"data-label":1270,"data-place":179},[21,7466,7467],{},"Maximum drawdown",[175,7469,7470],{"role":177,"data-label":4437,"data-place":183},"The maximum drawdown of each path",[175,7472,7473],{"role":177,"data-label":567,"data-place":183},"on",[160,7475,7476,7482,7496],{"role":162},[175,7477,7478,7481],{"role":177,"data-label":1270,"data-place":179},[21,7479,7480],{},"Risk variable"," (ARIMA)",[175,7483,7484,7485,7488,7489,7491,7492,7495],{"role":177,"data-label":4437,"data-place":183},"What an ARIMA's risk is measured on: the ",[21,7486,7487],{},"last"," value, the running ",[21,7490,3719],{}," (a month's demand) or the ",[21,7493,7494],{},"relative change"," from the last observed value",[175,7497,7498],{"role":177,"data-label":567,"data-place":183},"Last",[160,7500,7501,7505,7508],{"role":162},[175,7502,7503],{"role":177,"data-label":1270,"data-place":179},[21,7504,6851],{},[175,7506,7507],{"role":177,"data-label":4437,"data-place":183},"The backtest of the 1-day VaR, as in the GARCH node",[175,7509,6860],{"role":177,"data-label":567,"data-place":183},[160,7511,7512,7516,7519],{"role":162},[175,7513,7514],{"role":177,"data-label":1270,"data-place":179},[21,7515,1442],{},[175,7517,7518],{"role":177,"data-label":4437,"data-place":183},"Drives every draw",[175,7520,1445],{"role":177,"data-label":567,"data-place":183},[160,7522,7523,7527,7540],{"role":162},[175,7524,7525],{"role":177,"data-label":1270,"data-place":179},[21,7526,1455],{},[175,7528,7529,7532,7533,281,7536,7539],{"role":177,"data-label":4437,"data-place":183},[21,7530,7531],{},"Summary",", one row per step (default); ",[21,7534,7535],{},"the paths",[623,7537,7538],{},"The simulated paths","); or the results table",[175,7541,7531],{"role":177,"data-label":567,"data-place":183},[17,7543,7544,7547,7548,7551,7552,7554],{},[21,7545,7546],{},"The risk variable."," One quantity per path and step carries every measure: with a GARCH, the cumulative simple return\n(and with prices the fan is drawn in prices, an exact linear map of it); with an ARIMA, the last value, the running total\nor the relative change, as chosen. A ",[21,7549,7550],{},"position"," needs a relative change, so it is given with a GARCH or with an ARIMA whose\nrisk variable is ",[623,7553,7494],{},"; an ARIMA's other risk variables have no money to put it in, and the node refuses the combination.",[3185,7556,6895],{"id":7557},"what-it-reports-1",[1626,7559,7560,7578,7584,7600],{},[649,7561,7562,7565,7566,7569,7570,7573,7574,7577],{},[21,7563,7564],{},"VaR"," at the horizon and per step: the lower empirical quantile of the paths, with a ",[21,7567,7568],{},"distribution-free Monte Carlo\ninterval","; ",[21,7571,7572],{},"expected shortfall"," (Acerbi and Tasche), with its interval. They are written as ",[21,7575,7576],{},"values of the risk\nvariable"," («the 21-day return falls below −11.8 % with probability 1 %; when it does it averages −11.9 %»; a price; a\ndemand), and with a position in money, without a sign convention to learn; the expected shortfall's reading also says the\nquantile it averages beyond (the VaR at the expected shortfall's level). The upper tail mirrors them.",[649,7579,7580,7583],{},[21,7581,7582],{},"The probability of passing the threshold"," at each step, and of having passed it at any step before, each with a\nClopper–Pearson interval.",[649,7585,1703,7586,7588,7589,7592,7593,7595,7596,7599],{},[21,7587,7263],{}," (mean, median, VaR), the ",[21,7590,7591],{},"moments"," of the outcome (mean, sd, skewness, kurtosis) and the ",[21,7594,7267],{},":\nthe bands, the median, the last observations and 20 sample paths. The bands are located within a printed error\n(",[283,7597,7598],{},"band_error",": «the bands are drawn within 0.0004 % of the price»).",[649,7601,1703,7602,7605,7606,329],{},[21,7603,7604],{},"model's own checks"," and, with held-out returns, the ",[21,7607,7029],{},[17,7609,7610,7612,7613,7615,7616,7619],{},[21,7611,6970],{}," The VaR, the ES, the probabilities and the drawdown are ",[21,7614,4876],{}," with the\nprecision of the simulation said beside them, and the report never calls one good or bad («with 10,000 paths the 99 % VaR\nis known within −12.3 % … −11.3 %; four times the paths would halve that»). The verdicts are the model's own checks and\nthe backtest's Kupiec and Christoffersen tests, read against alpha. ",[21,7617,7618],{},"The simulation takes the fitted parameters as\nexact",": it does not carry their uncertainty, and the report says so.",[3185,7621,4574],{"id":7622},"the-output-4",[17,7624,7625,7626,7628,7629,303,7632,303,7634,303,7636,4621,7639,7641,7642,7645,7646,303,7649,2052,7651,99,7654,303,7657,7660,7661,99,7664,7667,7668,7670,7671,7674,7675,303,7678,303,7680,303,7682,303,7684,7687,7688,7690,7691,7694,7695,7698],{},"The default ",[21,7627,7531],{}," is one row per step: ",[283,7630,7631],{},"step",[283,7633,1618],{},[283,7635,5737],{},[283,7637,7638],{},"sd",[283,7640,7428],{}," per quantile asked, with a GARCH\nof prices a ",[283,7643,7644],{},"price_quantile_\u003Cq>"," for each and ",[283,7647,7648],{},"price_mean",[283,7650,7007],{},[283,7652,7653],{},"var_low",[283,7655,7656],{},"var_high",[283,7658,7659],{},"es"," with its interval,\n",[283,7662,7663],{},"prob_beyond",[283,7665,7666],{},"prob_crossed"," when there is a threshold, and ",[283,7669,7598],{},". The ",[21,7672,7673],{},"Paths"," output is the table of every\nsimulated value, sorted by path and step: ",[283,7676,7677],{},"path",[283,7679,7631],{},[283,7681,1618],{},[283,7683,2887],{},[283,7685,7686],{},"cumulative",", and with a GARCH ",[283,7689,7001],{}," (and\n",[283,7692,7693],{},"price"," with prices). It is ",[21,7696,7697],{},"large"," (10 million values are about 300 MB on disk): choose it only when the next step reads\nthe paths, with a few thousand of them.",[3185,7700,7702],{"id":7701},"the-memory-rule-the-seed-and-what-is-reproducible","The memory rule, the seed and what is reproducible",[17,7704,7705,7708,7709,7712,7713,7716],{},[21,7706,7707],{},"The node never holds the paths in memory."," The paths are simulated in ",[21,7710,7711],{},"batches"," sized from the Job's memory, written to\na Parquet file in the Job's disk (one row group a batch), and the measures are computed in streaming: a first pass while\nsimulating (counts, moments by pairwise merge, histograms) and a second pass over the file (the exact order statistics\nthe VaR and the ES need). So ",[21,7714,7715],{},"the peak does not depend on the number of paths",": at 10 million simulated values the\nsimulation's own growth stayed below 256 MiB, with the file of the paths on disk (the whole process, with R, the packages and\nthe model's fit, peaked at 550 to 580 MB of the group's 2 GiB). A batch is also bounded by the file's row group\n(1,048,576 rows). Before anything is allocated, the node checks its options against their bounds and that one block of paths\nfits the memory; after the first batch, before the second, it checks that the file will fit the Job's disk and that the projected\ntime will fit the node's timeout. Each refuses with a sentence and its numbers, and leaves no file.",[17,7718,7719,7722,7723,7726,7727,7730],{},[21,7720,7721],{},"The seed."," The draws come from independent streams, one per ",[21,7724,7725],{},"block of 1,000 paths"," (L'Ecuyer's combined recursive\ngenerator), so a path depends on the seed and its position only: ",[21,7728,7729],{},"the same seed gives the same numbers bit for bit",",\nwhatever the memory, the batch size or the machine's speed, and the first 2,000 paths of a run of 10,000 are the 2,000\npaths of a run of 2,000. A different seed is a different, equally valid sample. The report's numbers of the fit give the\nseed, the blocks, the batches and their size and the size of the file; the memory peak is in the Job's log (one line: the\npaths, the batches, the file, the memory before the simulation and the peak, the seconds).",[3185,7732,5934],{"id":7733},"limits-and-refusals-3",[153,7735,7736,7744],{},[156,7737,7738],{"role":158},[160,7739,7740,7742],{"role":162},[164,7741,3005],{"role":166},[164,7743,3008],{"role":166},[170,7745,7746,7754,7762,7786,7807,7814],{"role":158},[160,7747,7748,7751],{"role":162},[175,7749,7750],{"role":177,"data-label":3005,"data-place":179},"Paths, steps",[175,7752,7753],{"role":177,"data-label":3008,"data-place":183},"100 to 10,000,000 paths; 1 to 1,000 steps; at most nine quantiles; the fan draws 20 sample paths",[160,7755,7756,7759],{"role":162},[175,7757,7758],{"role":177,"data-label":3005,"data-place":179},"Rows of the series",[175,7760,7761],{"role":177,"data-label":3008,"data-place":183},"The GARCH variant: the group's 200,000; the ARIMA variant: 20,000 (ARIMA's own)",[160,7763,7764,7767],{"role":162},[175,7765,7766],{"role":177,"data-label":3005,"data-place":179},"Refused by the simulation",[175,7768,7769,7770,7773,7774,7777,7778,7781,7782,7785],{"role":177,"data-label":3008,"data-place":183},"Before it starts: ",[283,7771,7772],{},"too_few_paths"," (with 100 paths and a 99.9 % level no simulated value lies beyond the VaR: at least 1,000 paths); ",[283,7775,7776],{},"horizon_memory"," (one block of 1,000 paths of 1,000 steps needs about 400 MB besides the fitted model: fewer steps). After its first batch: ",[283,7779,7780],{},"too_many_values"," (the file would not fit the Job's disk); ",[283,7783,7784],{},"too_slow"," (the projection passes the node's timeout: fewer paths or steps, or a longer timeout, up to the group's)",[160,7787,7788,7791],{"role":162},[175,7789,7790],{"role":177,"data-label":3005,"data-place":179},"Refused by the model",[175,7792,7793,7796,7797,7569,7800,7803,7804],{"role":177,"data-label":3008,"data-place":183},[283,7794,7795],{},"negative_variance",": the package lets a GJR's γ go below −α, and then a large fall makes the variance negative and no path can be simulated: use GARCH or EGARCH; ",[283,7798,7799],{},"position_not_relative",[283,7801,7802],{},"zero_last"," (a relative change from a last value of 0 or below); ",[283,7805,7806],{},"last_missing",[160,7808,7809,7811],{"role":162},[175,7810,3080],{"role":177,"data-label":3005,"data-place":179},[175,7812,7813],{"role":177,"data-label":3008,"data-place":183},"The node, fit and checks included (about 3 s): 4.3 s at 10,000 simulated values, 6.2 s at a million, 26.5 s at 10 million, on one CPU (table below)",[160,7815,7816,7819],{"role":162},[175,7817,7818],{"role":177,"data-label":3005,"data-place":179},"Not in this node",[175,7820,7821],{"role":177,"data-label":3008,"data-place":183},"Several series at once, exogenous columns, the uncertainty of the parameters, an ES backtest, a multi-step VaR backtest, a trading calendar for the future dates",[17,7823,7824,7826],{},[21,7825,6566],{}," (one CPU, a GJR(1,1) with a skewed t on 800 returns, the node in one process, the paths on disk, R's start\nnot counted; the fit and the checks take about 3 s of the node):",[153,7828,7830,7855],{"class":7829},"is-stacked",[156,7831,7832],{"role":158},[160,7833,7834,7837,7840,7843,7846,7849,7852],{"role":162},[164,7835,7836],{"role":166},"Values",[164,7838,7839],{"role":166},"Paths × steps",[164,7841,7842],{"role":166},"Simulation (first pass, with the write)",[164,7844,7845],{"role":166},"Second pass",[164,7847,7848],{"role":166},"The node",[164,7850,7851],{"role":166},"File",[164,7853,7854],{"role":166},"Growth of memory",[170,7856,7857,7879,7901,7924,7946],{"role":158},[160,7858,7859,7862,7865,7868,7871,7874,7877],{"role":162},[175,7860,7861],{"role":177,"data-label":7836,"data-place":179},"10 thousand",[175,7863,7864],{"role":177,"data-label":7839,"data-place":183},"1,000 × 10",[175,7866,7867],{"role":177,"data-label":7842,"data-place":183},"0.36 s",[175,7869,7870],{"role":177,"data-label":7845,"data-place":183},"0.73 s",[175,7872,7873],{"role":177,"data-label":7848,"data-place":183},"4.3 s",[175,7875,7876],{"role":177,"data-label":7851,"data-place":183},"0.2 MB",[175,7878],{"role":177,"data-label":7854,"data-place":183},[160,7880,7881,7884,7887,7890,7893,7896,7899],{"role":162},[175,7882,7883],{"role":177,"data-label":7836,"data-place":179},"1 million",[175,7885,7886],{"role":177,"data-label":7839,"data-place":183},"100,000 × 10",[175,7888,7889],{"role":177,"data-label":7842,"data-place":183},"1.9 s",[175,7891,7892],{"role":177,"data-label":7845,"data-place":183},"1.1 s",[175,7894,7895],{"role":177,"data-label":7848,"data-place":183},"6.2 s",[175,7897,7898],{"role":177,"data-label":7851,"data-place":183},"22 MB",[175,7900],{"role":177,"data-label":7854,"data-place":183},[160,7902,7903,7906,7909,7912,7915,7918,7921],{"role":162},[175,7904,7905],{"role":177,"data-label":7836,"data-place":179},"10 million",[175,7907,7908],{"role":177,"data-label":7839,"data-place":183},"1,000,000 × 10",[175,7910,7911],{"role":177,"data-label":7842,"data-place":183},"16.9 s",[175,7913,7914],{"role":177,"data-label":7845,"data-place":183},"6.4 s",[175,7916,7917],{"role":177,"data-label":7848,"data-place":183},"26.5 s",[175,7919,7920],{"role":177,"data-label":7851,"data-place":183},"220 MB",[175,7922,7923],{"role":177,"data-label":7854,"data-place":183},"84 MB",[160,7925,7926,7928,7931,7934,7937,7940,7943],{"role":162},[175,7927,7905],{"role":177,"data-label":7836,"data-place":179},[175,7929,7930],{"role":177,"data-label":7839,"data-place":183},"100,000 × 100",[175,7932,7933],{"role":177,"data-label":7842,"data-place":183},"12.8 s",[175,7935,7936],{"role":177,"data-label":7845,"data-place":183},"5.2 s",[175,7938,7939],{"role":177,"data-label":7848,"data-place":183},"21.3 s",[175,7941,7942],{"role":177,"data-label":7851,"data-place":183},"228 MB",[175,7944,7945],{"role":177,"data-label":7854,"data-place":183},"117 MB",[160,7947,7948,7951,7953,7956,7959,7962,7965],{"role":162},[175,7949,7950],{"role":177,"data-label":7836,"data-place":179},"10 million, SARIMA",[175,7952,7908],{"role":177,"data-label":7839,"data-place":183},[175,7954,7955],{"role":177,"data-label":7842,"data-place":183},"12.1 s",[175,7957,7958],{"role":177,"data-label":7845,"data-place":183},"6.6 s",[175,7960,7961],{"role":177,"data-label":7848,"data-place":183},"20.5 s",[175,7963,7964],{"role":177,"data-label":7851,"data-place":183},"151 MB",[175,7966],{"role":177,"data-label":7854,"data-place":183},[17,7968,7969],{},"The skewed t's draws are most of the simulation. With the paths as output, 22 bytes a row on disk for a GARCH of returns\nand 15 for an ARIMA.",[3185,7971,5076],{"id":7972},"mlflow-and-no-model-2",[17,7974,7975,7976,7979],{},"A flow run is logged to MLflow: the parameters, the numbers of the measures at the horizon, of the backtest and of the fitted\nmodel's coefficients and checks, the results table and the report. ",[21,7977,7978],{},"The paths are not logged"," (they are the flow's data\nwhen the output is the paths).",[3185,7981,7983],{"id":7982},"trying-them-on-the-sample-data","Trying them on the sample data",[17,7985,7986,7987,7990,7991,281,7994,7997],{},"The sample data have a table of the ",[21,7988,7989],{},"prices of three raw materials"," the company buys, in the public tables:\n",[283,7992,7993],{},"commodity_prices",[283,7995,7996],{},"ref.quotazioni_materie_prime"," in the sample Postgres), the daily prices of durum wheat (euro a\ntonne), extra virgin olive oil and green coffee (euro a kilo) on the days the market is open, from 3 July 2023 to 15 July 2026.\nThe series is made to have volatility that clusters (the returns of a GJR-GARCH(1,1) with skewed Student t errors, one\nset of parameters for each material; the olive oil starts agitated and calms down). When the time series group is enabled,\nthe seed creates three flows:",[1626,7999,8000,8005,8018],{},[649,8001,8002,8004],{},[21,8003,7197],{},": Volatility (GARCH) on the durum wheat's prices, a GJR-GARCH(1,1) with a skewed t and the last\n250 days held out: the persistence and half-life, whether falls agitate more than rises, the tail, and the backtest of\nthe 1-day VaR.",[649,8006,8007,8010,8011,8013,8014,8017],{},[21,8008,8009],{},"Durum wheat: risk of the next month",": Risk simulation of the same model, 10,000 paths of 21 days, a ",[21,8012,7550],{}," of\n100,000 euro and a ",[21,8015,8016],{},"level to watch"," 10 % below the last price: the 99 % VaR and the expected shortfall in percent and in money,\nthe probability of ending or passing below the threshold, the drawdown and the fan.",[649,8019,8020,8023,8024,8026,8027,8034,8035,8037,8038,8041],{},[21,8021,8022],{},"Orders: will next month's orders exceed 1,000?",": Risk simulation on a business series, the orders per day (the\ncalendar's days Left join the orders, ",[21,8025,3906],{}," with 0, as the decomposition's flow does): an\n",[21,8028,8029,8030],{},"ARIMA(1,0,1)(0,1,1)",[8031,8032,8033],"span",{},"7",", the aggregate ",[21,8036,3719],{}," over 30 days, the ",[21,8039,8040],{},"upper"," tail, a level to watch of 1,000.",[17,8043,8044,8045,8047,8048,231,8051,8054,8055,8057],{},"They are never scheduled. Change the ",[21,8046,1886],{}," of the first two to ",[283,8049,8050],{},"olio_evo",[283,8052,8053],{},"caffe_verde"," to see another material; a\nGJR fitted to a short or calm series can come back with a negative α + γ and the risk node then refuses it\n(",[283,8056,7795],{},"): fit a GARCH or an EGARCH.",[3185,8059,8061],{"id":8060},"licences-of-the-packages","Licences of the packages",[17,8063,8064,8065,6106,8068,8070,8071,8074],{},"The group's R packages are installed from CRAN in your cluster, at the versions the recipe pins, when an administrator\nenables or rebuilds the group; ",[21,8066,8067],{},"Tabularia does not distribute them",[283,8069,6654],{}," 1.5-6 (licence declared on CRAN: GPL-3) and\nthe packages it needs that no other image of Tabularia had are listed with the licence ",[21,8072,8073],{},"each declares on CRAN","; Tabularia\nquotes them and does not interpret them.",[153,8076,8077,8090],{},[156,8078,8079],{"role":158},[160,8080,8081,8084,8087],{"role":162},[164,8082,8083],{"role":166},"Package",[164,8085,8086],{"role":166},"Version",[164,8088,8089],{"role":166},"Declared licence",[170,8091,8092,8104,8117,8130,8143,8155,8168,8180,8192,8205,8217,8229,8242,8254,8267,8279,8291,8303,8315,8327,8339,8351,8363],{"role":158},[160,8093,8094,8098,8101],{"role":162},[175,8095,8096],{"role":177,"data-label":8083,"data-place":179},[283,8097,6654],{},[175,8099,8100],{"role":177,"data-label":8086,"data-place":183},"1.5-6",[175,8102,8103],{"role":177,"data-label":8089,"data-place":183},"GPL-3",[160,8105,8106,8111,8114],{"role":162},[175,8107,8108],{"role":177,"data-label":8083,"data-place":179},[283,8109,8110],{},"Rsolnp",[175,8112,8113],{"role":177,"data-label":8086,"data-place":183},"2.0.1",[175,8115,8116],{"role":177,"data-label":8089,"data-place":183},"GPL-2",[160,8118,8119,8124,8127],{"role":162},[175,8120,8121],{"role":177,"data-label":8083,"data-place":179},[283,8122,8123],{},"ks",[175,8125,8126],{"role":177,"data-label":8086,"data-place":183},"1.15.3",[175,8128,8129],{"role":177,"data-label":8089,"data-place":183},"GPL-2 | GPL-3",[160,8131,8132,8137,8140],{"role":162},[175,8133,8134],{"role":177,"data-label":8083,"data-place":179},[283,8135,8136],{},"spd",[175,8138,8139],{"role":177,"data-label":8086,"data-place":183},"2.0-1",[175,8141,8142],{"role":177,"data-label":8089,"data-place":183},"GPL",[160,8144,8145,8150,8153],{"role":162},[175,8146,8147],{"role":177,"data-label":8083,"data-place":179},[283,8148,8149],{},"chron",[175,8151,8152],{"role":177,"data-label":8086,"data-place":183},"2.3-63",[175,8154,8116],{"role":177,"data-label":8089,"data-place":183},[160,8156,8157,8162,8165],{"role":162},[175,8158,8159],{"role":177,"data-label":8083,"data-place":179},[283,8160,8161],{},"SkewHyperbolic",[175,8163,8164],{"role":177,"data-label":8086,"data-place":183},"0.4-2",[175,8166,8167],{"role":177,"data-label":8089,"data-place":183},"GPL (≥ 2)",[160,8169,8170,8175,8178],{"role":162},[175,8171,8172],{"role":177,"data-label":8083,"data-place":179},[283,8173,8174],{},"GeneralizedHyperbolic",[175,8176,8177],{"role":177,"data-label":8086,"data-place":183},"0.8-7",[175,8179,8167],{"role":177,"data-label":8089,"data-place":183},[160,8181,8182,8187,8190],{"role":162},[175,8183,8184],{"role":177,"data-label":8083,"data-place":179},[283,8185,8186],{},"DistributionUtils",[175,8188,8189],{"role":177,"data-label":8086,"data-place":183},"0.6-2",[175,8191,8167],{"role":177,"data-label":8089,"data-place":183},[160,8193,8194,8199,8202],{"role":162},[175,8195,8196],{"role":177,"data-label":8083,"data-place":179},[283,8197,8198],{},"nloptr",[175,8200,8201],{"role":177,"data-label":8086,"data-place":183},"2.2.1",[175,8203,8204],{"role":177,"data-label":8089,"data-place":183},"LGPL (≥ 3)",[160,8206,8207,8212,8215],{"role":162},[175,8208,8209],{"role":177,"data-label":8083,"data-place":179},[283,8210,8211],{},"numDeriv",[175,8213,8214],{"role":177,"data-label":8086,"data-place":183},"2016.8-1.1",[175,8216,8116],{"role":177,"data-label":8089,"data-place":183},[160,8218,8219,8224,8227],{"role":162},[175,8220,8221],{"role":177,"data-label":8083,"data-place":179},[283,8222,8223],{},"truncnorm",[175,8225,8226],{"role":177,"data-label":8086,"data-place":183},"1.0-9",[175,8228,8167],{"role":177,"data-label":8089,"data-place":183},[160,8230,8231,8236,8239],{"role":162},[175,8232,8233],{"role":177,"data-label":8083,"data-place":179},[283,8234,8235],{},"future",[175,8237,8238],{"role":177,"data-label":8086,"data-place":183},"1.82.0",[175,8240,8241],{"role":177,"data-label":8089,"data-place":183},"Apache-2.0",[160,8243,8244,8249,8252],{"role":162},[175,8245,8246],{"role":177,"data-label":8083,"data-place":179},[283,8247,8248],{},"future.apply",[175,8250,8251],{"role":177,"data-label":8086,"data-place":183},"1.21.0",[175,8253,8167],{"role":177,"data-label":8089,"data-place":183},[160,8255,8256,8261,8264],{"role":162},[175,8257,8258],{"role":177,"data-label":8083,"data-place":179},[283,8259,8260],{},"globals",[175,8262,8263],{"role":177,"data-label":8086,"data-place":183},"0.20.0",[175,8265,8266],{"role":177,"data-label":8089,"data-place":183},"LGPL (≥ 2.1)",[160,8268,8269,8274,8277],{"role":162},[175,8270,8271],{"role":177,"data-label":8083,"data-place":179},[283,8272,8273],{},"listenv",[175,8275,8276],{"role":177,"data-label":8086,"data-place":183},"1.1.0",[175,8278,8241],{"role":177,"data-label":8089,"data-place":183},[160,8280,8281,8286,8289],{"role":162},[175,8282,8283],{"role":177,"data-label":8083,"data-place":179},[283,8284,8285],{},"parallelly",[175,8287,8288],{"role":177,"data-label":8086,"data-place":183},"1.50.0",[175,8290,8266],{"role":177,"data-label":8089,"data-place":183},[160,8292,8293,8298,8301],{"role":162},[175,8294,8295],{"role":177,"data-label":8083,"data-place":179},[283,8296,8297],{},"FNN",[175,8299,8300],{"role":177,"data-label":8086,"data-place":183},"1.1.4.1",[175,8302,8167],{"role":177,"data-label":8089,"data-place":183},[160,8304,8305,8310,8313],{"role":162},[175,8306,8307],{"role":177,"data-label":8083,"data-place":179},[283,8308,8309],{},"kernlab",[175,8311,8312],{"role":177,"data-label":8086,"data-place":183},"0.9-33",[175,8314,8116],{"role":177,"data-label":8089,"data-place":183},[160,8316,8317,8322,8325],{"role":162},[175,8318,8319],{"role":177,"data-label":8083,"data-place":179},[283,8320,8321],{},"mclust",[175,8323,8324],{"role":177,"data-label":8086,"data-place":183},"6.1.4",[175,8326,8167],{"role":177,"data-label":8089,"data-place":183},[160,8328,8329,8334,8337],{"role":162},[175,8330,8331],{"role":177,"data-label":8083,"data-place":179},[283,8332,8333],{},"gmp",[175,8335,8336],{"role":177,"data-label":8086,"data-place":183},"0.7-5.1",[175,8338,8167],{"role":177,"data-label":8089,"data-place":183},[160,8340,8341,8346,8349],{"role":162},[175,8342,8343],{"role":177,"data-label":8083,"data-place":179},[283,8344,8345],{},"multicool",[175,8347,8348],{"role":177,"data-label":8086,"data-place":183},"1.0.2",[175,8350,8116],{"role":177,"data-label":8089,"data-place":183},[160,8352,8353,8358,8361],{"role":162},[175,8354,8355],{"role":177,"data-label":8083,"data-place":179},[283,8356,8357],{},"mvtnorm",[175,8359,8360],{"role":177,"data-label":8086,"data-place":183},"1.4-2",[175,8362,8116],{"role":177,"data-label":8089,"data-place":183},[160,8364,8365,8370,8373],{"role":162},[175,8366,8367],{"role":177,"data-label":8083,"data-place":179},[283,8368,8369],{},"pracma",[175,8371,8372],{"role":177,"data-label":8086,"data-place":183},"2.4.6",[175,8374,8375],{"role":177,"data-label":8089,"data-place":183},"GPL (≥ 3)",[17,8377,8378,8379,8381,8382,303,8384,303,8386,303,8388,303,8390,99,8392,7569,8394,672,8396,8398,8399,8402,8403,8406],{},"Six of them declare ",[21,8380,8116],{}," only: ",[283,8383,8110],{},[283,8385,8309],{},[283,8387,8345],{},[283,8389,8357],{},[283,8391,8149],{},[283,8393,8211],{},[283,8395,8211],{},[283,8397,8357],{}," were already in two images of Tabularia. The group also installs the system library ",[283,8400,8401],{},"libgmp-dev"," (GMP). The\nspecification of this piece (",[283,8404,8405],{},"docs\u002Fspecs\u002Fgarch-risk.md"," in the repository, «The package and the image») has the same list and the method of the check; it advises\na legal reading before a built image is distributed, as for the pre-trained forecasting group.",[501,8408,131],{"id":8409},"bayesian-model",[17,8411,808,8412,6089,8415,8417,8418,8420,8421,8423,8424,8427],{},[283,8413,8414],{},"bayes_model",[21,8416,127],{}," (Python). It is a node of its own in a flow\n(",[21,8419,131],{},"), not the Model node: a Model node that names it is refused, with the way out («add Bayesian model from the\npalette»). It has two variants, ",[283,8422,2729],{}," (the draws of the posterior, by Stan's No-U-Turn sampler) and ",[283,8425,8426],{},"prior_predictive"," (draws\nfrom the priors alone, before the data are seen), and it hands on its summary, its draws or its replicated data, or the ten\ncolumns alone.",[17,8429,8430,8431,8433,8434,8436,8437,329],{},"Its report is drawn from the ten columns the run wrote and nothing else. The first page says the saved model and its version, the\nrows used and left out, the draws and the facts of the sampler; then come the posterior summary of each quantity (mean, standard\ndeviation, three quantiles, R-hat, effective sample sizes, the standard error of the mean and the contraction of the prior), the\ndata the model bound (with the mean and the standard deviation of a standardized column) and the notes. The diagnostics have\ntheir own pages and charts, and so do the predictive checks: the posterior predictive check after a ",[283,8432,2729],{}," run, and the prior\npredictive check of the ",[283,8435,8426],{}," variant, both drawn on the scale of the outcome's column.\nEvery diagnostic is a measure or a fact with what it measures: the report gives no verdict. How to draw the model, its priors,\nits expressions, its saved versions and its assistant, and how an administrator sizes the group, are in\n",[68,8438,127],{"href":8439},"\u002Fdocs\u002Fcapabilities\u002Fbayesian-models",[17,8441,8442,8443,8446,8447,8449],{},"The node records in ",[68,8444,267],{"href":8445},"#mlflow"," without the draws, and ",[21,8448,58],{}," does not apply a Bayesian model: a version that names\none is refused.",[148,8451,4574],{"id":8452},"the-output-5",[17,8454,8455,8456,8458,8459,8463,8464,303,8467,303,8469,303,8472,303,8475,303,8478,303,8481,303,8484,303,8486,99,8489,8492,8493,4286,8495,8497],{},"Every model writes the same ",[21,8457,5670],{}," as the ",[68,8460,8462],{"href":8461},"\u002Fdocs\u002Fcapabilities\u002Fstatistics#the-output","statistical tests",":\n",[283,8465,8466],{},"section",[283,8468,6676],{},[283,8470,8471],{},"level_2",[283,8473,8474],{},"stat",[283,8476,8477],{},"key",[283,8479,8480],{},"x0",[283,8482,8483],{},"x1",[283,8485,2887],{},[283,8487,8488],{},"text",[283,8490,8491],{},"ord",", one fact\na row, the key unique and a number that is not finite empty. A flow can read it like any\nother table, and a ",[21,8494,1886],{},[283,8496,8466],{}," is how you take the coefficients out. The sections:",[153,8499,8500,8510],{},[156,8501,8502],{"role":158},[160,8503,8504,8507],{"role":162},[164,8505,8506],{"role":166},"Section",[164,8508,8509],{"role":166},"Holds",[170,8511,8512,8529,8544,8562,8573,8582,8591,8606,8615],{"role":158},[160,8513,8514,8518],{"role":162},[175,8515,8516],{"role":177,"data-label":8506,"data-place":179},[283,8517,1635],{},[175,8519,8520,8521,8524,8525,8528],{"role":177,"data-label":8509,"data-place":183},"The fit: rows used, rows left out, the model's numbers (R², AIC, AUC, concordance…), and texts: the model, the variant, the formula in symbols, the software, the group's version, whether the rows came from a trial or a run, and a ",[283,8522,8523],{},"note_…"," row for every doubt the numbers raised (few events for the terms, a boundary λ, so many rows that every test rejects). For the linear model, survival, ARIMA and customer lifetime a note's text is an id with its values, ",[283,8526,8527],{},"@curves_cross pairs=A%20×%20B"," (a space, a comma or a % in a value written %20, %2C, %25), which the report says in the page's language",[160,8530,8531,8535],{"role":162},[175,8532,8533],{"role":177,"data-label":8506,"data-place":179},[283,8534,1643],{},[175,8536,8537,8538,8541,8542],{"role":177,"data-label":8509,"data-place":183},"One row per term and statistic: estimate, standard error, statistic, p-value, interval, odds or hazard ratio, VIF, and ",[283,8539,8540],{},"significance"," with R's codes. For a category, the level is in ",[283,8543,8471],{},[160,8545,8546,8550],{"role":162},[175,8547,8548],{"role":177,"data-label":8506,"data-place":179},[283,8549,2883],{},[175,8551,8552,8553,303,8556,303,8558,8561],{"role":177,"data-label":8509,"data-place":183},"One row per check and statistic: ",[283,8554,8555],{},"h0",[283,8557,4764],{},[283,8559,8560],{},"advice",", the statistic, its degrees of freedom, the p-value, its stars and the numbers of the rows the check names",[160,8563,8564,8570],{"role":162},[175,8565,8566,303,8568],{"role":177,"data-label":8506,"data-place":179},[283,8567,897],{},[283,8569,1659],{},[175,8571,8572],{"role":177,"data-label":8509,"data-place":183},"The path of a penalty (λ against the error, with its band and the terms kept), and the candidates of an automatic choice: the orders of ARIMA, the distributions of parametric survival (log-likelihood, AIC, BIC, ΔAIC, Akaike weight, status), the purchase models of customer lifetime",[160,8574,8575,8579],{"role":162},[175,8576,8577],{"role":177,"data-label":8506,"data-place":179},[283,8578,1647],{},[175,8580,8581],{"role":177,"data-label":8509,"data-place":183},"Parametric survival: the distribution's own parameters (shape, σ, Q…), per stratum, with their intervals",[160,8583,8584,8588],{"role":162},[175,8585,8586],{"role":177,"data-label":8506,"data-place":179},[283,8587,3714],{},[175,8589,8590],{"role":177,"data-label":8509,"data-place":183},"Customer lifetime: the twenty customers of highest value, with their frequency, recency, age, P(alive), expected purchases and spend",[160,8592,8593,8600],{"role":162},[175,8594,8595,303,8597],{"role":177,"data-label":8506,"data-place":179},[283,8596,1651],{},[283,8598,8599],{},"pair",[175,8601,8602,8603,8605],{"role":177,"data-label":8509,"data-place":183},"Kaplan–Meier: each stratum, and each pair of strata; for parametric survival, the ",[21,8604,1655],{}," of each stratum: its median, quantiles and survival at the times asked",[160,8607,8608,8612],{"role":162},[175,8609,8610],{"role":177,"data-label":8506,"data-place":179},[283,8611,177],{},[175,8613,8614],{"role":177,"data-label":8509,"data-place":183},"The confusion matrix; for customer lifetime, the map of P(alive) by frequency and recency",[160,8616,8617,8627],{"role":162},[175,8618,8619,303,8621,303,8623,303,8625],{"role":177,"data-label":8506,"data-place":179},[283,8620,4686],{},[283,8622,4683],{},[283,8624,4689],{},[283,8626,4692],{},[175,8628,8629],{"role":177,"data-label":8509,"data-place":183},"What the charts draw: points, lines with their bands, the correlogram's lags, the histogram's bins. At most 2,000 points a series, fewer when the results would pass 100,000 rows: the series then share what is left. Above that a sample with the seed, keeping the ten most extreme points, labelled",[17,8631,8632,8633,4580],{},"What the node hands to the step after it is the ",[21,8634,1455],{},[153,8636,8637,8645],{},[156,8638,8639],{"role":158},[160,8640,8641,8643],{"role":162},[164,8642,7321],{"role":166},[164,8644,1455],{"role":166},[170,8646,8647,8673,8684,8708,8719,8730,8741,8756],{"role":158},[160,8648,8649,8652],{"role":162},[175,8650,8651],{"role":177,"data-label":7321,"data-place":179},"Linear, logistic, Cox",[175,8653,8654,8656,8657,8659,8660,303,8663,303,8665,303,8667,303,8669,8672],{"role":177,"data-label":1455,"data-place":183},[21,8655,1458],{}," (the default), or ",[21,8658,1465],{},", the input's columns with the fitted values added (",[283,8661,8662],{},"pred_fitted",[283,8664,2612],{},[283,8666,2615],{},[283,8668,2618],{},[283,8670,8671],{},"pred_risk","…). The input must not already have a column with one of those names",[160,8674,8675,8677],{"role":162},[175,8676,1115],{"role":177,"data-label":7321,"data-place":179},[175,8678,8679,902,8681],{"role":177,"data-label":1455,"data-place":183},[21,8680,1458],{},[21,8682,8683],{},"the survival table",[160,8685,8686,8688],{"role":162},[175,8687,1230],{"role":177,"data-label":7321,"data-place":179},[175,8689,8690,8656,8692,8694,8695,303,8697,303,8699,303,8701,303,8703,303,8705,8707],{"role":177,"data-label":1455,"data-place":183},[21,8691,1458],{},[21,8693,1465],{},": the input's columns with the median time, the quantiles and the survival at the times asked, each with its interval, and the residuals (",[283,8696,1675],{},[283,8698,1678],{},[283,8700,1682],{},[283,8702,1686],{},[283,8704,1689],{},[283,8706,1693],{},"…)",[160,8709,8710,8712],{"role":162},[175,8711,2059],{"role":177,"data-label":7321,"data-place":179},[175,8713,8714,902,8716],{"role":177,"data-label":1455,"data-place":183},[21,8715,1458],{},[21,8717,8718],{},"the series and its forecast",[160,8720,8721,8723],{"role":162},[175,8722,65],{"role":177,"data-label":7321,"data-place":179},[175,8724,8725,8727,8728],{"role":177,"data-label":1455,"data-place":183},[21,8726,4600],{}," (the default: the trend, the seasons and the remainder, one row per instant), or ",[21,8729,3443],{},[160,8731,8732,8734],{"role":162},[175,8733,75],{"role":177,"data-label":7321,"data-place":179},[175,8735,8736,8738,8739],{"role":177,"data-label":1455,"data-place":183},[21,8737,6885],{}," (the default: one row per instant with its σ, residual and 1-day VaR, then the forecast rows), or ",[21,8740,3443],{},[160,8742,8743,8745],{"role":162},[175,8744,83],{"role":177,"data-label":7321,"data-place":179},[175,8746,8747,8750,8751,8753,8754],{"role":177,"data-label":1455,"data-place":183},[21,8748,8749],{},"The summary"," (the default: one row per step, with the quantiles, the VaR and the expected shortfall and their intervals), ",[21,8752,7535],{}," (every simulated value) or ",[21,8755,3443],{},[160,8757,8758,8761],{"role":162},[175,8759,8760],{"role":177,"data-label":7321,"data-place":179},"Customer lifetime value, BG\u002FBB",[175,8762,8763,8765,8766,303,8768,303,8770,8772,8773],{"role":177,"data-label":1455,"data-place":183},[21,8764,1668],{}," (the default, unlike the others): the input's columns with ",[283,8767,3493],{},[283,8769,3496],{},[283,8771,3510],{}," and the rest, or ",[21,8774,3443],{},[17,8776,8777],{},"The model's own results are kept with the run whatever the output is, so the report can always\nbe drawn.",[17,8779,8780,8781,8784,8785,99,8787,8789,8790,8792,8793,303,8796,99,8799,8802,8803,8806,8807,8809,8810,4707,8812,8814,8815,8817,8818,8820,8821,8823],{},"The columns' types are known before the model runs, and are what a run writes: the model's\ncolumns are numbers (",[283,8782,8783],{},"Float64",") but for ",[283,8786,2618],{},[283,8788,2622],{},", texts; in the survival\ntable ",[283,8791,1651],{}," is a text and ",[283,8794,8795],{},"n_risk",[283,8797,8798],{},"n_event",[283,8800,8801],{},"n_censor"," whole numbers (",[283,8804,8805],{},"Int32","); in the\nforecast ",[283,8808,1618],{}," has the exact type of the series' time column (an ",[283,8811,4706],{},[283,8813,4706],{},", a date a\ndate, a timestamp its unit and zone; the forecast of ",[21,8816,58],{}," too) and ",[283,8819,6411],{}," is true or false; the results table has the statistics' types. In the\nrows output of an R model (all but XGBoost and CatBoost) a whole-number column of the input comes\nback as ",[283,8822,8805],{},". The catalogue declares these types, and a test checks them against what the\nrunners write.",[148,8825,8827],{"id":8826},"the-report-tab","The Report tab",[17,8829,1703,8830,8832,8833,99,8835,8838],{},[21,8831,31],{}," tab, beside ",[21,8834,213],{},[21,8836,8837],{},"Chart",", draws the pages of the model: A4, in the\nlanguage of the interface (English, Italian, German, Spanish or French).",[646,8840,8841,8844,8847,8859,8862,8868,8871,8874,8884],{},[649,8842,8843],{},"A header with the model's name, the step's name, the date and the sample line when there is\none.",[649,8845,8846],{},"A summary: four cards chosen for the model (for the linear: rows, R², adjusted R², σ), and\nthe formula.",[649,8848,8849,8852,8853,8855,8856,8858],{},[21,8850,8851],{},"The assumptions, on the first page",": one row per check, with what it checks, the null\nhypothesis, the statistic, the degrees of freedom, the p-value with R's stars, the verdict\nin words and with a mark, and the advice. Parametric survival and customer lifetime also\nlist, under the checks, the ",[21,8854,4876],{}," that have no verdict, and write the significance level\n(",[68,8857,1435],{"href":1434},"). Above 5,000 rows a sentence says that the tests\nreject very small departures and to read the charts.",[649,8860,8861],{},"The coefficients with their stars, and an interval chart (the odds ratios and hazard ratios\non a log scale).",[649,8863,8864,8865,8867],{},"The fit: every number of the ",[283,8866,1635],{}," section.",[649,8869,8870],{},"The diagnostic charts, each under the check it illustrates: residuals against fitted\nvalues, the normal Q–Q chart, scale–location, residuals against leverage, the ROC curve,\nthe calibration, Schoenfeld, martingale residuals, the correlograms, the forecast.",[649,8872,8873],{},"Strata, pairs, the confusion matrix, the forecast or the candidates, where the model has them.",[649,8875,8876,8879,8880,8883],{},[21,8877,8878],{},"The method explained",": under the summary, the checks, the coefficients and the model's own blocks, one to\nthree sentences in italics read the run's numbers (a verdict only from a p-value against the node's α, the checks\nthat reject named; every other number a measure, said without a word of judgement), and a last page ",[21,8881,8882],{},"How this\nreport was computed"," holds a paragraph for each analysis that ran and the formulas (the sheet «Reading» in Excel).",[649,8885,8886],{},"The notes, the rows left out, the software and the group's version, and a footer.",[17,8888,8889,303,8892,99,8895,8898,8899,8902,8903,8905,8906,8908,8909,8912],{},[21,8890,8891],{},"−",[21,8893,8894],{},"+",[21,8896,8897],{},"Fit width"," change the zoom, ",[21,8900,8901],{},"Expand"," raises the panel. ",[21,8904,230],{}," downloads\nthe pages; ",[21,8907,234],{}," the tables of the assumptions, the coefficients, the fit and the strata or\nthe forecast, one sheet each, with the numbers and not the charts. As for the statistics, the\nreport is drawn from the results the run kept: ",[21,8910,8911],{},"no query reaches your data to draw it",", and\nno Job starts. It is not an object in a folder, so it cannot be saved, scheduled or put on a\ndashboard; a run of the flow can send its PDF to MLflow (below).",[148,8914,8916],{"id":8915},"how-a-check-speaks-verdicts-facts-and-measures","How a check speaks: verdicts, facts and measures",[17,8918,8919,8920,8923,8924,8927],{},"The checks that open a report do not all say the same kind of thing. For ",[21,8921,8922],{},"parametric survival and the\ncustomer lifetime nodes"," one rule holds: ",[21,8925,8926],{},"no number of Tabularia's decides a verdict."," A check\nspeaks in one of three ways, and the report marks which.",[153,8929,8930,8941],{},[156,8931,8932],{"role":158},[160,8933,8934,8936,8938],{"role":162},[164,8935,5623],{"role":166},[164,8937,208],{"role":166},[164,8939,8940],{"role":166},"Where it comes from",[170,8942,8943,8972,8989],{"role":158},[160,8944,8945,8949,8956],{"role":162},[175,8946,1572,8947],{"role":177,"data-label":5623,"data-place":179},[21,8948,5635],{},[175,8950,8951,231,8953,8955],{"role":177,"data-label":208,"data-place":183},[21,8952,2894],{},[21,8954,2767],{},", with the statistic, the degrees of freedom, the p-value, its stars and the advice",[175,8957,8958,8959,281,8962,8964,8965,8968,8969,8971],{"role":177,"data-label":8940,"data-place":1289},"A test with a p-value against the node's ",[21,8960,8961],{},"significance level",[283,8963,1639],{},"): ",[21,8966,8967],{},"p ≥ alpha is ok, p \u003C alpha is failed",". The level is written under the checks. When the test cannot be made, ",[21,8970,1766],{},", with the reason",[160,8973,8974,8978,8986],{"role":162},[175,8975,1572,8976],{"role":177,"data-label":5623,"data-place":179},[21,8977,5645],{},[175,8979,8980,303,8982,902,8984],{"role":177,"data-label":208,"data-place":183},[21,8981,2894],{},[21,8983,2767],{},[21,8985,2764],{},[175,8987,8988],{"role":177,"data-label":8940,"data-place":1289},"Something true or false of the fit, whatever the size of the table: the optimizer converged and the Hessian is positive definite; a category has a level with no event; the spend model's variance is finite. They are warnings, not tests",[160,8990,8991,8995,9001],{"role":162},[175,8992,1572,8993],{"role":177,"data-label":5623,"data-place":179},[21,8994,4855],{},[175,8996,8997,8998],{"role":177,"data-label":208,"data-place":183},"A number and a sentence that says what it reads, ",[21,8999,9000],{},"with no colour and no advice",[175,9002,9003],{"role":177,"data-label":8940,"data-place":1289},"A quantity a test cannot judge, such as the largest gap between the fitted curve and Kaplan–Meier's, the influence of the most influential row, the events per parameter, the number of customers, the holdout's error, the horizon against the longest age. You read it; the report never calls it good or bad",[17,9005,9006,9009,9010,9012],{},[21,9007,9008],{},"Where to set alpha."," In the node's panel, the option ",[21,9011,1425],{},", 0.05 unless you change it. It is\nalso the level of every interval of that node (an interval at 1 − alpha: 95 % by default), so a stricter\nlevel, 0.01, widens the intervals and makes fewer checks fail. The p-values themselves do not change with\nalpha, only the line between ok and failed, so you can see how close a check came.",[17,9014,9015,621,9018,9020,9021,9024,9025,9027],{},[21,9016,9017],{},"What a verdict means.",[623,9019,428],{}," says that the data are unlikely under the assumption the check\ntests; it does not say how much it matters. With many rows a test rejects very small departures, so the\nreport says once that on a large table you should read the ",[21,9022,9023],{},"measure and the chart"," beside it (the share gap\nnext to the frequency fit, the gap in survival next to the agreement with Kaplan–Meier) before concluding the model is\nwrong. With few rows a test rejects nothing, and ",[623,9026,2894],{}," means only that no departure was found. A failed\ncheck never stops a model: it is a row with its advice, and the numbers are still there to use.",[17,9029,9030,9033,9034,9036],{},[21,9031,9032],{},"Older models."," Linear and logistic regression, Kaplan–Meier, Cox and ARIMA have tests with p-values and,\nwhere a quantity has no test, the classical thresholds of the literature (a VIF above 5 or 10, Cook's\ndistance), which give a ",[21,9035,2764],{}," verdict between ok and failed. The boosting models have diagnostics that are rules of thumb with advice\nand no p-value, as their sections say. They are read as they always were.",[148,9038,9040],{"id":9039},"trying-a-model-run-and-not-up-to-date","Trying a model: Run, and «not up to date»",[17,9042,9043,9044,9046,9047,9050,9051,9054],{},"The editor never starts a Job by itself. ",[21,9045,23],{}," in the node's panel (",[21,9048,9049],{},"Save and run"," when\nthe flow has unsaved changes) fits the model on ",[21,9052,9053],{},"the development sample of the sources",",\nwithout the nodes after it, in the trials' namespace and its quota. It needs RUN on the flow's\nfolder. The Table and Report tabs then show the latest result of the node, the trial or the\nflow's run, whichever is newer, with a line that says which: «From the model's run of …, on\nthe sample» or «From the flow's run of …».",[17,9056,9057,9058,9061],{},"If the node or any step before it changed since, the numbers stay and are marked ",[21,9059,9060],{},"not up to\ndate",": «run it again to see its numbers now». They are never redrawn from a guess.",[17,9063,9064,9067,9068,9070,9071,9073,9074,9077,9078,9082],{},[21,9065,9066],{},"Before the first Run"," a model has no rows, but its columns are known: they follow from its\noptions and the ",[21,9069,1455],{}," (above). The ",[21,9072,213],{}," tab shows them as a header without rows, with\nthe line «The columns this model will give, from its options. Its rows come with a Run». The\nsteps after the model can be set up at once: a step that only keeps, drops, orders, renames,\ncasts or filters columns (Select, Drop, Reorder, Rename, Cast, Filter, Sort, Limit, Unique rows,\nDrop nulls, Fill nulls) gets those columns in its panel, its lists and its formulas, and its Table\nshows them too, through any number of such steps. After another kind of step (a Group by, a Join,\na computed column) the columns come with the model's Run, as the rows do. A name that depends on\nthe data is not known before the Run, and the line says so: a multiclass XGBoost or CatBoost writes\none ",[283,9075,9076],{},"pred_prob_\u003Cclass>"," per class of the outcome. Once the model has run, its output is what the\nsteps after it read, as before. No Job starts for any of this. The flow editor's\n",[68,9079,9081],{"href":9080},"\u002Fdocs\u002Fintegrations\u002Fai","assistant"," works the same way: it adds steps after a model and is told\ntheir columns, worked out, with no rows until the model runs.",[17,9084,9085],{},"A trial is a trial: it logs nothing to MLflow. A run of the flow fits the model on every row\nthat reaches it, up to the group's limit, and logs.",[17,9087,1703,9088,9091],{},[21,9089,9090],{},"Runs"," page shows a model step like any other, with its detail: the group and its\nversion, the rows read, the attempts, the exit code, the refusal when the model said no, the\nlog and, with MLflow, the experiment and the run, with a link to MLflow.",[148,9093,267],{"id":9094},"mlflow-1",[17,9096,9097,9098,9100,9101,9104,9105,9108,9109,9112,9113,9115,9116,329],{},"A model node has an optional ",[21,9099,267],{}," block: the ",[21,9102,9103],{},"connection"," (a type ",[68,9106,9107],{"href":266},"MLflow\nconnection"," you may use), the ",[21,9110,9111],{},"Experiment"," (required with a\nconnection) and ",[21,9114,4404],{}," (optional). Tabularia does not run MLflow. To try a\ntracking server on a Kubernetes cluster, see ",[68,9117,9119],{"href":9118},"\u002Fdocs\u002Fdeploy\u002Fkind#14-optional-the-statistical-models-and-a-tracking-server-for-them-mlflow","the kind guide, step 14",[17,9121,9122,9125],{},[21,9123,9124],{},"What a flow run records."," After the step has its results, and before its files leave the\nscripts bucket, the gateway:",[646,9127,9128,9135,9249,9252],{},[649,9129,9130,9131,9134],{},"finds the experiment by name and creates it when missing (tag ",[283,9132,9133],{},"tabularia.created = true",";\none in MLflow's trash gets a sentence of its own);",[649,9136,9137,9138],{},"opens a run named after the flow, the node and the date, with\n",[1626,9139,9140,9158,9206,9223],{},[649,9141,9142,9145,9146,303,9149,9151,9152,9154,9155,9157],{},[21,9143,9144],{},"parameters",": the node's, flattened, and the model's formula; the distribution or the\npurchase model the fit used (",[283,9147,9148],{},"distribution_chosen",[283,9150,3647],{},": the one ",[623,9153,1363],{}," chose, or the\none given), beside the node's own; for customer lifetime also ",[283,9156,2185],{}," when the node left it empty;",[649,9159,9160,9163,9164,9166,9167,9170,9171,9173,9174,9176,9177,281,9180,303,9183,307,9186,303,9188,303,9191,9194,9195,9198,9199,303,9202,9205],{},[21,9161,9162],{},"metrics",": every number of the ",[283,9165,1635],{}," section, and for each assumption its statistic\nand p-value, as ",[283,9168,9169],{},"assumption.\u003Ccheck>[.\u003Clevel_2>].\u003Cstatistic>","; for the customer lifetime models also\neach check's ",[283,9172,2887],{}," (the holdout's error, the share gap of the frequency fit); a parametric survival\nmeasure's value is not a metric, it is in ",[283,9175,6021],{},". The candidates of\nan automatic choice are metrics of their own, ",[283,9178,9179],{},"candidate.\u003Cname>.\u003Cnumber>",[283,9181,9182],{},"aic",[283,9184,9185],{},"bic",[283,9187,3640],{},[283,9189,9190],{},"akaike_weight",[283,9192,9193],{},"chosen","…, also ARIMA's orders), and the distribution's parameters\n",[283,9196,9197],{},"parameter.\u003Cname>[.\u003Cstratum>].estimate",". A name MLflow does not take in a key (a column's,\na predictor's) is cleaned and kept within 250 characters; when two names become the same\nkey, the one that already is a key keeps it, the others get ",[283,9200,9201],{},"_2",[283,9203,9204],{},"_3","…, and the run page\nsays under which key each was logged;",[649,9207,9208,2623,9211,9214,9215,9218,9219,9222],{},[21,9209,9210],{},"tags",[283,9212,9213],{},"tabularia.url"," (the run's page), the flow's id and name, the node, the model\nand its group, the group's version, the image digest, whether the rows were a development\nsample (",[283,9216,9217],{},"tabularia.dev_sample","), who launched it, the number of rows and\n",[283,9220,9221],{},"mlflow.source.name",". Values are cut at 250 characters, the limit of MLflow's batches;",[649,9224,9225,9228,9229,307,9231,303,9234,9236,9237,303,9240,99,9242,9245,9246,9248],{},[21,9226,9227],{},"files",", through the server's artifact proxy: ",[283,9230,6021],{},[283,9232,9233],{},"tabularia\u002Fcoefficients.csv",[283,9235,6024],{}," (the Report tab's layout, in the\nflow owner's language), and ",[283,9238,9239],{},"model\u002FMLmodel",[283,9241,2926],{},[283,9243,9244],{},"model\u002Fnative.rds"," (for boosting, the model file\ninstead of ",[283,9247,3666],{},"; the customer lifetime models write none, their card holds every\nparameter).\nA server that keeps its runs' files elsewhere gets none of them, and the run page says\nso; a PDF that cannot be drawn is a warning, not a failure;",[649,9250,9251],{},"ends the run as finished;",[649,9253,9254,9255,9257,9258,9260,9261,303,9264,307,9267,9269,9270,303,9273,303,9276,303,9278,9280,9281,99,9284,9286,9287,9290,9291,9293,9294,9296],{},"with ",[21,9256,4404],{},", adds a version of that registered model from the run's\n",[283,9259,1635],{}," folder, with the tags ",[283,9262,9263],{},"tabularia.model",[283,9265,9266],{},"tabularia.group",[283,9268,2950],{}," (the variant fitted: ",[283,9271,9272],{},"unpenalized",[283,9274,9275],{},"ph_aft",[283,9277,1363],{},[283,9279,3657],{},"…),\n",[283,9282,9283],{},"tabularia.group_version",[283,9285,2946],{},": what Predict checks. A parametric survival\nversion adds ",[283,9288,9289],{},"tabularia.distribution",", the distribution fitted (with ",[623,9292,1363],{},", the one chosen); the customer\nlifetime models add ",[283,9295,3662],{},". A registration that fails sets the run failed.",[17,9298,9299,9302,9303,9306],{},[21,9300,9301],{},"When MLflow cannot be reached,"," the step fails with «the model was fitted but MLflow could\nnot record it» and the reason. With ",[21,9304,9305],{},"Continue without MLflow"," on, the step succeeds with a\nwarning instead and the run page says «Not logged, the step went on». A step that fails after\nits Job ran is logged to MLflow as a failed run, as far as the server answers.",[17,9308,9309,9312,9313,307,9316,303,9318,303,9320,99,9322,2623,9325,9331,9332,9334,9335,329],{},[21,9310,9311],{},"The Bayesian model node"," has the same block, in its panel between the output and the limits, and the same words. Its run\nrecords the parameters, the sampler's facts and the summary of the quantities, and its files are ",[283,9314,9315],{},"tabularia\u002Fsummary.csv",[283,9317,6024],{},[283,9319,9239],{},[283,9321,2926],{},[283,9323,9324],{},"model\u002Fprogram.stan",[21,9326,9327,9328],{},"never the draws and never\n",[283,9329,9330],{},"results.parquet",", whatever the node's output. ",[21,9333,4404],{}," adds a version with the model's program and its\nsummary; a Predict step does not apply it. A trial and the prior predictive check log nothing. The experiment is checked, and\nthe connection's CONNECT right with it, before the program is compiled; the refusal is said under ",[21,9336,23],{},[17,9338,9339,9342,9343,9346],{},[21,9340,9341],{},"No secret reaches the Job."," The connection's password or token is decrypted in the\ngateway, which makes the calls; the Job's ",[283,9344,9345],{},"task.json"," only says that files for MLflow are\nwanted, and it holds no MLflow variable, address or token. The Job has no internet access in\nany case.",[17,9348,9349,9351,9352,9355,9356,9359,9360,1922,9362,9364,9365,231,9367,9369,9370,9373,9374,9377,9378,9381,9382,9385,9386,9389,9390,9393,9394,303,9397,9400,9401,9404,9405,9408,9409,9412,9413,9416,9417,9420,9421,9424,9425,303,9428,9431],{},[283,9350,2926],{}," is the ",[21,9353,9354],{},"model card",": the fitted numbers (coefficients, covariance,\nbaseline hazard, the orders and the coefficients of an ARIMA…), at most 1 MB, in a format of\nTabularia's own (",[283,9357,9358],{},"tabularia-model","). Its sha256 is the tag ",[283,9361,2946],{},[283,9363,3666],{}," is R's own object, kept for people who want to open the fit in R; Tabularia\nnever loads it. The boosting models write no R object: they write the library's own model file\n(",[283,9366,2932],{},[283,9368,2938],{},", see ",[68,9371,2257],{"href":9372},"#boosting-python-xgboost-and-catboost","),\nwith its size and sha256 in the card, and never a pickle. It holds ",[21,9375,9376],{},"no row of the input",": before it is written the runner removes the\nmodel frame, the design and the outcome, every value that has one number per row (residuals,\nfitted values, linear predictors, weights, a Cox model's stratum of each row, the\ncross-validation's out-of-fold predictions and folds), the QR decomposition of the design\n(only its R, the first rows, stays) and the environment of the formula. What stays gives the\nsame predictions as the fit: ",[283,9379,9380],{},"predict(fit, newdata)"," for a linear or logistic regression\n(with ",[283,9383,9384],{},"se.fit"," when you pass the residual scale, which the report gives), the linear\npredictor and the risk of a Cox model (",[283,9387,9388],{},"reference = \"sample\"","), and ",[283,9391,9392],{},"predict(fit, newx, s =)","\nfor a penalized fit. What needs the rows does not work on it (",[283,9395,9396],{},"summary()",[283,9398,9399],{},"residuals()",", a\nCox model's ",[283,9402,9403],{},"survfit()","): the report and ",[283,9406,9407],{},"coefficients.csv"," have those numbers. A parametric survival model's ",[283,9410,9411],{},"flexsurv","\nobject is kept without the rows too. Two objects\nare kept whole, and they are data: a Kaplan–Meier's ",[283,9414,9415],{},"survfit"," is the curve itself (one step\nper event time), and an ARIMA's ",[283,9418,9419],{},"forecast::Arima"," keeps the series, which ",[283,9422,9423],{},"forecast()"," needs\nto go on from its last values. The columns inside are named by position (",[283,9426,9427],{},"d1",[283,9429,9430],{},"d2","…), as\nthe runner names them.",[17,9433,9434,9435,9438],{},"A model card larger than 1 MB does not stop the step: its results and its report are there,\nwith a note, but the model is not logged to MLflow (no ",[283,9436,9437],{},"model\u002F"," files) and no Predict node can\napply it.",[148,9440,58],{"id":2268},[17,9442,1703,9443,9445],{},[21,9444,58],{}," node applies a model registered in MLflow to the rows that reach it, and adds\nthe predicted columns. It is in the same palette group, for whoever may use at least one\nenabled group and has CONNECT on an MLflow connection.",[17,9447,9448,9449,1802,9451,9454,9455,9458,9459,9462,9463,9466,9467,9469,9470,9473],{},"In its panel choose the ",[21,9450,9103],{},[21,9452,9453],{},"experiment"," (the list is read from the server),\nand the ",[21,9456,9457],{},"version",": one of the versions Tabularia registered in that experiment, newest first,\nor the ",[21,9460,9461],{},"latest version"," of a registered model. A version is fixed: the same numbers, the\nsame predictions, whoever promotes another later. ",[21,9464,9465],{},"Latest"," is read again at each run, resolved\nto a number then, and the run records the number: it is the highest version of that\nregistered model that carries the tag ",[283,9468,9263],{}," and whose MLflow run is ",[283,9471,9472],{},"FINISHED",", in\nany experiment (the experiment filters the lists only). A version registered by something other\nthan Tabularia is not offered and is refused.",[17,9475,9476,9477,9479,9480,9483,9484,2623,9486,9489,9490,9492],{},"A model step closes its MLflow run ",[283,9478,9472],{}," before it registers the version, and sets it\n",[283,9481,9482],{},"FAILED"," when the registration fails. When the server made the version but its answer was lost\n(a timeout, a proxy's 502 or 504), the step fails, deletes the version it finds made from its run,\nand, should that deletion fail too, the version's run stays ",[283,9485,9482],{},[21,9487,9488],{},"latest"," skips it, and a\nfixed version whose run is not ",[283,9491,9472],{}," is refused with a sentence that says so.",[2696,9494,9495],{},[17,9496,9497,1596,9500,9502,9503,9505,9506,9508,9509,9512],{},[21,9498,9499],{},"Pin a version in production.",[21,9501,9488],{},", whoever has CONNECT on the MLflow\nconnection can register a new version of the same model name, with the tags Tabularia reads\n(",[283,9504,9263],{}," and the others), and the flows that use ",[21,9507,9488],{}," predict with it at\ntheir next run: the predictions change without anyone editing or approving the flow. The\ncard's fingerprint only says the card was not changed after registration, not who registered\nit. For the flows that run in production choose a ",[21,9510,9511],{},"fixed version",", and give CONNECT on the\nconnection only to those who may change what those flows predict.",[17,9514,9515,9518],{},[21,9516,9517],{},"What it checks before reading a row,"," and a step that fails any of it stops before any Job\nexists:",[1626,9520,9521,9534,9546,9552,9555],{},[649,9522,9523,9524,9526,9527,9529,9530,9533],{},"the version carries Tabularia's tags, its MLflow run is ",[283,9525,9472],{},", and its ",[283,9528,7186],{}," has the\n",[283,9531,9532],{},"tabularia"," flavor;",[649,9535,9536,9539,9540,9542,9543,9545],{},[21,9537,9538],{},"integrity",": the sha256 of its ",[283,9541,7182],{}," equals the version's ",[283,9544,2946],{},"\ntag, so a card changed after it was registered is refused;",[649,9547,9548,9549,9551],{},"the card is one this Tabularia applies: its format is ",[283,9550,9358],{},", its format\nversion one this release reads, its model, group and variant known. The version of the\ngroup it was fitted with may differ from the one that applies it: the numbers are the same\nto every version, and the run page says so;",[649,9553,9554],{},"the card's group is enabled, ready and usable by you, and its limit on rows holds for the\nrows to predict;",[649,9556,9557],{},"the card's input columns are in the rows, of the same kind, and none of the columns to add\nis already there.",[17,9559,9560,9563],{},[21,9561,9562],{},"The Job never sees MLflow."," The gateway reads the version and gives the Job its card;\nnothing is run from the server, and no serialized object that runs code is ever loaded: the\ncard's numbers, and for boosting the library's model file (JSON or CatBoost's binary format) after\nits sha256 matched the card's. Predicting the rows a model was fitted on gives its fitted values to within 1e-9,\nwhich each group's self-test checks.",[17,9565,9566,9569,9570,9572],{},[21,9567,9568],{},"Columns added",", always ",[283,9571,1726],{},", and with options for the model:",[153,9574,9575,9587],{},[156,9576,9577],{"role":158},[160,9578,9579,9581,9585],{"role":162},[164,9580,7321],{"role":166},[164,9582,9583],{"role":166},[283,9584,1726],{},[164,9586,846],{"role":166},[170,9588,9589,9609,9625,9640,9656,9690,9713,9734,9753],{"role":158},[160,9590,9591,9594,9597],{"role":162},[175,9592,9593],{"role":177,"data-label":7321,"data-place":179},"Linear",[175,9595,9596],{"role":177,"data-label":1726,"data-place":183},"The fitted value",[175,9598,9599,2623,9602,303,9605,9608],{"role":177,"data-label":846,"data-place":183},[21,9600,9601],{},"Prediction interval",[283,9603,9604],{},"prediction_low",[283,9606,9607],{},"prediction_high"," (not for a penalized model, which warns and adds none)",[160,9610,9611,9614,9617],{"role":162},[175,9612,9613],{"role":177,"data-label":7321,"data-place":179},"Logistic",[175,9615,9616],{"role":177,"data-label":1726,"data-place":183},"The probability of the event",[175,9618,9619,2623,9622,9624],{"role":177,"data-label":846,"data-place":183},[21,9620,9621],{},"Class threshold",[283,9623,2985],{}," (0.5 when empty, or the card's)",[160,9626,9627,9629,9632],{"role":162},[175,9628,1115],{"role":177,"data-label":7321,"data-place":179},[175,9630,9631],{"role":177,"data-label":1726,"data-place":183},"The survival at the row's time, in the row's stratum (empty past the stratum's last time)",[175,9633,9634,2623,9636,303,9638],{"role":177,"data-label":846,"data-place":183},[21,9635,9601],{},[283,9637,9604],{},[283,9639,9607],{},[160,9641,9642,9645,9648],{"role":162},[175,9643,9644],{"role":177,"data-label":7321,"data-place":179},"Cox",[175,9646,9647],{"role":177,"data-label":1726,"data-place":183},"The risk score, relative to the means of the fit",[175,9649,9650,2623,9652,9655],{"role":177,"data-label":846,"data-place":183},[21,9651,1153],{},[283,9653,9654],{},"survival_at_\u003Ct>"," for each time",[160,9657,9658,9660,9665],{"role":162},[175,9659,1230],{"role":177,"data-label":7321,"data-place":179},[175,9661,1703,9662],{"role":177,"data-label":1726,"data-place":183},[21,9663,9664],{},"median time",[175,9666,9667,2623,9669,7569,9671,2623,9673,7569,9676,2623,9678,303,9680,317,9682,303,9684,9686,9687,9689],{"role":177,"data-label":846,"data-place":183},[21,9668,1153],{},[283,9670,9654],{},[21,9672,7422],{},[283,9674,9675],{},"quantile_\u003Cp>",[21,9677,9601],{},[283,9679,9604],{},[283,9681,9607],{},[283,9683,1686],{},[283,9685,1689],{}," for each quantile and time; ",[21,9688,1410],{},": a column of the rows, and then every answer is the time left",[160,9691,9692,9694,9697],{"role":162},[175,9693,2059],{"role":177,"data-label":7321,"data-place":179},[175,9695,9696],{"role":177,"data-label":1726,"data-place":183},"The forecast, with the fitted coefficients, no re-estimation",[175,9698,9699,7569,9701,2623,9703,303,9706,303,9709,303,9711],{"role":177,"data-label":846,"data-place":183},[21,9700,2177],{},[21,9702,9601],{},[283,9704,9705],{},"lower_80",[283,9707,9708],{},"upper_80",[283,9710,5602],{},[283,9712,8040],{},[160,9714,9715,9717,9729],{"role":162},[175,9716,75],{"role":177,"data-label":7321,"data-place":179},[175,9718,9719,9721,9722,9724,9725,286],{"role":177,"data-label":1726,"data-place":183},[283,9720,1726],{},": the volatility σ of each new row, and ",[283,9723,7064],{},": its 1-day VaR, from the card's state (",[68,9726,9728],{"href":9727},"#predict-a-volatility-every-day-without-refitting","rules of continuity",[175,9730,9731,9733],{"role":177,"data-label":846,"data-place":183},[21,9732,6286],{},": forecast rows after the last one",[160,9735,9736,9738,9741],{"role":162},[175,9737,8760],{"role":177,"data-label":7321,"data-place":179},[175,9739,9740],{"role":177,"data-label":1726,"data-place":183},"The expected purchases over the horizon",[175,9742,9743,9745,9746,9748,9749,99,9751],{"role":177,"data-label":846,"data-place":183},[21,9744,3368],{}," (the card's when empty, in the fit's unit); also ",[283,9747,3624],{},", and with a spend ",[283,9750,3628],{},[283,9752,3631],{},[160,9754,9755,9758,9761],{"role":162},[175,9756,9757],{"role":177,"data-label":7321,"data-place":179},"XGBoost, CatBoost",[175,9759,9760],{"role":177,"data-label":1726,"data-place":183},"A regression's value, a binary model's probability of the event, a multiclass model's likeliest class",[175,9762,9763,9764,9766,9767,9769,9770,99,9772],{"role":177,"data-label":846,"data-place":183},"Binary: ",[21,9765,9621],{}," gives ",[283,9768,2985],{},"; multiclass adds ",[283,9771,2989],{},[283,9773,2992],{},[17,9775,9776,9777,9780,9781,9783,9784,9786,9787,9789],{},"A parametric survival model predicts ",[21,9778,9779],{},"beyond the last time observed"," (the shape of the distribution\ngives it), unlike Kaplan–Meier and Cox, and the run page counts the rows that go beyond the last time observed in their stratum as an\nextrapolation; a median the distribution never reaches is empty. Without a covariance in the card (more than 200\nparameters, or a fit whose Hessian was not positive definite) no interval is added, and a warning says why. A row\nwhose time already survived is beyond what the model allows gets an empty prediction, counted. A quantile of 0.5 is\nthe median, ",[283,9782,1726],{},", and adds no column. ",[21,9785,1410],{}," is refused\nfor the other models, and a row with no value, a negative one or an infinite one gets an empty\nprediction. For the customer lifetime models a row that breaks a rule of the summary (a recency above\nthe age, a repeated purchase at the first moment) gets empty predictions and a warning that counts them.\nAn option that does not belong to the model of the card is refused. A level of a category the\nmodel did not see gives an empty prediction on its rows, and the run page counts them. A\nPredict step logs nothing to MLflow: its run records the registered model, the version it\nused, the card's hash and the group's versions. ",[21,9788,23],{}," in its panel works like a model's,\nand needs its connection and version chosen first.",[148,9791,9793],{"id":9792},"limits-and-what-it-refuses","Limits, and what it refuses",[153,9795,9796,9804],{},[156,9797,9798],{"role":158},[160,9799,9800,9802],{"role":162},[164,9801,3005],{"role":166},[164,9803,3008],{"role":166},[170,9805,9806,9813,9821,9828,9836,9843,9850,9858,9866,9874,9882,9889,9895,9903,9911,9918,9926,9934,9942],{"role":158},[160,9807,9808,9810],{"role":162},[175,9809,3015],{"role":177,"data-label":3005,"data-place":179},[175,9811,9812],{"role":177,"data-label":3008,"data-place":183},"The group's: 2,000,000, 1,000,000, 200,000, 1,000,000 or 1,000,000 unless an administrator changed it (ARIMA, whatever the group allows: 20,000). Beyond it the step fails before the Job, with «the model would read 3,400,000 rows; the group allows 2,000,000: filter or sample before the node»",[160,9814,9815,9818],{"role":162},[175,9816,9817],{"role":177,"data-label":3005,"data-place":179},"Terms of the design, after encoding categories",[175,9819,9820],{"role":177,"data-label":3008,"data-place":183},"200",[160,9822,9823,9825],{"role":162},[175,9824,3039],{"role":177,"data-label":3005,"data-place":179},[175,9826,9827],{"role":177,"data-label":3008,"data-place":183},"50",[160,9829,9830,9833],{"role":162},[175,9831,9832],{"role":177,"data-label":3005,"data-place":179},"Strata (Kaplan–Meier, Cox, parametric survival)",[175,9834,9835],{"role":177,"data-label":3008,"data-place":183},"20",[160,9837,9838,9840],{"role":162},[175,9839,825],{"role":177,"data-label":3005,"data-place":179},[175,9841,9842],{"role":177,"data-label":3008,"data-place":183},"20 pairs",[160,9844,9845,9848],{"role":162},[175,9846,9847],{"role":177,"data-label":3005,"data-place":179},"Times of «survival at»",[175,9849,5976],{"role":177,"data-label":3008,"data-place":183},[160,9851,9852,9855],{"role":162},[175,9853,9854],{"role":177,"data-label":3005,"data-place":179},"Quantiles (parametric survival)",[175,9856,9857],{"role":177,"data-label":3008,"data-place":183},"9",[160,9859,9860,9863],{"role":162},[175,9861,9862],{"role":177,"data-label":3005,"data-place":179},"AIC margin of the automatic choice",[175,9864,9865],{"role":177,"data-label":3008,"data-place":183},"0 to 10",[160,9867,9868,9871],{"role":162},[175,9869,9870],{"role":177,"data-label":3005,"data-place":179},"Customers and repeat customers (customer lifetime)",[175,9872,9873],{"role":177,"data-label":3008,"data-place":183},"At least 20 and 5 (5 with a spend); 1,000,000 customers unless an administrator changed it",[160,9875,9876,9879],{"role":162},[175,9877,9878],{"role":177,"data-label":3005,"data-place":179},"Periods ahead; opportunities of BG\u002FBB",[175,9880,9881],{"role":177,"data-label":3008,"data-place":183},"1,000 each; above 520 steps the CLV is summed in coarser steps, with a note",[160,9883,9884,9886],{"role":162},[175,9885,2081],{"role":177,"data-label":3005,"data-place":179},[175,9887,9888],{"role":177,"data-label":3008,"data-place":183},"60",[160,9890,9891,9893],{"role":162},[175,9892,2177],{"role":177,"data-label":3005,"data-place":179},[175,9894,2538],{"role":177,"data-label":3008,"data-place":183},[160,9896,9897,9900],{"role":162},[175,9898,9899],{"role":177,"data-label":3005,"data-place":179},"Volatility (GARCH): returns; held out; steps ahead",[175,9901,9902],{"role":177,"data-label":3008,"data-place":183},"At least 100 returns; 1,000 held out; 1,000 steps ahead",[160,9904,9905,9908],{"role":162},[175,9906,9907],{"role":177,"data-label":3005,"data-place":179},"Risk simulation: paths; steps",[175,9909,9910],{"role":177,"data-label":3008,"data-place":183},"100 to 10,000,000 paths; 1 to 1,000 steps (and what the Job's memory, disk and the node's timeout allow, said before it runs)",[160,9912,9913,9915],{"role":162},[175,9914,5021],{"role":177,"data-label":3005,"data-place":179},[175,9916,9917],{"role":177,"data-label":3008,"data-place":183},"More than terms plus one; with a penalty, 3 per fold, at least 2 terms, and with the AUC measure 10 per fold; at least one event; for ARIMA enough observations for its orders and season",[160,9919,9920,9923],{"role":162},[175,9921,9922],{"role":177,"data-label":3005,"data-place":179},"Run time",[175,9924,9925],{"role":177,"data-label":3008,"data-place":183},"The group's longest run (30 minutes by default, 60 for boosting); the node's timeout, 900 seconds unless you change it, must be within it",[160,9927,9928,9931],{"role":162},[175,9929,9930],{"role":177,"data-label":3005,"data-place":179},"Rows of the results table",[175,9932,9933],{"role":177,"data-label":3008,"data-place":183},"100,000: the charts share what the other sections leave; a fit still above it is refused, «fewer strata, predictors or levels»",[160,9935,9936,9939],{"role":162},[175,9937,9938],{"role":177,"data-label":3005,"data-place":179},"Model card",[175,9940,9941],{"role":177,"data-label":3008,"data-place":183},"1 MB: the covariance (above 200 terms) and the baseline hazard (above 5,000 times) are dropped first, then the card is refused",[160,9943,9944,9947],{"role":162},[175,9945,9946],{"role":177,"data-label":3005,"data-place":179},"Model file (boosting)",[175,9948,9949],{"role":177,"data-label":3008,"data-place":183},"64 MiB: the boosting stops before it (a note); a file still larger is not logged to MLflow, with a note",[17,9951,9952],{},"Every refusal is a sentence that says what to do. A model started on an installation without\nKubernetes, or without the scripting machinery or the scripts bucket, says so before anything.\nThe start of a Job takes seconds when the image is on the node; the first run on a node pulls\nit, and an R image with its packages is more than a gigabyte.",[17,9954,9955],{},[21,9956,9957],{},"What it does not do.",[1626,9959,9960,9966,9976,9982,9988,9997,10002],{},[649,9961,9962,9965],{},[21,9963,9964],{},"No model beyond the ten",": no multinomial or ordinal logistic, mixed models, additive\nmodels, Poisson or negative binomial, quantile regression, competing risks, exponential\nsmoothing; no inference after a penalized selection. In parametric survival no left or\ninterval censoring, no cure models or splines, no robust errors for rows of one subject (rows\nwith a start are taken as independent), no gamma or generalized F distribution. The customer\nlifetime models take one row per customer and no column about the customer (no covariates), not\na log of transactions, and a customer with no purchase yet has no row.",[649,9967,9968,9971,9972,9975],{},[21,9969,9970],{},"No code of yours",": the runners are Tabularia's. For another model, write it in a\n",[68,9973,9974],{"href":335},"Script node"," in R or Python.",[649,9977,9978,9981],{},[21,9979,9980],{},"No fit in an engine."," A model is not an operation of the five engines; the rows that\nreach it are written to the scripts bucket, read by the Job, and deleted at the end.",[649,9983,9984,9987],{},[21,9985,9986],{},"No report as a saved object."," As for the statistics, it lives in the editor, in the PDF\nyou download and in the MLflow run.",[649,9989,9990,9993,9994,9996],{},[21,9991,9992],{},"Not exportable to dbt",": an Output that reads what a model or Predict node writes is\nrefused with ",[283,9995,285],{},"; a model that feeds no exported Output is left out of\nthe project with a note, and Tabularia keeps running it with the flow.",[649,9998,9999],{},[21,10000,10001],{},"Not on Docker Compose.",[649,10003,10004,10007],{},[21,10005,10006],{},"Predict is a Job",", not an expression: a few rows cost as much as a thousand, a few seconds\nof start-up. Only a model Tabularia registered with its card is applied.",[148,10009,3473],{"id":10010},"where-tabularia-and-r-differ",[17,10012,10013],{},"Every number is checked against values computed outside Tabularia: R 4.6 with its own\npackages, and for some models a second tool (statsmodels for the linear regression and ARIMA,\nlifelines for Kaplan–Meier, Cox and four of the parametric distributions; BTYD, BTYDplus and\nhypergeo for the customer lifetime models, whose published estimates for two textbook data sets\nare also reproduced). The self-test of each group repeats the comparison, on\nthe cluster, before the group can be used. A few conventions are Tabularia's own and the\nreport says so:",[1626,10015,10016,10019,10022,10025,10028,10034],{},[649,10017,10018],{},"the VIF of a categorical term is the generalized VIF to the power 1\u002Fdf, comparable with the\nusual limits of 5 and 10;",[649,10020,10021],{},"the Cook's distance verdict: over 1 failed, over 4\u002Fn doubtful; leverage over 2p\u002Fn is doubtful;",[649,10023,10024],{},"Hosmer–Lemeshow's degrees of freedom are the groups made minus 2;",[649,10026,10027],{},"Cox's risk score is relative to the means of the fit, and its survival curve is for a row at\nthe means, not for each stratum's;",[649,10029,10030,10031,10033],{},"parametric survival fits with ",[283,10032,9411],{}," but takes the covariance from its own Hessian of the\nlog-likelihood, built from each row's derivatives in the distribution's few parameters (a Richardson\nHessian only where those fail), for every distribution, because flexsurv's is a finite difference\nfor the distributions with no analytic derivatives; the exponential's coefficients are reported\nas time ratios, the opposite sign of its rate's, so that every distribution reads the same way;\na time of 0 is left out, since no distribution gives it a density;",[649,10035,10036],{},"customer lifetime: Pareto\u002FNBD, BG\u002FNBD and Gamma–Gamma are computed with CLVTools' compiled likelihoods;\nMBG\u002FNBD and BG\u002FBB, which CLVTools does not have, are written in the runner and agree with\nindependent implementations to better than 1e-13 on likelihoods, P(alive) and expected purchases. Where\nthe Gauss hypergeometric function fails in the GNU Scientific Library the runner uses a\nquadrature, and says how many customers needed it; the CLV is a discrete sum over the horizon\nyou choose, not CLVTools' infinite-horizon expectation.",[148,10038,10040],{"id":10039},"related","Related",[1626,10042,10043,10048,10054,10060,10066,10071,10078],{},[649,10044,10045,10047],{},[68,10046,191],{"href":144},": the hypothesis tests, and the output table the models share",[649,10049,10050,10053],{},[68,10051,721],{"href":10052},"\u002Fdocs\u002Fcapabilities\u002Fflows#models",": the nodes and the editor",[649,10055,10056,10059],{},[68,10057,10058],{"href":266},"MLflow connections",": the server and the test",[649,10061,10062,10065],{},[68,10063,10064],{"href":335},"Python and R",": the scripting machinery the groups are built with",[649,10067,10068,10070],{},[68,10069,345],{"href":344},": what the chart needs",[649,10072,10073,10077],{},[68,10074,10076],{"href":10075},"\u002Fdocs\u002Fengines\u002Fengine-differences#statistical-models","Engine differences",": why a model is not an operation",[649,10079,10080],{},[68,10081,10082],{"href":279},"Export to dbt",{"title":178,"searchDepth":6115,"depth":10084,"links":10085},3,[10086,10087,10091,10092,10153,10154,10155,10156,10157,10158,10159,10160,10161],{"id":150,"depth":6115,"text":151},{"id":289,"depth":6115,"text":290,"children":10088},[10089,10090],{"id":503,"depth":10084,"text":392},{"id":547,"depth":10084,"text":548},{"id":643,"depth":6115,"text":644},{"id":713,"depth":6115,"text":714,"children":10093},[10094,10095,10096,10097,10098,10099,10100,10101,10106,10107,10115,10127,10136,10143,10152],{"id":804,"depth":10084,"text":805},{"id":1038,"depth":10084,"text":1039},{"id":1114,"depth":10084,"text":1115},{"id":1179,"depth":10084,"text":1180},{"id":1229,"depth":10084,"text":1230},{"id":2058,"depth":10084,"text":2059},{"id":2242,"depth":10084,"text":2243},{"id":3129,"depth":10084,"text":3130,"children":10102},[10103,10105],{"id":3187,"depth":10104,"text":3188},4,{"id":3675,"depth":10104,"text":3676},{"id":4170,"depth":10084,"text":4171},{"id":4365,"depth":10084,"text":4366,"children":10108},[10109,10110,10111,10112,10113,10114],{"id":4425,"depth":10104,"text":4426},{"id":4573,"depth":10104,"text":4574},{"id":4724,"depth":10104,"text":4725},{"id":4934,"depth":10104,"text":4935},{"id":5003,"depth":10104,"text":5004},{"id":5075,"depth":10104,"text":5076},{"id":5120,"depth":10084,"text":5121,"children":10116},[10117,10118,10119,10120,10121,10122,10123,10124,10125,10126],{"id":5173,"depth":10104,"text":5174},{"id":5242,"depth":10104,"text":5243},{"id":5504,"depth":10104,"text":5505},{"id":5606,"depth":10104,"text":1435},{"id":5661,"depth":10104,"text":4574},{"id":5765,"depth":10104,"text":5766},{"id":5831,"depth":10104,"text":5832},{"id":5933,"depth":10104,"text":5934},{"id":5997,"depth":10104,"text":5998},{"id":6035,"depth":10104,"text":6036},{"id":6082,"depth":10084,"text":6083,"children":10128},[10129,10130,10131,10132,10133,10134,10135],{"id":6098,"depth":10104,"text":6099},{"id":6187,"depth":10104,"text":4437},{"id":6222,"depth":10104,"text":5243},{"id":6383,"depth":10104,"text":4574},{"id":6423,"depth":10104,"text":6424},{"id":6485,"depth":10104,"text":5934},{"id":6576,"depth":10104,"text":5076},{"id":6642,"depth":10084,"text":6643,"children":10137},[10138,10139,10140,10141,10142],{"id":6894,"depth":10104,"text":6895},{"id":6980,"depth":10104,"text":4574},{"id":7044,"depth":10104,"text":7045},{"id":7102,"depth":10104,"text":5934},{"id":7167,"depth":10104,"text":267},{"id":7228,"depth":10084,"text":7229,"children":10144},[10145,10146,10147,10148,10149,10150,10151],{"id":7557,"depth":10104,"text":6895},{"id":7622,"depth":10104,"text":4574},{"id":7701,"depth":10104,"text":7702},{"id":7733,"depth":10104,"text":5934},{"id":7972,"depth":10104,"text":5076},{"id":7982,"depth":10104,"text":7983},{"id":8060,"depth":10104,"text":8061},{"id":8409,"depth":10084,"text":131},{"id":8452,"depth":6115,"text":4574},{"id":8826,"depth":6115,"text":8827},{"id":8915,"depth":6115,"text":8916},{"id":9039,"depth":6115,"text":9040},{"id":9094,"depth":6115,"text":267},{"id":2268,"depth":6115,"text":58},{"id":9792,"depth":6115,"text":9793},{"id":10010,"depth":6115,"text":3473},{"id":10039,"depth":6115,"text":10040},"A hypothesis test answers a yes-or-no question. A model answers «how much»: how the quantity\nsold changes with the price, which customers are likely to order, how long a customer lasts,\nwhat next month will look like. Tabularia fits these models inside a flow: drop the node of\nthe model after any step, choose its columns and options in the panel, press Run, and read\nthe answer in the same place as any other step, as a table of results the next nodes can\nuse and a Report of a few pages whose first page says whether the model's assumptions hold.","md",{"source":10165},"docs\u002Fcapabilities\u002Fmodels.md",true,"\u002Fdocs\u002Fcapabilities\u002Fmodels",{"title":5,"description":10162},"docs\u002Fcapabilities\u002Fmodels","lt3ypdJjJ5CLX-HZo6-yzpcrdPgxZxBblSYhxKrvHuM",[10172,10194,10259,10275,10304,10333,10363,10388,10414],{"title":10173,"icon":10174,"intro":10175,"items":10176},"Getting started","start","Install it on one machine, learn the few ideas everything else is built on, and run a first flow.",[10177,10179,10182,10185,10188,10191],{"path":10178,"title":10173},"\u002Fdocs\u002Fgetting-started",{"path":10180,"title":10181},"\u002Fdocs\u002Fgetting-started-docker-compose","Walkthrough with Docker Compose",{"path":10183,"title":10184},"\u002Fdocs\u002Fdeploy\u002Fminikube","Try it on your computer (minikube)",{"path":10186,"title":10187},"\u002Fdocs\u002Fconcepts","Concepts",{"path":10189,"title":10190},"\u002Fdocs\u002Fhow-it-works","How it works",{"path":10192,"title":10193},"\u002Fdocs\u002Foverview","Overview (README)",{"title":10195,"icon":10196,"intro":10197,"items":10198},"Capabilities","capabilities","What you can build: visual flows, analysis on any step, AI questions, pixel-perfect reports, dashboards, Python, R and SQL scripts, containers and the orchestration that ties them together.",[10199,10202,10205,10208,10211,10214,10217,10220,10223,10226,10229,10230,10233,10236,10239,10242,10245,10248,10251,10254,10257],{"path":10200,"title":10201},"\u002Fdocs\u002Fcapabilities","All capabilities",{"path":10203,"title":10204},"\u002Fdocs\u002Fcapabilities\u002Fhome","The home page",{"path":10206,"title":10207},"\u002Fdocs\u002Fcapabilities\u002Fflows","Low-code flows",{"path":10209,"title":10210},"\u002Fdocs\u002Fcapabilities\u002Fpreview-and-analysis","Preview and analysis",{"path":10212,"title":10213},"\u002Fdocs\u002Fcapabilities\u002Flineage","Lineage",{"path":10215,"title":10216},"\u002Fdocs\u002Fcapabilities\u002Fask-your-data","Ask your data with AI",{"path":10218,"title":10219},"\u002Fdocs\u002Fcapabilities\u002Freports","Pixel-perfect reports",{"path":10221,"title":10222},"\u002Fdocs\u002Fcapabilities\u002Freport-functions","Report functions",{"path":10224,"title":10225},"\u002Fdocs\u002Fcapabilities\u002Fdashboards","Dashboards",{"path":10227,"title":10228},"\u002Fdocs\u002Fcapabilities\u002Fshare-links","Share links",{"path":335,"title":10064},{"path":10231,"title":10232},"\u002Fdocs\u002Fsql-scripts","SQL scripts",{"path":10234,"title":10235},"\u002Fdocs\u002Fdata-apis","Data APIs",{"path":10237,"title":10238},"\u002Fdocs\u002Fcapabilities\u002Fnotebooks","marimo notebooks as apps",{"path":10240,"title":10241},"\u002Fdocs\u002Fcontainer-node","Docker images in flows",{"path":10243,"title":10244},"\u002Fdocs\u002Fcapabilities\u002Fflow-groups","Flow groups: orchestration",{"path":10246,"title":10247},"\u002Fdocs\u002Fcapabilities\u002Fscheduling","Scheduling",{"path":10249,"title":10250},"\u002Fdocs\u002Fpushmail","Pushmail: datasources, reports and dashboards by email",{"path":10252,"title":10253},"\u002Fdocs\u002Fplaceholders","Dynamic dates",{"path":10255,"title":10256},"\u002Fdocs\u002Fcapabilities\u002Fengines","Engines",{"path":10258,"title":10076},"\u002Fdocs\u002Fengines\u002Fengine-differences",{"title":191,"icon":10260,"intro":10261,"items":10262},"statistics","Hypothesis tests on every engine and statistical models on Kubernetes: regression, survival, time series, experiments, customer lifetime and forecasting, each with a report that explains its method.",[10263,10266,10268,10270,10271,10272],{"path":10264,"title":10265},"\u002Fdocs\u002Fcapabilities\u002Fstatistics-overview","Statistics: the whole picture",{"path":144,"title":10267},"Hypothesis tests",{"path":10167,"title":10269},"Statistical models",{"path":8439,"title":127},{"path":266,"title":10058},{"path":10273,"title":10274},"\u002Fdocs\u002Flicences","Licences of the components",{"title":10276,"icon":10277,"intro":10278,"items":10279},"Sources","sources","Every way data comes in: files, databases, buckets, SFTP folders, HTTP APIs, SharePoint, Google Sheets, and the results of your own flows.",[10280,10283,10286,10289,10292,10295,10298,10301],{"path":10281,"title":10282},"\u002Fdocs\u002Fsources","All sources",{"path":10284,"title":10285},"\u002Fdocs\u002Fsources\u002Ffiles","Uploaded files",{"path":10287,"title":10288},"\u002Fdocs\u002Fsources\u002Fdatabases","Database tables and queries",{"path":10290,"title":10291},"\u002Fdocs\u002Fs3-datasource","S3 buckets",{"path":10293,"title":10294},"\u002Fdocs\u002Fapi-datasource","HTTP APIs",{"path":10296,"title":10297},"\u002Fdocs\u002Fsources\u002Fsharepoint","Excel on SharePoint",{"path":10299,"title":10300},"\u002Fdocs\u002Fsources\u002Fgoogle-sheets","Google Sheets",{"path":10302,"title":10303},"\u002Fdocs\u002Fsources\u002Fflow-outputs","Results of flows and scripts",{"title":10305,"icon":10306,"intro":10307,"items":10308},"Connections","connections","The systems Tabularia reads from and writes to, how each connection is set up, and who may use it.",[10309,10312,10315,10318,10321,10324,10327,10330],{"path":10310,"title":10311},"\u002Fdocs\u002Fconnections","All connections",{"path":10313,"title":10314},"\u002Fdocs\u002Fconnections\u002Fdatabases","Databases",{"path":10316,"title":10317},"\u002Fdocs\u002Fsqlserver","Microsoft SQL Server driver",{"path":10319,"title":10320},"\u002Fdocs\u002Fconnections\u002Fs3","S3 and compatible storage",{"path":10322,"title":10323},"\u002Fdocs\u002Fsftp","SFTP: files in and out",{"path":10325,"title":10326},"\u002Fdocs\u002Fconnections\u002Fsmtp","SMTP email",{"path":10328,"title":10329},"\u002Fdocs\u002Fcontainer-registries","Container registries",{"path":10331,"title":10332},"\u002Fdocs\u002Fconnections\u002Fdestinations","Writing data out",{"title":10334,"icon":10335,"intro":10336,"items":10337},"Integrations","integrations","How Tabularia fits your stack: AI providers, the REST API and webhooks, dbt, OpenLineage, single sign-on, SIEM and monitoring.",[10338,10341,10343,10346,10349,10351,10354,10357,10360],{"path":10339,"title":10340},"\u002Fdocs\u002Fintegrations","All integrations",{"path":9080,"title":10342},"AI: where it is used",{"path":10344,"title":10345},"\u002Fdocs\u002Fapi","API, tokens and webhooks",{"path":10347,"title":10348},"\u002Fdocs\u002Fintegrations\u002Fmcp","MCP: agents outside Tabularia",{"path":10350,"title":10082},"\u002Fdocs\u002Fdbt-export",{"path":10352,"title":10353},"\u002Fdocs\u002Fopenlineage","OpenLineage",{"path":10355,"title":10356},"\u002Fdocs\u002Fsso-keycloak","Single sign-on with Keycloak",{"path":10358,"title":10359},"\u002Fdocs\u002Fsiem-splunk","Audit log to Splunk",{"path":10361,"title":10362},"\u002Fdocs\u002Fintegrations\u002Fmonitoring","Monitoring",{"title":10364,"icon":10365,"intro":10366,"items":10367},"Security & governance","governance","Who may see and do what, what is recorded, and how data quality and personal data are kept in check.",[10368,10371,10374,10376,10379,10382,10385],{"path":10369,"title":10370},"\u002Fdocs\u002Fgovernance","Overview",{"path":10372,"title":10373},"\u002Fdocs\u002Fgovernance\u002Fpermissions","Permissions",{"path":298,"title":10375},"Audit log",{"path":10377,"title":10378},"\u002Fdocs\u002Fgovernance\u002Fdata-contracts","Data contracts",{"path":10380,"title":10381},"\u002Fdocs\u002Fdesign\u002Fsso-group-mapping","SSO and group mapping",{"path":10383,"title":10384},"\u002Fdocs\u002Fexamples\u002Fkeycloak","Keycloak example on a laptop",{"path":10386,"title":10387},"\u002Fdocs\u002Fengines\u002Fclickhouse-ai-user","A ClickHouse user for the AI assistant",{"title":10389,"icon":10390,"intro":10391,"items":10392},"Install & operate","operate","Run it in production on Kubernetes, configure it, upgrade it and keep it healthy.",[10393,10396,10399,10402,10405,10408,10411],{"path":10394,"title":10395},"\u002Fdocs\u002Fdeploy\u002Fkubernetes","Kubernetes and Helm",{"path":10397,"title":10398},"\u002Fdocs\u002Fdeploy\u002Fkind","A company-like cluster on one computer (kind)",{"path":10400,"title":10401},"\u002Fdocs\u002Fdeploy\u002Fupgrading","Upgrading, backups and restore",{"path":10403,"title":10404},"\u002Fdocs\u002Fdeploy\u002Frelease-checklist","Install and upgrade checklist",{"path":10406,"title":10407},"\u002Fdocs\u002Fconfiguration","Configuration reference",{"path":10409,"title":10410},"\u002Fdocs\u002Fengine-settings","Settings from the panel",{"path":10412,"title":10413},"\u002Fdocs\u002Fdatabase-migrations","Database migrations",{"title":10415,"icon":10416,"intro":10417,"items":10418},"Reference","reference","Release process and the remaining reference pages.",[10419,10422,10425],{"path":10420,"title":10421},"\u002Fdocs\u002Flts","Long-term support",{"path":10423,"title":10424},"\u002Fdocs\u002Frelease-process","Release process",{"path":10426,"title":10427},"\u002Fdocs\u002Fcontributing\u002Fadding-a-node","Adding a node to the flow editor",1795854763109]