# Questions tagged [algorithms]

An algorithm is a set of one or more computations that will produce a calculated result. All statistics methods are algorithms. Algorithms can be simple, such as calculating a percentage, or can be very complex and require a computer for fast and accurate results.

409 questions
Filter by
Sorted by
Tagged with
1 vote
17 views

### Sampling multiple masked tokens through Metropolis–Hastings

I'm trying to replicate the finding of the the publication "Exposing the Implicit Energy Networks behind Masked Language Models via Metropolis-Hastings" for obtaining the joint distribution ...
• 11
1 vote
35 views

### Guidelines for image recognition model (inventory purposes)

I have 20,000 plus images of art (paintings, sculptures, jars, etc) stored in a data base. The actual pieces are distributed in multiple warehouses. Ideally, the physical pieces SHOULD have a sticker ...
15 views

### How to build a recommendation system Based on user infos and without ratings?

I would like to build a recommendation system based only on user informations(age,sex,zipcode,and some quiz answers),based on those features i want to recommend assurance products, but i am confused ...
19 views

### Unsupervised detection and counting of a pattern in a time signal without pre knowledge

I'm facing a problem and it seems I can't find a working solution since a few years. TLDR : Is there a well-known algorithm or NN-model that is able to autodetect and count patterns in a time signal ...
12 views

### Resources to develop the statistical models for a sports betting website

Please help me with resources to develop a sports betting website. Just so you know, I am a complete novice. I am specifically looking for algorithms to calculate the odds, decide how much to charge ...
43 views

### Algorithm for picking N random uniformly distributed samples, in irregular polygon?

Say want to pick a fixed number of samples from a large 2D dataset, such that they relatively evenly distributed over the whole sample area. Imagine places in a country - so the border of the data is ...
• 171
1 vote
43 views

### Find closest color class to an RGB value

I have a module that estimates the color of an object and returns an RGB value in this format: (40, 48, 68) which corresponds to this color: Now I have to classify ...
• 217
8 views

### kernal failure on data science ICA algorithm for independent component analysis

ICA algorithm Problem Statement The goal is to have the ICA algorithm for independent component analysis custom python code perform convergence on many independent audio wave files, e.g., 10, 15, 20, ...
24 views

### What algorithm can I use to get the product that would give me the most profit given its buying cost, selling cost, sell volume and buy volume?

I'm working on an app for evaluating the products sold on a market in a videogame. The products can be bought for cheap and sold for expensive. I want to evaluate the best product to buy and sell, but ...
1 vote
51 views

### How can I predict the best treatment to give to new patient?

As part of a school project, I have to analyze a dataset with patients (with characteristics: sex, age, smoker 0/1, etc.) who received different treatments (one per patient) with a response to this ...
• 11
13 views

### Apriori algorithm formula: difference between support and frequency

What is the correct way to calculate support? I have seen two different ways and I'm confused as a result. One way (say first approach) is explained https://en.wikipedia.org/wiki/...
• 471
24 views

### Interpolating missing data given county and state totals

Problem: I have population data for states and their constituent counties over several years. Each row is uniquely identified by a state/county and a year. There are four population columns: ...
34 views

### Why did the Double Metaphone algorithm choose to substitute and merge consonants?

Is there any literature describing the decisions behind why the mappings from input text characters to Metaphone hash consonants were made? Why did they choose to leave out vowels? Why did they merge ...
• 75
17 views

### Cost function looks like the real math which is responsible for actually working on out problem statement If I talk on a whole and on a surface level?

Looking at the cost function for say linear regression, apart from changing the weight or the parameters, the cost function does the real job, right? If it is correct, what does cost function do in ...
76 views

### Models vs algorithms

What are basic difference between algorithms and models Is regression SVM random forest decision trees algorithms or model
• 101
26 views

### Calculating the solution of OLS efficiently when adding one feature at a time

