Questions tagged [javascript]

JavaScript is an interpreted computer programming language. Use this tag for any *on-topic* question that (a) involves JavaScript either as a critical part of the question or expected answer, & (b) is not *just* about how to use JavaScript.

JavaScript (JS) is an interpreted computer programming language. As part of web browsers, implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed. It has also become common in server-side programming, game development and the creation of desktop applications. [Wikipedia]

18 questions
7
votes
4 answers

Interpreting two-sided, two-sample, Welch T-Test

I’m writing some code (JavaScript) to compare benchmark results. I’m using the Welch T-test because the variance and/or sample size between benchmarks is most likely different. The critical value is pulled from a T-distribution table at 95%…
Mathias Bynens
  • 173
  • 2
  • 6
2
votes
0 answers

A network has many conflicting edges. How to create a good visualization for it?

I'm having a network of belief system. It has ~100 nodes, 316 regular edges and 78 conflicting edges. (If belief B conflicts with belief A, then node B and node A share a conflicting edge. If belief B is a logical consequence of belief A, then node…
Ooker
  • 267
  • 3
  • 13
2
votes
1 answer

Relating Chi Squared and Gamma Distributions using code?

How do we relate the chi squared and gamma distributions with code? For example if we have a chi squared distribution with cdf(x, k) and we calculate cdf(2,3) where x is 2 and df is 3, what would be the corresponding cdf for the gamma distribution…
1
vote
1 answer

How do you calculate the Ordinary Least Squares estimated coefficients in a Multiple Regression Model?

I recently began learning about OLS estimation of multiple regression models and came across the following formulas explaining the calculations: What would the formulas be for an OLS regression model with more than two independent variables? I'm…
Jackmc1047
  • 113
  • 1
  • 4
1
vote
2 answers

how to generate random data based on simple statistical meassures

0 I currently have a test data set that has 500k data points. I have an algorithm that process that data and returns some information. In order to establish the statistical significance of the results Id like to run a monte carlo simulation. I would…
1
vote
0 answers

Adding Zoom & Pan for Protovis Dot Chart with GeoScale

var w = 810, h = 400, mapMargin = 30; geo = pv.Geo.scale().range(w, h); var vis = new pv.Panel() .width(w) .height(h) .top(50) .bottom(30) .def("i", -1); var dot = vis.add(pv.Dot) .data(geoPopList) …
Saneef
  • 147
  • 3
1
vote
1 answer

Time period diagram (bar chart) - what is its more precise/widely used name?

I want to make a diagram like this to display the career spans of several soccer players one below the next: I know it's basically a bar chart, but I was hoping this has a more specific name, because I want to search the web to find out whether…
1
vote
1 answer

Eloquent Javascript - correlation and coefficient

Currently I'm reading Eloquent Javascript book and at chapter 4. This topic entitled 'The lycanthrope’s log ' is very confusing to me. How important is correlation and coefficient in real world programming? I'm trying to understand the formula used…
112233
  • 113
  • 4
1
vote
1 answer

How to verify implementation of SVD in Javascript

I have implemented the SVD algortihm for my Node.js project for collaborative filtering of a sparse dataset based on this paper by GroupLens. For calculating the SVD, I am using the package node-svd which is basically an implementation of SVDLIBC…
0
votes
1 answer

JavaScript/PHP libraries for calculating common

I am looking for a JavaScript or a PHP library to calculate common business/statistical metrics (e.g. Total, Avg, YTD, YoY, MoM, CAGR growth, standard deviation, regression line coordinates) from simple arrays/objects with a structure such as: The…
Max
  • 166
  • 1
  • 1
  • 9
0
votes
0 answers

What is the best statistical test to compare the competitiveness of 10 football/soccer leagues within a time range?

I was wondering what stat test is the best to find out which football/soccer league is the most competitive. The leagues that I would choose for this analysis are either based on the countries that have won a World Cup (8 countries) or based on…
0
votes
0 answers

js-regression: intercept and betha coefficient

I am trying to run a simple logistic regression (response ~ stimulus, where responses are "f" or "s" and stimulus goes from 1 to 11). My main objective is to calculate the turning point of the function (-alpha/beta). I have to use JavaScript to do…
0
votes
0 answers

Estimate contingency table entries from given marginal sums

I have got a table with known marginal sums: | | | | 7| | | | | 7| | | | | 6| | | | | 6| | | | | 5| | | | | 4| | | | | 3| +--+-+-+--+ |26|6|6|38| I want to estimate the best integer contingency table to fulfil the row and column sums that…
ajo
  • 101
0
votes
1 answer

prerequisites to algorithms and then to python and Machine Learning

I spent the last 5 months studying full-stack web development using the MERN stack, that is (MongoDB, Express, React and NodeJs). Now that I have seen the full picture of what I would be doing everyday, I kind of lost interest in the career due to…
0
votes
2 answers

Determine breakpoints in time series data where values change significantly

Given the following chart of data: which represents duration metrics gathered at absolute times, I am trying to determine when/if any of the values exhibit a jump in durations. In the example chart, the trend of data appears to hover around the 1.4…
1
2