Witness the magic of Dowell Shuffling as it brings order to the chaos of big data
ShuffleAPI is a tool designed to shuffle data and verify the central limit theorem based on your specific requirements.
Shuffles Data: Imagine you have a deck of cards, and you want to mix them up randomly. ShuffleAPI does the same thing but with data instead of cards. It mixes up your data so that it’s in a different order each time you use it.
Verifies the Central Limit Theorem: This part is a bit more complex but very important for making sure your data is reliable. Think of it like a quality check. The central limit theorem is a rule in statistics that helps us understand how data behaves when we take lots of samples from it. ShuffleAPI checks to make sure your data follows this rule, which is crucial for accurate analysis.
Users can define the "Deck Size," "Test Number," and "Error Size" according to their specific requirements. This flexibility allows for tailored shuffling and central limit theorem checks, ensuring relevance to diverse datasets and analysis needs.
By specifying the "Error Size," users can control the acceptable margin of error in their data analysis. This feature enables fine-tuning of accuracy thresholds, critical for ensuring the reliability of statistical results.
The API not only shuffles the provided data but also conducts checks to verify adherence to the central limit theorem. This dual functionality streamlines the process of data quality assurance, enhancing confidence in subsequent analyses and interpretations.
Upon API invocation, users receive a comprehensive output, including mean and series dataframes, the number of iterations for optimum series, and graph data. This rich output facilitates in-depth analysis and visualization of shuffled data, supporting informed decision-making in statistical modeling and hypothesis testing.
To utilize ShuffleAPI, just follow these simple steps:
The parameters that need to be passed by the user from the fronted test screen:
#calling the API using Remote Server
curl --location 'http://100072.pythonanywhere.com/api' \
--form 'deck="200"' \
--form 'error="1.67"' \
--form 'test_num="7"' \
--form 'deck_items="\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60\""'
Output Received from Calling the API using Remote Server:
Here are the key benefits of using ShuffleAPI:
With ShuffleAPI, managing and analyzing your data becomes a breeze, offering you accurate insights with minimal hassle.
In the following scenarios, Dowell will furnish comprehensive instructions on obtaining the Service key and guide you through the steps to use the API. You’ll find examples in various formats such as Python, PHP, React, Flutter, and WordPress in the tabs below. Feel free to explore the examples in each tab for practical insights.
The parameters required are “Deck Size”, “Test Number”, and “Error Size”.
The request method is POST.
The API returns four distinct results: a Means DataFrame, a Series DataFrame, the count of iterations required for an optimal series, and graphical data representations.
The Dowell shuffling algorithm shuffles the data entries and assesses compliance with the Central Limit Theorem to ensure statistical validity.
The Central Limit Theorem is important as it ensures that the shuffled data follows a normal distribution, which is crucial for many statistical analyses.
If you encounter any issues, have questions, or need assistance with Dowell Shuffling of Big Data API, you can contact the support team for prompt assistance. Contact us at Dowell@dowellresearch.uk
The graphical data representations are generated based on the shuffled data and are intended to provide visual insights into its distribution and compliance with the Central Limit Theorem.
The response time may vary depending on factors such as server load and network conditions. However, efforts are made to ensure optimal performance.
Yes, you can integrate the API into your software or application by making HTTP requests to the provided endpoint.
Dowell UX Living Lab offers a wide range of APIs to enhance user experience and streamline various processes. To explore the full list of APIs available, including Dowell Email, Dowell Newsletter, Samanta Content Evaluator, and many more.
For more details and to explore the complete list of APIs provided by Dowell UX Living Lab, please visit our documentation page.
This Python code sends a POST request to an API with various parameters. It specifies the deck, error rate, number of data shuffles, and a list of deck items. It prints the response text received from the API.
# Step 1: Import necessary libraries
import json
import requests
# Step 2: Define the URL of the API
url = "http://100072.pythonanywhere.com/api"
# Step 3: Prepare parameters to send in the request
params = {
"deck": 200, # User-defined value; can be changed but should be >= 100
"error": 1.67, # Value can change but should be a floating number
"test_num": 7, # Number of times the data given is shuffled
"deck_items": '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100' # Items to be shuffled
}
# Step 4: Make a POST request to the API with provided parameters
get_response = requests.post(url, params)
# Step 5: Print the response received from the API
print(get_response.text)
This PHP code sends a POST request with the specified parameters to the API and echoes the response.
200, // User-defined value; can be changed but should be >= 100
"error" => 1.67, // Value can change but should be a floating number
"test_num" => 7, // Number of times the data given is shuffled
"deck_items" => '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100' // Items to be shuffled
);
// Step 3: Initialize cURL session
$ch = curl_init();
// Step 4: Set the cURL options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Step 5: Execute the cURL session
$response = curl_exec($ch);
// Step 6: Close the cURL session
curl_close($ch);
// Step 7: Print the response received from the API
echo $response;
?>
This React code sends a POST request to the API with the specified parameters and displays the response.
import React, { useState } from 'react';
import axios from 'axios';
const ShuffleAPIExample = () => {
// Step 2: Define the initial state for parameters
const [params, setParams] = useState({
deck: 200, // User-defined value; can be changed but should be >= 100
error: 1.67, // Value can change but should be a floating number
test_num: 7, // Number of times the data given is shuffled
deck_items: '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100' // Items to be shuffled
});
// Step 4: Function to handle API call
const handleAPICall = async () => {
try {
// Step 4: Make a POST request to the API with provided parameters
const response = await axios.post('http://100072.pythonanywhere.com/api', params);
// Step 5: Print the response received from the API
console.log(response.data);
} catch (error) {
console.error('Error:', error);
}
};
return (
{/* Step 3: Form to input parameters */}
{/* Step 4: Button to trigger API call */}
);
};
export default ShuffleAPIExample;
This Flutter code sends a POST request with the specified parameters to the API and displays the response.
import 'package:http/http.dart' as http;
void main() {
// Step 1: Define the URL of the API
final String apiUrl = "http://100072.pythonanywhere.com/api";
// Step 2: Prepare parameters to send in the request
Map params = {
"deck": 200, // User-defined value; can be changed but should be >= 100
"error": 1.67, // Value can change but should be a floating number
"test_num": 7, // Number of times the data given is shuffled
"deck_items":
'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100' // Items to be shuffled
};
// Step 3: Make a POST request to the API with provided parameters
fetchData(apiUrl, params);
}
void fetchData(String url, Map params) async {
// Step 4: Make a POST request to the API with provided parameters
final response = await http.post(Uri.parse(url), body: params);
// Step 5: Print the response received from the API
print(response.body);
}
Step 1: Set up the API name, unique ID and the base url(below). It’s a prerequisite to have WP-GET API plugin installed in your wordpress website
Step 2: Set up the api endpoint and the request body. the endpoint should have the api key and request body should have the necessary body post fields
Step 3: Test endpoint to get Json response from the API.
D’Well Research validates and explores each stage of open innovation using user experience research from the field to support user-centered product design of medium and large companies globally.