We know that the analytical solution for an OLS problem is $𝛽̂ =(𝐗^T𝐗)^{-1}𝐗^𝑇𝐲$. I am looking for an efficient algorithm to solve for $𝛽̂$ when I add one feature at a time. More specifically, ...
• 101
22 views

### Approaches to dataset, whose elements have different size

I am working with a dataset where each elements is a square table of size m-by-n, where m (the number of rows) is the same for all the data points, while n (the number of columns) varies from tens to ...
• 103
37 views

### Trying to write a code that detects a maximum value before a drop off in slope

I'm trying to write code for a force test that will output the maximum force before structural failure occurs. I'm a bit of a novice to python, so the issue here might be something simple that I'm ...
20 views

### Seeking guidance on data analysis techniques to estimate project LOE based on numeric counts of outputs produced

I’m looking for some basic guidance on where to focus my research in support of some data analysis I’m looking to perform. The problem space is identifying a methodology for estimating Level of Effort ...
• 109
42 views

### What are machine learning algorithms which rank films?

Broadly speaking, there are two approaches to producing lists of the best films: human vs machine curation. Human curation involves someone, a critic, making decisions and/or creating a canon, based ...
• 141
196 views

### What is the most optimal machine learning model/algorithm to create a hangman solver?

Want to create a hangman solver, So what is the best ml algorithm (lstm,reinforcement learning, or etc) to use? Do suggest any other optimal technique if you know?
70 views

### How to split a range of numbers considering other variables as well?

Let's say that I have a vector of numbers and I'd like to split it into 3 most optimal ranges for example, then I suppose I can use k-means or Jenks natural breaks. If I'd like to do the same thing ...
346 views

### Difference among ID3, C4.5, C5.0

The C4.5 algorithm uses information gain ratio instead of information gain like ID3, and it also adds pruning. What does C5.0 add more? Is there any example of code? I looked on the web but there is ...
• 152
74 views

### Where can I find implementation of the various improvements of K-nearest neighbors (KNN)?

I have been facing some challenges where traditional KNN algorithm perform well. I'd like to explore more advanced knn solutions. While researching possible solutions, I came across a paper titled <...
• 2,349
1 vote
186 views

### How to predict what someone will order?

Suppose Prof. X goes to a road side tea-coffee shop everyday at 5pm just after his office. After reaching there he tosses a coin, and places his order tea or coffee. The shop owner Y has been ...
• 161
1 vote
31 views

### Different patterns in dataset

Suppose some features in a dataset have a linear correlation with the target variable, some have a polynomial correlation, and for categorical features, the target values tend to distribute ...
• 51
48 views

### Existence of a "three-point" machine learning model?

I may want to ask if there are studies that exist which utilize a "three-point machine learning model. What I mean by "three-point machine learning model is that it may use several ...
393 views

### Understanding the stochastic average gradient (SAG) algorithm used in sklearn

For pedagogical purposes I've been trying to create my own implementation of the stochastic average gradient (SAG) algorithm in a logistic regression framework. Page 10 of the associated paper ...
1 vote
485 views

### In DBSCAN, can the distance between a Noise Point and Border Point be less than Epsilon?

In DBSCAN: A core point is a point which has at least "MinPts" points inside its Epsilon radius. A border point is a point inside the Epsilon radius of a core point, but it has a number of ...
1 vote
25 views

### Are there any algorithm to generate a set of data that match some statistic requirements?

I was wondering if there are time-efficient algorithms that can reverse the process of basic statistics computation. What I mean is an algorithm that instead of computing the mean, SD, max-min range, ...
• 13
22 views

### how to predict most frequent purchased item in e-commerce?

i have the following dataset: witch its market transaction dataset and i need to predict the most frequent purchased items based on transaction history, for example: if sara bought milk and cookies ...
30 views

### Regression Algorithm while passing in future values?

