Algorithm creates representative set of data

In summary, an algorithm is a set of step-by-step instructions used to solve a problem or complete a task in computer science. It creates a representative set of data by using statistical methods and techniques such as random or stratified sampling. This is important for ensuring accurate and applicable results, but common challenges include determining sample size and accounting for biases. There are different types of algorithms used for this purpose, such as random sampling, stratified sampling, and clustering algorithms.
  • #1
mundek88
2
0
Hi all,
I have algorithm to analyze and make it easier to implement in programming language (Python). We have table with data and we want to select only representative part.

It looks like:
ID_PRODUCT | CARDINALITY | SET VARIANCE WITH THIS ELEMENT AND ABOVE
10 ---------------- 110 --------------- 400
11 ---------------- 90 ---------------- 350
12 ---------------- 80 ---------------- 300
... --------------- ... ---------------- ...

* variance is calculated for cardinality columnAlgorithm works as follows:
Iterate over rows from the top of table and in each loop add new row and count variance for cardinality column. Stop iteratation if variance is equal or less than specified (so, finally we want to produce set of rows with variance bigger than X) and then return created (now representative) set

Question:
This is legacy solution and hard to say for me how we can do it better. Is there any math tool which cut away elements hardly representative? We can not statically based on the cardinality (like: just give rows with cardinality > 50) because the day-to-day can change the order of magnitude.

Thanks in advice!
 
Mathematics news on Phys.org
  • #2


Hi there,

Thank you for sharing your algorithm for analyzing and selecting representative data. It seems like you have a good understanding of the problem and have come up with a solution that works for your needs.

In terms of potential improvements, there are a few things you could consider. First, you could try using statistical methods such as standard deviation or mean absolute deviation to determine the variance threshold instead of a fixed value. This would allow for more flexibility in selecting representative data.

Another approach could be to use machine learning techniques to identify patterns in the data and determine which rows are most representative. This would require training a model on a large dataset and then using it to make predictions on new data.

Overall, there are many mathematical and statistical tools that could potentially help with selecting representative data, but the best approach will depend on the specific characteristics of your data and the problem you are trying to solve. I would recommend doing some research and experimenting with different methods to see which one works best for your situation.

Best of luck with your analysis and programming!
 

Related to Algorithm creates representative set of data

1. What is an algorithm?

An algorithm is a set of step-by-step instructions or rules that are followed to solve a problem or complete a task. In computer science, algorithms are used to process data and perform calculations.

2. How does an algorithm create a representative set of data?

An algorithm creates a representative set of data by using statistical methods and techniques to select a subset of data that accurately represents the larger dataset. This can include techniques such as random sampling or stratified sampling.

3. Why is it important for an algorithm to create a representative set of data?

Creating a representative set of data is important because it ensures that the conclusions and insights drawn from the data are accurate and applicable to the larger dataset. A non-representative set of data can lead to biased or inaccurate results.

4. What are some common challenges in creating a representative set of data?

Some common challenges in creating a representative set of data include determining the appropriate sample size, selecting a representative sample from a large and diverse dataset, and accounting for any biases in the data.

5. Are there different types of algorithms used to create a representative set of data?

Yes, there are different types of algorithms used to create a representative set of data, depending on the specific needs and characteristics of the dataset. Some common types include random sampling, stratified sampling, and clustering algorithms.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
979
  • Set Theory, Logic, Probability, Statistics
Replies
20
Views
1K
  • Programming and Computer Science
Replies
7
Views
601
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
690
  • Programming and Computer Science
Replies
9
Views
2K
  • Programming and Computer Science
Replies
5
Views
1K
  • Linear and Abstract Algebra
Replies
4
Views
2K
Back
Top