Ustin.Finance.Sales.Analytics 1.0.0

dotnet add package Ustin.Finance.Sales.Analytics --version 1.0.0
                    
NuGet\Install-Package Ustin.Finance.Sales.Analytics -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ustin.Finance.Sales.Analytics" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ustin.Finance.Sales.Analytics" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Ustin.Finance.Sales.Analytics" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ustin.Finance.Sales.Analytics --version 1.0.0
                    
#r "nuget: Ustin.Finance.Sales.Analytics, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ustin.Finance.Sales.Analytics@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ustin.Finance.Sales.Analytics&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Ustin.Finance.Sales.Analytics&version=1.0.0
                    
Install as a Cake Tool

Ustin.Finance.Sales.Analytics

Default market-basket / affinity analytics for Ustin.Finance.Sales.Common. Targets net10.0.

  • Frequent-itemset miningFpGrowthMiner (primary) and AprioriMiner (reference).
  • Association rules with a full interestingness-measure library: support, confidence, lift, leverage, conviction, jaccard, cosine, kulczynski, Zhang, PMI, NPMI, chi-squared.
  • Non-obvious co-occurrence detection — chi-squared significance with Benjamini-Hochberg FDR, obviousness filters (same-category / popularity-explained / known-complement) and composable novelty scorers.
  • Basket KPIs — ATV, lines & units per basket, size histogram.

Usage

using Ustin.Finance.Sales.Analytics.Features.MarketBasket;
using Ustin.Finance.Sales.Analytics.Features.UnexpectedAffinity;

// (A) What is bought together — ranked by lift
var correlations = await MarketBasket.Analyze(source)
    .MinSupport(0.005)
    .MinConfidence(0.20)
    .MaxItemsetSize(3)
    .OrderByDescending(Measures.Lift)
    .Top(50)
    .RunAsync();

// (B) Which non-obvious products show up together
var surprises = await UnexpectedAffinity.Analyze(source)
    .MinLift(1.5)
    .Significance(0.01)
    .Exclude(Obvious.SameCategory(categoryBySku))
    .Exclude(Obvious.ExplainedByPopularity(countBySku, transactionCount))
    .Top(25)
    .RunAsync();

See the project repository for the design notes, the theory behind each measure, and the roadmap (cross-sell, bundling, RFM, and — deferred — ABC analysis and unit economics).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 93 8/31/2026