Very similar to this question here: https://stats.stackexchange.com/questions/406416/including-future-values-in-a-regression Is it possible to pass future (expected) values into a regression algorithm ...
• 101
162 views

### Why compare multiple machine learning algorithms and then decide which algorithm to use for fine tuning?

I have a problem. There is a dataset A, which deals with a classification problem. And for this dataset, several different baseline algorithms have been defined and computed. In addition, three models ...
• 89
1 vote
70 views

### Calculate the top 5 optimal parcel locker cabinet configurations

Dear Data Science community, I have the following problem to solve and I'd like to learn which algorithm or approach I can use to tackle it. I don't expect a full solution here but I really want to ...
• 111
49 views

### ML/AI - current algorithm landscape

ML spans a wide assortment of supervised models (k-nearest neighbours, random forests, Naive Bayes, logistic regression, support vector machines, neural networks) and unsupervised models (k-means, ...
• 1
1 vote
40 views

### Algorithm Comparison for Influencers Ranking

I am working on ranking social influencers on Instagram according to their influential power with the metrics collected below. Metrics collected: username categories (the niche the influencer is in) ...
• 11
28 views

I would like to distribute tasks (going to companies and signing a deal) to sales representatives based on some condition like company location (is it near the representative's place) or profit of the ...
1 vote
126 views

### Which algorithm should I use to find how similar data points are?

I am working with a dataset where each record is a certain type of trip. For example, one record would have the data points: number of days of trip day the trip started where the trip started how ...
61 views

### Finding the tightest (smallest) triangle that fits all points

I'm supposed to find an algorithm that, given a bunch of points on the Euclidean plane, I have to return the tightest (smallest) origin centered upright equilateral triangle that fits all the given ...
• 103
1 vote
244 views

### How to plot the computational graph and derive the update procedure of parameters using the backpropagation algorithm?

Please help me to solve this problem without a code (ps: this is a written problem): Given the following loss function, please plot the computational graph, and derive the update procedure of ...
• 21
1 vote
66 views

### Interpretation of the results of the Elbow and K-means

I have the following dataset (after scaling) which contains 5 features: : My objective is to cluster this data using an unsupervised ML model. After using the Elbow method, I get 2 clusters as below: ...
35 views

### Is SVM a good choice for this imputing a numerical variable?

Let's say I have 10,000 training points, 100,000,000 points to impute, and 5-10 prediction variables/parameters, all numeric (for now). The target variable is numeric, skewed normal with outliers. I ...
56 views

### Determine optimal number of layers for a neural network based on the dataset

I have a Neural network architecture where there are N parallel-connected layers (min. 3). Based on the dataset and classes it has, the optimal number of layers differ. Eg. for dataset1 optimal number ...
28 views

### Why does my regression-NN completely fail to predict some points?

I would like to train a NN in order to approximate an unknown function $y = f(x_1,x_2)$. I have a lot of measurements $y = [y_1,\dots,y_K]$ (with K that could be in the range of 10-100 thousands) ...
554 views

### How to gps data anomaly detection in python

I have gps format dataset lat, lon. I want to detection anomaly using python. I tested knn, smv, cof, iforest using pycaret. But i did not. These colors anomlay because the angle change is too much ...
1 vote
16 views

### What topic does a "selection" algorithm fall under?

I am looking to develop a simple algorithm that is given a set of 10 vectors for a year from which to predict the "winner". This will be a supervised task where the algorithm will be trained ...
• 11
1 vote
392 views

### Yolov5 image detection without segmentation?

I have read a number of papers on Yolov5 images detection techniques. But the papers don't refers to any segmentation step done by Yolov5. While I know that it is not possible to do image ...
• 113
1 vote
23 views

### Algorithm/method for grouping items based on their relative distance

I'm looking for a method to classify a set of items based on their relative distance. For example assume we have 4 cities and we know their relative distance: city1 city2 city3 city4 0 2.1 2.2 3.4 ...
• 111
1 vote