# How to segment your data using statistical quantiles¶

You can create statistical quantiles without code in Dataiku DSS in two ways:

• The Split recipe allows you to break down each quantile into separate datasets, so it can be useful if you’re planning to separately handle a small amount of quantiles like quartiles or deciles.

• The Window recipe allows you to create a new column containing the quantile value, which can be easier to set up for a large amount of quantiles like centiles.

In statistics and probability, quantiles are cut points dividing the range of a probability distribution into continuous intervals with equal probabilities, or dividing the observations in a sample in the same way. In the two examples below, let’s assume that you want to create quantiles based on a numerical column called “score”.

## Using a Window recipe¶

Configure the Windows recipe to reorder the rows according to the scoring column, enable the window frame with no limits set, and configure the number of quantiles you want in the aggregations screen in addition to retrieving all the existing columns. ## Using a Split recipe¶

Configure the Split recipe with the “Dispatch percentiles of sorted data” mode, order the rows according to the scoring column, and assign each portion of the rows in separate datasets. ## Next Steps¶

In addition, to interactively compute statistical quantiles, you can refer to the quantiles table of the Interactive Statistics worksheets.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8564488,"math_prob":0.88782406,"size":1879,"snap":"2022-27-2022-33","text_gpt3_token_len":365,"char_repetition_ratio":0.12746666,"word_repetition_ratio":0.020066889,"special_character_ratio":0.17668973,"punctuation_ratio":0.07294833,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9844006,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-29T06:18:35Z\",\"WARC-Record-ID\":\"<urn:uuid:609eadc9-daa1-40c1-93c1-2314f589e171>\",\"Content-Length\":\"98638\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d0bc0b71-0c21-4016-bafb-3fcfd8a20cd7>\",\"WARC-Concurrent-To\":\"<urn:uuid:1ff7ab45-202f-47a3-8b8c-fa8a6b82716a>\",\"WARC-IP-Address\":\"3.83.61.197\",\"WARC-Target-URI\":\"https://knowledge.dataiku.com/latest/kb/data-prep/How-to-segment-your-data-using-statistical-quantiles.html\",\"WARC-Payload-Digest\":\"sha1:JLT3DKRNBKJ5SNTSYQY5MWWOKU53NA62\",\"WARC-Block-Digest\":\"sha1:V5XXCNUABYJBCHV6BLOEW2OHVK4Q5SV6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103624904.34_warc_CC-MAIN-20220629054527-20220629084527-00406.warc.gz\"}"}