Questions tagged [c#]

C-sharp is a general-purpose object-oriented programming language created & managed by Microsoft.

22 questions
5
votes
1 answer

Interpreting the entropy of a Dirichlet distribution

I was looking for a measure to interpret the "spikiness" of categorical histograms. So, if it becomes unnaturally skewed towards a certain value at a given time, I want a metric that will show some kind of a spike at that time. I considered a…
ryu576
  • 2,220
  • 1
  • 16
  • 25
5
votes
1 answer

Time-series forecasting (in C#)

I'm developing an app in C# (WPF) that amongst other things, it makes a time-series based forecast of sales (4-5 months into the future). I'm an industrial engineer so I'm not pro in statistics nor in programming (basic knowledge of both). What I'm…
Pinx0
  • 233
  • 2
  • 9
3
votes
1 answer

Visualizing large file-based or Redis-in-memory stored large datasets (millions of data points)

I am very active at StackExchange's QuantFinance forum but thought this question is more suitable to be asked here. I am generating large time series data and store them in-memory in Redis (alternatively could also save to disk in any format) and…
Matt
  • 113
  • 5
3
votes
1 answer

Using multinomial regression's coefficients to derive predicted outcomes in C#

I am attempting to use C# (and the alglib library) to calculate the predicted probability that an outcome ends up in one of five classes. I have managed to calculate parameter estimates (i.e. slope and intercept values) for each outcome, using 1…
Sam
  • 31
  • 1
  • 2
2
votes
0 answers

ML-Agent "std of reward: 0.000." Agent stops learning

I've been trying to train my self-balancing agent to learn to keep his waist above a certain position. But after a while, he just repeatedly keeps trying the same approach/tactic over and over again. His mean-reward and std-of-reward just stay the…
2
votes
0 answers

SVD based recommender system C#

I'm trying to reduce the number of dimensions in my dataset for a movie recommender system using SVD. I'm using the 'MovieLens 1M Dataset' from GroupLens.org. I've used the MathNet library for computing SVD and it seems to work alright. As far as I…
2
votes
0 answers

How to determine states for Hidden Markov Model

I am trying to learn about machine learning using Accord.Net. I created a project that has a number of labeled states that represent screens a user visited in a sequence. I created some unit tests to submit a series of historical sequences and a new…
2
votes
1 answer

Neural network vectorization, no convergence

2I am trying to implement a fully vectorized neural net following this example Stanford. I am using C# with Math.net numerical library of which the binaries can be downloaded here NuGet. Because the Stanford example is not complete (bias…
jdelange
  • 121
  • 2
2
votes
0 answers

Math Statistics Bell Curve Computing % correct given 2 numbers (C#)

Possible Duplicate: Computing per cent correctness from a bell curve I've been trying to remember my High School teachings and are falling short. I'm working on a project where I need to give a % of correctness for an integer (How close a given…
Tizz
  • 123
  • 3
2
votes
0 answers

Calculate value needed to reach target by the end of a year

I have a set of values (scores to a particular KPI), these are reported monthly. I need to calculate what I'd have to score every month from now until the end of the year to reach that target. I'm more interested in the algorithm/maths involved in…
1
vote
0 answers

Validating logistic regression - formulas needed for simulation

This is related to a data classification problem having a Boolean output variable. Summary: Once I perform the ML task using Logistic regression, I get the required coefficients. I use the multivariate model $\theta_0 + \theta_1X_1 + .. = Y$. Having…
sppc42
  • 163
  • 1
  • 1
  • 5
1
vote
1 answer

When should I update a recommendation engine?

[I asked this on StackOverflow and was told it would be a better fit here] I am including a basic recommendation engine in a very small project for my final exam. I understand the code and the math but I am not too certain as to when I should update…
The_Cthulhu_Kid
  • 253
  • 5
  • 12
1
vote
1 answer

Similiarity between temperature vectors

Please help in the following problem: I have a set of data consisting of daily temperatures, gathered every hour, togheter with daily energy consumption. Given the temperature forecast on the next day, I need to find the most similar days taking…
Catalin
  • 121
  • 2
1
vote
3 answers

Comparing odds and payouts of different lotteries

I'm not a statistician, but I'm interested in how far I can push myself with my basic algebra skills, armed with a C# development background and Excel. Suppose I have several lotteries, each with different payouts, and odds, what is the right way to…
makerofthings7
  • 263
  • 2
  • 8
1
vote
1 answer

Dividing and forecasting a normal distribution

I have a collection of real-world samples that I am trying to model and then forecast. There are 10 datasets – each has an increasing number of data points (from 1 to 10). The points are equi-distant and each has some percentage of the total…
1
2