Dowell Shuffling of Big Data API​

Witness the magic of Dowell Shuffling as it brings order to the chaos of big data

Dowell Shuffling of Big Data API

Dowell Shuffling of Big Data API​

ShuffleAPI is a tool designed to shuffle data and verify the central limit theorem based on your specific requirements.

  1. 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.

  2. 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.

Key Features

settings

Customizable Parameters

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.

Dowell Shuffling of Big Data API

Error Tolerance Control

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.

shuffle

Shuffle and Verify Functionality

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.

Dowell Shuffling of Big Data API

Comprehensive Output

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.

How to Use ShuffleAPI

To utilize ShuffleAPI, just follow these simple steps:

  1. Request Method: Make a POST request.
  2. Request URL: Use the following URL: http://100072.pythonanywhere.com/api?api_ke=your_api_key

The parameters that need to be passed by the user from the fronted test screen:

  • Deck Size: Specify the size of your deck.
  • Test Number: Determine the number of tests you wish to perform.
  • Error Size: Define the margin of error you’re allowing.

#calling the API using Remote Server

curl example
				
					   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

Output Received from Calling the API using Remote Server:

  • Means DataFrame: A DataFrame presenting mean values.
  • Series DataFrame: A DataFrame displaying series data.
  • Number of Iterations for Optimum Series: Indicates the number of iterations required for the best series.
  • Graph Data: Data suitable for graphical representation.

Advantages of ShuffleAPI

Here are the key benefits of using ShuffleAPI:

  • User-Friendly: Simplifies the process of shuffling and analyzing data.
  • Customizable: Tailor the parameters to suit your specific needs.
  • Efficient: Provides quick results, saving you time.
  • Visual Insights: Graph data helps in easily interpreting results.
  • Reliable: Ensures accurate statistical analysis by verifying the central limit theorem.

With ShuffleAPI, managing and analyzing your data becomes a breeze, offering you accurate insights with minimal hassle.

Dowell Shuffling Of Big Data API Demonstrative Scenarios

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.

Frequently Asked Questions (FAQs) about Dowell Shuffling of Big Data API​

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.

How To Get The API Key

How to activate Dowell shuffling of big data api

Python Example

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)

				
			

PHP Example

This PHP code sends a POST request with the specified parameters to the API and echoes the response.

				
					<?php
// Step 1: Define the URL of the API
$url = "http://100072.pythonanywhere.com/api";

// Step 2: Prepare parameters to send in the request
$params = array(
    "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: 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;
?>

				
			

React Example

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 (
        <div>
            {/* Step 3: Form to input parameters */}
            <label>
                Deck Size:
                <input
                    type="number"
                    value={params.deck}
                    onChange={e => setParams({ ...params, deck: e.target.value })}
                />
            </label>
            <br />
            <label>
                Error Size:
                <input
                    type="number"
                    step="0.01"
                    value={params.error}
                    onChange={e => setParams({ ...params, error: e.target.value })}
                />
            </label>
            <br />
            <label>
                Test Number:
                <input
                    type="number"
                    value={params.test_num}
                    onChange={e => setParams({ ...params, test_num: e.target.value })}
                />
            </label>
            <br />
            <label>
                Deck Items:
                <input
                    type="text"
                    value={params.deck_items}
                    onChange={e => setParams({ ...params, deck_items: e.target.value })}
                />
            </label>
            <br />
            {/* Step 4: Button to trigger API call */}
            <button onClick={handleAPICall}>Call API</button>
        </div>
    );
};

export default ShuffleAPIExample;

				
			

Flutter Example

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<String, dynamic> 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<String, dynamic> 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);
}

				
			

WordPress Example

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

Dowell Shuffling of Big Data API

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

Dowell Shuffling of Big Data API
Dowell Shuffling of Big Data API

Step 3: Test endpoint to get Json response from the API.

Json response